With APy2 you can make a Python API and then, serve it online, make scalable intercommunicable applications, document and organize your code, make command line interfaces quickly, reuse it in other applications, and more cool stuff…
APy2 provides utilities to easily create aplications or modules that must interact with other applications or modules. Its just that simple.
APy2 can receive python functions (and restful objects soon) and collects data, doc, and annotations of it. Then a APy2 stores all functions and manages them by context. One can also retrive a Context object to easily access all the functions of that given context.
Some simple usage looks like this:
#!/usr/bin/env python
from apy2.core.api import Api
api = Api()
@api.add()
def foo(a, b, c):
return a * b + c
with api.context("web"):
@api.add()
def foo(a = "This", b = "good"):
return " ".join([a, "is", b])
if __name__ == "__main__":
with context("web") as web:
print(web.foo(b="great!"))
Metadata
Release files for APy2 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| APy2-0.1.tar.gz | 5.5 kB | Without provenance | Details |
Release files / APy2-0.1.tar.gz
| Download URL | APy2-0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48b270de8e642785130c6e18c15fbb3aedc3e7514178e4493f5f8f56c80baf01
|
|
BLAKE2b-256 checksum How to use checksums |
f0190ab8f7e9131f5fcde148deb3613bffd620c665191b37537f63df463abfbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for APy2 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.