Skip to main content

Type hints for Appwrite Python SDK

Project description

Type hints for your Appwrite Python functions

Whenever I develop an Appwrite function, I am left wondering what all these Flask abstractions mean since they are not from an installable package. Wonder no more!

from appwrite_typing.py310.server import Context

def main(context: "Context"):  # <-- we actually know what this means now!
    return context.res.send("Hello World!")

def test_main():
    response = main(Context())  # <-- we can actually test with real objects
    assert response["body"] == "Hello World!"

Project details


Release history Release notifications | RSS feed

This version

0.0

Download files

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

Source Distribution

appwrite-typing-0.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

appwrite_typing-0.0-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

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