semvec/pypi-packages huggingface dataset:
ivi-sdk 0.1
Simple IVI gRPC stream API wrapper
Requires Python: >=3.6

# IVI Python SDK

## General info
The *IVI Python SDK* is a minimal wrapper layer around the underlying [IVI gRPC Streams API](https://github.com/MythicalGames/ivi-sdk-proto/).  The primary module is `ivi_sdk/ivi_client.py`.

The SDK is installable via `pip` and should be usable with any released Python >= 3.6.  The included `setup.py` will download, generate, and install the necessary gRPC and protobuf dependencies, as well as fetch protos and run the `protoc` code generator.

The `IVIClient` makes use of `asyncio` and `grpc.aio` for managing stream processing via coroutines, and also instantiates the unary RPC stubs for convenience.  This SDK does *not* wrap the unary RPC calls - users should refer directly to the proto files and interact directly with the generated protobuf and gRPC Python code for unary calls as documented in the Readme.io guide.  Examples are available there as well as in `tests/example.py`.  However, unlike the example code, it is strongly recommend for users to schedule any unary RPC calls and processing within their own coroutine wrappers, to avoid stalling the main Python thread.

It is strongly suggested to set the `asycio` event loop global exception handler via [`set_exception_handler`](https://docs.python.org/3/library/asyncio-eventloop.html#id15) and fixing or reporting any errors found therein.  Failing to do so may lead to memory leaks through unbounded accumulation of unhandled errors.

`pytest` based unit tests for the `IVIClient` stream processing are contained in `tests/test_ivi_client.py` script.  This will also require the `pytest-asyncio` package to be installed.

Recommended further reading beyond the RPC guide:
* [asyncio](https://docs.python.org/3/library/asyncio.html)
* [protobuf generated code](https://developers.google.com/protocol-buffers/docs/reference/python-generated)
* [gRPC Python](https://grpc.io/docs/languages/python/) and [gRPC AsyncIO](https://grpc.github.io/grpc/python/grpc_asyncio.html)
cobra-opt 0.0.1
An optimizer for Python code.
Requires Python: >=3.8

# Cobra

Cobra is an optimizer for Python bytecode. It performs several mini-optimizations on ASTs, many of which are from [Python byte-code and micro-optimization](https://medium.com/@chipiga86/python-byte-code-and-micro-optimization-1c0acb902c9). It can be downloaded using pip (`pip install cobra-opt`) and used like so:
Optimize a single Python file: `python3 -m cobra-opt file.py`
Optimize a folder of Python files: `python3 -m cobra-opt -d directory/` or `python3 -m cobra-opt --directory directory/`
ifood 0.0.2
Extract data from ifood products
Requires Python: >=3.6

# Ifood

## To install

```
pip install ifood
```

## To import the library

```
from ifood import Ifood
```

## Defining the zip code

```
app = Ifood('59082311') 
```

## or address

```
app = Ifood('rua+buzius+47+brazil') 
```

## Creating object to search address

```
print(app.searchAddress())
```

## All functions of address

```
print(app.city())
print(app.state())
print(app.country())
print(app.streetName())
print(app.postalCode())
print(app.latitude())
print(app.longitude())
```

## Creating object to search product

```
app.searchItems('energetico+reign')
```

## All functions of product

```
print(app.listItems())
print(app.listItems()[0]['id'])
print(app.listItems()[0]['name'])
print(app.listItems()[0]['category'])
print(app.listItems()[0]['price'])
print(app.listItems()[0]['merchant'])
print(app.listItems()[0]['slug'])
print(app.listItems()[0]['distance'])
print(app.listItems()[0]['deliveryTime'])
print(app.listItems()[0]['deliveryValue'])
print(app.listItems()[0]['mainCategoryName'])
```

## Links

See my [GitHub](https://github.com/claudiotorresarbe).