https://github.com/thefloatingstring/serveapi
https://github.com/thefloatingstring/serveapi
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thefloatingstring/serveapi
- Owner: TheFloatingString
- Created: 2024-06-23T14:52:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-17T23:42:24.000Z (over 1 year ago)
- Last Synced: 2024-11-13T20:16:25.155Z (about 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ServeAPI
An interface for minimal API calls.
Planned Features:
+ Single object locally that dynamically generates attributes and methods that mirror the parent dependency
+ Securely call API keys (experimental, should **not** be used in a production setting)
+ Integrate functional programming capabilities (i.e. pipe operators)
### Quickstart
`ServeApi2` currently supports NumPy function calls (using the `np` alias). The long-term goal is for a client program to be able to call dependencies that only need to be installed on a server machine, rather than a client machine. This would save memory on the client-side, and also simplify dependency management for projects that use a common set of dependencies with compatible versioning.
```python
from interface import ServeApi2
s2 = ServeApi2('np')
resp = s2.linalg.norm([34353,23432,23413])
print(f'>> {eval(resp)}')
```