CSSdotPy


NameCSSdotPy JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/BLUEAMETHYST-Studios/CSS.py
SummaryA way of writing CSS with a Python library.
upload_time2023-06-30 20:06:56
maintainer
docs_urlNone
authorBLUEAMETHYST Studios
requires_python
licenseGNU GENERAL PUBLIC LICENSE VERSION 3
keywords css open-source
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CSS.py

A simple way of making CSS code in Python.

## Your CSS.py installation

### Installing CSS.py

```
pip install cssdotpy
```
### Updating CSS.py

```
pip install --upgrade cssdotpy
```

## Links

- [CODE OF CONDUCT](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CODE_OF_CONDUCT.md)
- [CONTRIBUTORS](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTORS.md)
- [CONTRIBUTING POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTING.md)
- [SECURITY POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/SECURITY.md)

## Using it

### NOTICE: CSS.PY IS IN ALPHA DEVELOPMENT STAGES AND DOES NOT HAVE MANY FEATURES YET

### Creating a CSS instance

```py
import cssdotpy

MyCSS = cssdotpy.CSS()
```

### Adding HTML elements to the CSS and styling them

```py
import cssdotpy

MyCSS = cssdotpy.CSS()

MyCSS.addElement(element="p", style=["color:red", "font-family:roboto"])
```

### Adding HTML classes to the CSS and styling them

```py
import cssdotpy

MyCSS = cssdotpy.CSS()

MyCSS.addClass(name="MyClassName", style=["color:red", "font-family:roboto"])
```

### Adding Events to elements and/or classes and styling those

```py
import cssdotpy

MyCSS = cssdotpy.CSS()

MyCSS.addElement(element="p", style=["color:red", "font-family:roboto"])
MyCSS.addClass(name="MyClassName", style=["color:red", "font-family:roboto"])

MyCSS.addEventToElement(element="p", event="hover", style=["color:blue", "transform: scale(1.1)"])
MyCSS.addEventToClass(name="MyClassName", event="hover", style=["color:blue", "transform: scale(1.1)"])
```

### Getting your CSS

```py
import cssdotpy

MyCSS = cssdotpy.CSS()

MyCSS.addElement(element="p", style=["color:red", "font-family:roboto"])
MyCSS.addClass(name="MyClassName", style=["color:red", "font-family:roboto"])

MyCSS.addEventToElement(element="p", event="hover", style=["color:blue", "transform: scale(1.1)"])
MyCSS.addEventToClass(name="MyClassName", event="hover", style=["color:blue", "transform: scale(1.1)"])

# Print CSS
print(MyCSS.returnCSS())

# Output to file
open("output.css", "w").write(MyCSS.returnCSS())
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BLUEAMETHYST-Studios/CSS.py",
    "name": "CSSdotPy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "css,open-source",
    "author": "BLUEAMETHYST Studios",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# CSS.py\n\nA simple way of making CSS code in Python.\n\n## Your CSS.py installation\n\n### Installing CSS.py\n\n```\npip install cssdotpy\n```\n### Updating CSS.py\n\n```\npip install --upgrade cssdotpy\n```\n\n## Links\n\n- [CODE OF CONDUCT](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CODE_OF_CONDUCT.md)\n- [CONTRIBUTORS](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTORS.md)\n- [CONTRIBUTING POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/CONTRIBUTING.md)\n- [SECURITY POLICY](https://github.com/BLUEAMETHYST-Studios/CSS.py/blob/main/SECURITY.md)\n\n## Using it\n\n### NOTICE: CSS.PY IS IN ALPHA DEVELOPMENT STAGES AND DOES NOT HAVE MANY FEATURES YET\n\n### Creating a CSS instance\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n```\n\n### Adding HTML elements to the CSS and styling them\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\n```\n\n### Adding HTML classes to the CSS and styling them\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n```\n\n### Adding Events to elements and/or classes and styling those\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n\nMyCSS.addEventToElement(element=\"p\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\nMyCSS.addEventToClass(name=\"MyClassName\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\n```\n\n### Getting your CSS\n\n```py\nimport cssdotpy\n\nMyCSS = cssdotpy.CSS()\n\nMyCSS.addElement(element=\"p\", style=[\"color:red\", \"font-family:roboto\"])\nMyCSS.addClass(name=\"MyClassName\", style=[\"color:red\", \"font-family:roboto\"])\n\nMyCSS.addEventToElement(element=\"p\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\nMyCSS.addEventToClass(name=\"MyClassName\", event=\"hover\", style=[\"color:blue\", \"transform: scale(1.1)\"])\n\n# Print CSS\nprint(MyCSS.returnCSS())\n\n# Output to file\nopen(\"output.css\", \"w\").write(MyCSS.returnCSS())\n```\n",
    "bugtrack_url": null,
    "license": "GNU GENERAL PUBLIC LICENSE VERSION 3",
    "summary": "A way of writing CSS with a Python library.",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/BLUEAMETHYST-Studios/CSS.py"
    },
    "split_keywords": [
        "css",
        "open-source"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8039fb13ce57c620aef8e7ba8d5f639157bb9849237efce2e8da9b0f00318801",
                "md5": "f1bd66386975fa0846387cdcdc4e6e0c",
                "sha256": "853020f5a18745a79dbf6b719d222b55104a9cac331f6cec63d0014309bbb53b"
            },
            "downloads": -1,
            "filename": "CSSdotPy-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f1bd66386975fa0846387cdcdc4e6e0c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 16168,
            "upload_time": "2023-06-30T20:06:56",
            "upload_time_iso_8601": "2023-06-30T20:06:56.999397Z",
            "url": "https://files.pythonhosted.org/packages/80/39/fb13ce57c620aef8e7ba8d5f639157bb9849237efce2e8da9b0f00318801/CSSdotPy-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-30 20:06:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BLUEAMETHYST-Studios",
    "github_project": "CSS.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cssdotpy"
}
        
Elapsed time: 0.20891s