APy2-0.1
توضیحات
Versatile API manager for python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | APy2-0.1 |
| نام | APy2 |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | ['Zdanovitch Nikita'] |
| ایمیل نگهدارنده | ['3hb.tch@gmail.com'] |
| نویسنده | Zdanovitch Nikita |
| ایمیل نویسنده | 3hb.tch@gmail.com |
| آدرس صفحه اصلی | https://github.com/Jbat1Jumper/APy2 |
| آدرس اینترنتی | https://pypi.org/project/APy2/ |
| مجوز | GNU General Public License |
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!"))
نحوه نصب
نصب پکیج whl APy2-0.1:
pip install APy2-0.1.whl
نصب پکیج tar.gz APy2-0.1:
pip install APy2-0.1.tar.gz