{{ ossHeader }}
The Momento Python SDK package is available on pypi: momento.
- A Momento API key is required, you can generate one using the Momento Console
- A Momento service endpoint is required. You can find a list of them here
Python 3.10 introduced the match statement, which allows for structural pattern matching on objects.
If you are running python 3.10 or greater, here is a quickstart you can use in your own project:
{% include "./examples/py310/readme.py" %}The above code uses structural pattern matching, a feature introduced in Python 3.10. Using a Python version less than 3.10? No problem. Here is the same example compatible across all versions of Python:
{% include "./examples/prepy310/readme.py" %}Documentation is available on the Momento Docs website.
Working example projects, with all required build configuration files, are available for both Python 3.10 and up and Python versions before 3.10:
If you are interested in contributing to the SDK, please see the CONTRIBUTING docs.
{{ ossFooter }}