semvec/pypi-packages huggingface dataset:
the-one-api-sdk 0.1.0
the_one_api_sdk is a Python client implemented most of the APIs for the-one-api.dev.
Requires Python: >=3.7.1,<3.11
Keywords: the_one_api

The One API Python SDK
=================================

Python SDK for ["one API to rule them all"](https://the-one-api.dev/).

Description
-----------
The one api serves your needs regarding data about The Lord of the Rings, the epic books by J. R. R. Tolkien and the official movie adaptions by Peter Jackson.

This is a Python developer friendly development kit for querying the one api.

Development
-----------
1. Install poetry following: https://python-poetry.org/docs/
2. Create the env
```
poetry install 
```

### Build the whl package
```
poetry build
```
output in dist/

### Publish to pipy
```
poetry publish
```

### Testing
Run test with coverage report
```
poetry run pytest --cov
```

### Integration testing
Integration tests requires access token to the one api and the module to be installed locally.

1. first install theoneapisdk
2. Set the env ONEAPI_SDK_ACCESS_TOKEN='YOUR_TOKEN'
3. Run the integration tests from the package root folder

```
export ONEAPI_SDK_ACCESS_TOKEN=${access_token}; python -m pytest -v integration_tests
```

### python code formatter
Using black code formatter: https://black.readthedocs.io/en/stable/
```
poetry run black .
```

Install
-------

### pip

1. Install
```
python3 -m pip install TODO.
```


Usage
----


#### Init
Most of the api requires access_token you can set it with Env var
ONEAPI_SDK_ACCESS_TOKEN=<token>
Or in the configuration
```
import theoneapisdk as oneapi
oneapi.config.access_token = "TOKEN"
```

#### Get Books
Books don't require access_token
```
from theoneapisdk as oneapi
import theoneapisdk.books as books

books.get_books()
```

#### Get Movies
Movies require access_token. If not provided
```
from theoneapisdk as oneapi
import theoneapisdk.movies as movies

movies = movies.get_movies()
quote = movies.quotes
```

###

## Authors

**Yair Rozenberg** 

## License

This project is licensed under the Apache 2.0 [LICENSE](LICENSE) file for details

## Acknowledgments
pythunder 0.4.3
Fast CGRA Placement

Thunder
-------

|PyPI version|
|PyPI - Wheel|

Thunder is a high-performance CGRA placement engine. It is uses
multi-processing to speed up the placement. Users can also use AWS
lambda to enable high parallelism if desired (C++ lambda invocation
coming soon).

Requirement
-----------

-  CMake 3.9+
-  g++-7/clang-6 or above

Install
-------

To install from source, simply do

::

    mkdir build
    cd build
    cmake .. && make -j

Thunder also has a complete Python binding available, to use the Python
binding, simply do

::

    pip install pythunder

You can see the example code in ``example`` folder.

.. |PyPI version| image:: https://badge.fury.io/py/pythunder.svg
   :target: https://badge.fury.io/py/pythunder
.. |PyPI - Wheel| image:: https://img.shields.io/pypi/wheel/pythunder.svg
pycyclone 0.4.3
Fast CGRA Routing

Cyclone
-------

|PyPI version|
|PyPI - Wheel|

Cyclone is a CGRA router as part of PnR system.

Requirement
-----------

-  CMake 3.9+
-  g++-7/clang-6 or above

Install
-------

To install from source, simply do

::

    mkdir build
    cd build
    cmake .. && make -j

Cyclone also has a complete Python binding available, to use the Python
binding, simply do

::

    pip install pycyclone

You can see the example code in ``example`` folder.

.. |PyPI version| image:: https://badge.fury.io/py/pycyclone.svg
   :target: https://badge.fury.io/py/pycyclone
.. |PyPI - Wheel| image:: https://img.shields.io/pypi/wheel/pycyclone.svg
fastapi-cls-controller 0.0.3
fastapi_cls_controller
Keywords: fastapi,controller

A decorator based router for FastAPI
---

```python
# fruit_controller.py
from fastapi_cls_controller import controller, delete, get, post, put, ...

@controller(
    prefix="/fruits",
)
class FruitController:
    @post("")
    async def create(self, body: CreateFruit):
        ...


    @get("/{fruit_id}")
    async def get(self, fruit_id: str):
        ...


```

```python
# main.py
app.include_router(FruitController())
```