scratchclientImproved


NamescratchclientImproved JSON
Version 1.3 PyPI version JSON
download
home_pagehttps://github.com/StellarSt0rm/scratchclientImproved
SummaryImproved Version Of The Scratch API Wrapper By CubeyTheCube
upload_time2024-01-21 16:31:13
maintainer
docs_urlNone
authorStellarSt0rm
requires_python
licenseMIT
keywords scratch api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Improvement #1 | vv1.3 Changelog
Made most functions return a status code, some of the functions are:

- `.delete()`
- `.report()`
- `.set_*()`
- `Studio.add_project()`
- `Studio.remove_project()`
- `Studio.open_to_public()`
- `Studio.close_to_public()`
- `Studio.toggle_commenting()`

etc...

# scratchclientImproved
Improved version of the Scratch API wrapper by CubeyTheCube.
I will mainly fix errors.

## Installation

Go to your terminal (Not your Python shell) and execute this command:
```bash
pip install scratchclientImproved
```

If this didn't work for whatever reason, open your Python shell and run the following:
```python
import os; os.system("pip install scratchclientImproved")
```

## Example Usage

### Basic Usage
```python
from scratchclientImproved import ScratchSession

session = ScratchSession("UwU", "--uwu--")

# Post comments
session.get_user("User").post_comment("OwO")

# Lots of other stuff!
print(session.get_project(450216269).get_comments()[0].content)
print(session.get_project(450216269).get_comments()[0].get_replies()[0].content)
print(session.get_studio(29251822).description)
```
### Cloud Connection
```python
from scratchclientImproved import ScratchSession

session = ScratchSession("griffpatch", "SecurePassword7")

connection = session.create_cloud_connection(450216269)

connection.set_cloud_variable("variable name", 5000)

@connection.on("set")
def on_set(variable):
    print(variable.name, variable.value)

print(connection.get_cloud_variable("other variable"))
```

Documentation is available at <https://StellarSt0rm.github.io/scratchclientImproved>.

All bugs should be reported to the [Github repository](https://github.com/StellarSt0rm/scratchclientImproved/issues).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/StellarSt0rm/scratchclientImproved",
    "name": "scratchclientImproved",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "scratch,api",
    "author": "StellarSt0rm",
    "author_email": "stellarst0rm.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e8/02/5d3fa3aa4190adf2de7dc264ea925c89c5de6b65db0e3686541f95155730/scratchclientImproved-1.3.tar.gz",
    "platform": null,
    "description": "# Improvement #1 | vv1.3 Changelog\nMade most functions return a status code, some of the functions are:\n\n- `.delete()`\n- `.report()`\n- `.set_*()`\n- `Studio.add_project()`\n- `Studio.remove_project()`\n- `Studio.open_to_public()`\n- `Studio.close_to_public()`\n- `Studio.toggle_commenting()`\n\netc...\n\n# scratchclientImproved\nImproved version of the Scratch API wrapper by CubeyTheCube.\nI will mainly fix errors.\n\n## Installation\n\nGo to your terminal (Not your Python shell) and execute this command:\n```bash\npip install scratchclientImproved\n```\n\nIf this didn't work for whatever reason, open your Python shell and run the following:\n```python\nimport os; os.system(\"pip install scratchclientImproved\")\n```\n\n## Example Usage\n\n### Basic Usage\n```python\nfrom scratchclientImproved import ScratchSession\n\nsession = ScratchSession(\"UwU\", \"--uwu--\")\n\n# Post comments\nsession.get_user(\"User\").post_comment(\"OwO\")\n\n# Lots of other stuff!\nprint(session.get_project(450216269).get_comments()[0].content)\nprint(session.get_project(450216269).get_comments()[0].get_replies()[0].content)\nprint(session.get_studio(29251822).description)\n```\n### Cloud Connection\n```python\nfrom scratchclientImproved import ScratchSession\n\nsession = ScratchSession(\"griffpatch\", \"SecurePassword7\")\n\nconnection = session.create_cloud_connection(450216269)\n\nconnection.set_cloud_variable(\"variable name\", 5000)\n\n@connection.on(\"set\")\ndef on_set(variable):\n    print(variable.name, variable.value)\n\nprint(connection.get_cloud_variable(\"other variable\"))\n```\n\nDocumentation is available at <https://StellarSt0rm.github.io/scratchclientImproved>.\n\nAll bugs should be reported to the [Github repository](https://github.com/StellarSt0rm/scratchclientImproved/issues).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Improved Version Of The Scratch API Wrapper By CubeyTheCube",
    "version": "1.3",
    "project_urls": {
        "Download": "https://github.com/StellarSt0rm/scratchclientImproved/archive/refs/tags/v1.3.tar.gz",
        "Homepage": "https://github.com/StellarSt0rm/scratchclientImproved"
    },
    "split_keywords": [
        "scratch",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61f9f1c2435f60276fdaee32dfb787398f2ba4875d71fc416e45d9eab2a7a6d0",
                "md5": "9ac9264abbebb89afc9b4fbb96d19ef6",
                "sha256": "ecc623923ce0d96c2418c733dbd9ffbde2299a8f92e1c1f041805259e02a3e8f"
            },
            "downloads": -1,
            "filename": "scratchclientImproved-1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9ac9264abbebb89afc9b4fbb96d19ef6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 30132,
            "upload_time": "2024-01-21T16:31:12",
            "upload_time_iso_8601": "2024-01-21T16:31:12.369156Z",
            "url": "https://files.pythonhosted.org/packages/61/f9/f1c2435f60276fdaee32dfb787398f2ba4875d71fc416e45d9eab2a7a6d0/scratchclientImproved-1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8025d3fa3aa4190adf2de7dc264ea925c89c5de6b65db0e3686541f95155730",
                "md5": "118e60c9f47048d9afe5e0a759f6eb4f",
                "sha256": "f3bb344809fd344f1d20fc51a674175e921b07c170d97fce9c79dcaf9010c014"
            },
            "downloads": -1,
            "filename": "scratchclientImproved-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "118e60c9f47048d9afe5e0a759f6eb4f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24174,
            "upload_time": "2024-01-21T16:31:13",
            "upload_time_iso_8601": "2024-01-21T16:31:13.928822Z",
            "url": "https://files.pythonhosted.org/packages/e8/02/5d3fa3aa4190adf2de7dc264ea925c89c5de6b65db0e3686541f95155730/scratchclientImproved-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 16:31:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "StellarSt0rm",
    "github_project": "scratchclientImproved",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "scratchclientimproved"
}
        
Elapsed time: 0.16819s