Skip to main content

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

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pythonanywhere_cli, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pythonanywhere_cli-0.3.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page