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.2.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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arkhos-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6d48474dca95425fbfa059d5eeebda034f39cfc4048b4433f659b1c8b7924dd0
MD5 bacbbd241464f4abedce87c0688da2fa
BLAKE2b-256 2fad43b67a845f8c5908d8589cff6a7dee17b0db5b54a0d810a87fa420eafc6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arkhos-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1911058474e5171b2566c5b89de8c21136d227d20c9d8141fa2f052ad67933
MD5 6cd3aa22278c6ce18bcbb7ac9dff7558
BLAKE2b-256 33759354d5ddcc3b32ed52750f9a3110485b957b613f16bd392e7825e8eee1dd

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