Skip to main content

Python framework for deploying small apps

Project description

The Arkhos Python Client

Arkhos is a Python framework for easily deploying small Python apps.

# main.py
def arkhos_handler(request):
    return arkhos.json({
        "greeting": f"Hello {request.GET.get("name")}!"
    })
$ git add main.py
$ git push arkhos
$ curl "https://my-first-app.arkhosapp.com?name=Wally"
{
  "greeting": "Hello Wally!"
}

Docs

See the full Arkhos Docs and Getting started guide

Arkhos Requests Description
request.method GET, POST, INTERVAL, EMAIL, ….
request.GET
request.GET["some_key"]
Request GET parameters, dictionary
eg. ?favorite_project=arkhos
request.body Request body, string
request.json Request body parsed as json into dictionary
request.headers Request headers, dictionary
request.path The url path, string,
eg. "/about"
 
Arkhos Responses
All responses also accept headers={} and status=200,404
return arkhos.json(
    {"key":"value"}
)
Return JSON
return arkhos.http(
<h1>some html</h1>
)
Return HTML
return arkhos.render(
    "path/to/file.html",
    {"name": "Lucille"}
)
Return the html with the variables in the dict.
Uses jinja templating. Eg. in your HTML {{ name }}
 
Static files (.js, .css, .jpg)
Any files in /static folder are available at <my-app>.arkhosapp.com/static/
 
Key/Value and Storage
arkhos.set(key, value) Store a key, value. key should be a string. value can be string,int,float, or boolean
arkhos.get(key) Get a key
 
Communicate
arkhos.email(to_email, subject, message) Send an email
arkhos.sms(phone_number, message) Send an sms
 
Environment Variables
arkhos.env(environment_variable) Not implemented

Project details


Download files

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

Source Distribution

arkhos-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arkhos-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file arkhos-0.1.0.tar.gz.

File metadata

  • Download URL: arkhos-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for arkhos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f93012075b0d639d3dc96468f4a47b8bb698f336d3562c7f0b84b709a08e1cd8
MD5 a140629e9d84e73da3491e1e9b55965f
BLAKE2b-256 618412dfafca150537e083725971f0146fbf5fb20caae85efb9c6ab9da6792ac

See more details on using hashes here.

File details

Details for the file arkhos-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arkhos-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for arkhos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ce4f19bd415f6fed898c621d77d288592ffcb4be4d05368abbbb5e25a97cf12
MD5 c7c47d193fcc0d171a080984b50cec47
BLAKE2b-256 30924e67ddf7606f5ad9b24c440c6c7b11d1c6ea90f679214c79888392ed7d4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page