pythonanywhere-cli
==============
*A PythonAnywhere Command Line Interface.*
.. image:: https://travis-ci.org/cfc603/pythonanywhere-cli.png?branch=master
:target: https://travis-ci.org/cfc603/pythonanywhere-cli
.. image:: https://codecov.io/github/cfc603/pythonanywhere-cli/coverage.svg?branch=master
:target: https://codecov.io/github/cfc603/pythonanywhere-cli?branch=master
Usage
-----
Set your environment variables::
# Your API_KEY can be found at https://www.pythonanywhere.com/account and select the "API token" tab.
$ export PYTHONANYWHERE_CLI_API_KEY="API_KEY"
# Your PythonAnywhere username
$ export PYTHONANYWHERE_CLI_USER="USER"
Webapps::
# Create a new webapp
$ pythonanywhere webapps create username.pythonanywhere.com python27
# Delete a webapp
$ pythonanywhere webapps delete username.pythonanywhere.com
# Reload Webapp
$ pythonanywhere webapps reload username.pythonanywhere.com
# Update Webapp python version or virtualenv path
$ pythonanywhere webapps update username.pythonanywhere.com --python_version=2.7 --virtualenv_path=/path/to/env
Static File Mappings::
# Create new static mapping
$ pythonanywhere static_mapping create username.pythonanywhere.com /static/ /path/to/static
# Delete static mapping
$ pythonanywhere static_mapping delete username.pythonanywhere.com 123456
# Display a list of static mappings
$ pythonanywhere static_mapping list username.pythonanywhere.com
# Update a static mapping url and/or path
$ pythonanywhere static_mapping update username.pythonanywhere.com --url=/new-static/ --path=/new/path/to/static
Help::
# Display help
$ pythonanywhere -h
Credit
------
This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.
:Project: helper_scripts https://github.com/pythonanywhere/helper_scripts
:Copyright: Copyright (c) 2017 PythonAnywhere LLP
:License: (MIT) https://github.com/pythonanywhere/helper_scripts/blob/master/LICENSE
History
-------
UNRELEASED
++++++++++
0.3.0 (2017-10-21)
++++++++++++++++++
* Update to use pythonanywhere-wrapper
0.2.0 (2017-10-14)
++++++++++++++++++
* Command takes optional --api_key & --user argument
* Add History
0.1.1 (2017-10-13)
++++++++++++++++++
* Fix typo with repo URL
0.1.0 (2017-10-12)
+++++++++++++++++
* Initial release on PyPI
==============
*A PythonAnywhere Command Line Interface.*
.. image:: https://travis-ci.org/cfc603/pythonanywhere-cli.png?branch=master
:target: https://travis-ci.org/cfc603/pythonanywhere-cli
.. image:: https://codecov.io/github/cfc603/pythonanywhere-cli/coverage.svg?branch=master
:target: https://codecov.io/github/cfc603/pythonanywhere-cli?branch=master
Usage
-----
Set your environment variables::
# Your API_KEY can be found at https://www.pythonanywhere.com/account and select the "API token" tab.
$ export PYTHONANYWHERE_CLI_API_KEY="API_KEY"
# Your PythonAnywhere username
$ export PYTHONANYWHERE_CLI_USER="USER"
Webapps::
# Create a new webapp
$ pythonanywhere webapps create username.pythonanywhere.com python27
# Delete a webapp
$ pythonanywhere webapps delete username.pythonanywhere.com
# Reload Webapp
$ pythonanywhere webapps reload username.pythonanywhere.com
# Update Webapp python version or virtualenv path
$ pythonanywhere webapps update username.pythonanywhere.com --python_version=2.7 --virtualenv_path=/path/to/env
Static File Mappings::
# Create new static mapping
$ pythonanywhere static_mapping create username.pythonanywhere.com /static/ /path/to/static
# Delete static mapping
$ pythonanywhere static_mapping delete username.pythonanywhere.com 123456
# Display a list of static mappings
$ pythonanywhere static_mapping list username.pythonanywhere.com
# Update a static mapping url and/or path
$ pythonanywhere static_mapping update username.pythonanywhere.com --url=/new-static/ --path=/new/path/to/static
Help::
# Display help
$ pythonanywhere -h
Credit
------
This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.
:Project: helper_scripts https://github.com/pythonanywhere/helper_scripts
:Copyright: Copyright (c) 2017 PythonAnywhere LLP
:License: (MIT) https://github.com/pythonanywhere/helper_scripts/blob/master/LICENSE
History
-------
UNRELEASED
++++++++++
0.3.0 (2017-10-21)
++++++++++++++++++
* Update to use pythonanywhere-wrapper
0.2.0 (2017-10-14)
++++++++++++++++++
* Command takes optional --api_key & --user argument
* Add History
0.1.1 (2017-10-13)
++++++++++++++++++
* Fix typo with repo URL
0.1.0 (2017-10-12)
+++++++++++++++++
* Initial release on PyPI
Release files for pythonanywhere_cli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pythonanywhere_cli-0.3.0.tar.gz | 15.6 kB | Details |
Release files / pythonanywhere_cli-0.3.0.tar.gz
| Download URL | pythonanywhere_cli-0.3.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
468abe3fe166501911da8198b0e21004e022335860748791dbcca7f6b0d27f4e
|
|
BLAKE2b-256 checksum How to use checksums |
607e67465abc3cd1f8097ee867b2c6988e000f55886b3da7565892d77942f2d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |