anywherepython

Python library for interacting with the pythonanywhere API!


License
MIT
Install
pip install anywherepython==0.0.2

Documentation

Welcome

This repository provides you with a simple interface to interact with the PythonAnywhere API.

All you need to do is:

  • Get an API token from here
  • Then use the module :)
  • Feel free to extend or modify it as you would like to!

Example

from anywherepython import *
API = AnywherePython(username='youuser', apikey = 'yourapikey')
API.get_consoles()
from anywherepython import *
API = AnywherePython(username='youuser', apikey = 'yourapikey')
API.get_consoles()
API.get_console_output(<idofconsole>)
API.send_console_input(<idofconsole>, <tobesent>)
from anywherepython import *
API = AnywherePython(username='youuser', apikey = 'yourapikey')
API.get_webapps()
API.reload_webapps()