PythonAnywhere Command Line Interface.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pythonanywhere_cli-0.3.0.tar.gz
(15.6 kB
view details)
File details
Details for the file pythonanywhere_cli-0.3.0.tar.gz
.
File metadata
- Download URL: pythonanywhere_cli-0.3.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468abe3fe166501911da8198b0e21004e022335860748791dbcca7f6b0d27f4e |
|
MD5 | cdd74d499fe6fd1443e5000eb726714a |
|
BLAKE2b-256 | 607e67465abc3cd1f8097ee867b2c6988e000f55886b3da7565892d77942f2d9 |