pypawapi


Namepypawapi JSON
Version 2.0.0 PyPI version JSON
download
home_page
SummaryAPI wrapper for pythonanywhere
upload_time2023-05-03 21:30:54
maintainer
docs_urlNone
author
requires_python>=3.7
licenseThe MIT License (MIT) Copyright (c) 2019 Maraudeur <maraudeur1 AT protonmail DOT ch> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords api paw pawapi pythonanywhere
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## pawapi
`pawapi` is a Python package providing access to the PythonAnywhere API.

## Install
Use `pip` to install the latest version:

```bash
 $ pip install --upgrade pypawapi --user
```

## Usage
[Get your token](https://www.pythonanywhere.com/account/#api_token)

```python
from pawapi import Pawapi, Python3

TOKEN = "<your_token>"
USER = "<your_username>"

api = Pawapi(USER, TOKEN)
cpu_usage = api.cpu.get_info()
print(cpu_usage)

domain = f"{USER}.pythonanywhere.com"
api.webapp.create(domain, Python3.PYTHON39)
app = api.webapp.list()[-1]
print(app["id"])
```

### Docs
```shell
$ python -c "import pawapi; help(pawapi.Pawapi)"
```

## LICENSE
 The MIT License (MIT)    

 Copyright (c) 2019 Maraudeur    

 Permission is hereby granted, free of charge, to any person obtaining    
 a copy of this software and associated documentation files (the    
 "Software"), to deal in the Software without restriction, including    
 without limitation the rights to use, copy, modify, merge, publish,    
 distribute, sublicense, and/or sell copies of the Software, and to    
 permit persons to whom the Software is furnished to do so, subject to    
 the following conditions:    

 The above copyright notice and this permission notice shall be included    
 in all copies or substantial portions of the Software.    

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,    
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.    
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY    
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,    
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE    
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.    

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pypawapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "api,paw,pawapi,pythonanywhere",
    "author": "",
    "author_email": "Maraudeur <maraudeur1@protonmail.ch>",
    "download_url": "https://files.pythonhosted.org/packages/f4/3d/e2f1043d5656c7798804b10d2299f304ca13ded6f54d43ffa579a42522d2/pypawapi-2.0.0.tar.gz",
    "platform": null,
    "description": "## pawapi\n`pawapi` is a Python package providing access to the PythonAnywhere API.\n\n## Install\nUse `pip` to install the latest version:\n\n```bash\n $ pip install --upgrade pypawapi --user\n```\n\n## Usage\n[Get your token](https://www.pythonanywhere.com/account/#api_token)\n\n```python\nfrom pawapi import Pawapi, Python3\n\nTOKEN = \"<your_token>\"\nUSER = \"<your_username>\"\n\napi = Pawapi(USER, TOKEN)\ncpu_usage = api.cpu.get_info()\nprint(cpu_usage)\n\ndomain = f\"{USER}.pythonanywhere.com\"\napi.webapp.create(domain, Python3.PYTHON39)\napp = api.webapp.list()[-1]\nprint(app[\"id\"])\n```\n\n### Docs\n```shell\n$ python -c \"import pawapi; help(pawapi.Pawapi)\"\n```\n\n## LICENSE\n The MIT License (MIT)    \n\n Copyright (c) 2019 Maraudeur    \n\n Permission is hereby granted, free of charge, to any person obtaining    \n a copy of this software and associated documentation files (the    \n \"Software\"), to deal in the Software without restriction, including    \n without limitation the rights to use, copy, modify, merge, publish,    \n distribute, sublicense, and/or sell copies of the Software, and to    \n permit persons to whom the Software is furnished to do so, subject to    \n the following conditions:    \n\n The above copyright notice and this permission notice shall be included    \n in all copies or substantial portions of the Software.    \n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,    \n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    \n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.    \n IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY    \n CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,    \n TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE    \n SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.    \n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2019 Maraudeur <maraudeur1 AT protonmail DOT ch>  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "API wrapper for pythonanywhere",
    "version": "2.0.0",
    "project_urls": {
        "Source": "https://codeberg.org/maraudeur/pawapi"
    },
    "split_keywords": [
        "api",
        "paw",
        "pawapi",
        "pythonanywhere"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75b0d4539a912ee51ca95cd6a449f89965116c5efb41033cf0a554e6f0b06452",
                "md5": "710d84cdc7ad7232418e91bea66918a2",
                "sha256": "fb0f5dbe7e3bb2926e9a2a0e0c39fe738443eec90394d2f56c5140c0d8f66921"
            },
            "downloads": -1,
            "filename": "pypawapi-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "710d84cdc7ad7232418e91bea66918a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17903,
            "upload_time": "2023-05-03T21:30:52",
            "upload_time_iso_8601": "2023-05-03T21:30:52.529054Z",
            "url": "https://files.pythonhosted.org/packages/75/b0/d4539a912ee51ca95cd6a449f89965116c5efb41033cf0a554e6f0b06452/pypawapi-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f43de2f1043d5656c7798804b10d2299f304ca13ded6f54d43ffa579a42522d2",
                "md5": "1f8e28576cc5149eebc053240baaf846",
                "sha256": "d7d4544d6dbee1d5e364ac621fd456510caadee426c1b10ca23ac9a659e19385"
            },
            "downloads": -1,
            "filename": "pypawapi-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1f8e28576cc5149eebc053240baaf846",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16165,
            "upload_time": "2023-05-03T21:30:54",
            "upload_time_iso_8601": "2023-05-03T21:30:54.534109Z",
            "url": "https://files.pythonhosted.org/packages/f4/3d/e2f1043d5656c7798804b10d2299f304ca13ded6f54d43ffa579a42522d2/pypawapi-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-03 21:30:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "maraudeur",
    "codeberg_project": "pawapi",
    "lcname": "pypawapi"
}
        
Elapsed time: 0.06034s