Metadata-Version: 2.1
Name: inoopa_utils
Version: 2.9.4
Summary: Collection of utils used at Inoopa.
Home-page: https://bitbucket.org/inoopa/inoopa_utils/
Author: Dev Inoopa
Author-email: dev@inoopa.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: PyMySQL (>=1.0.0,<2.0.0)
Requires-Dist: SQLAlchemy (>=2.0.0,<3.0.0)
Requires-Dist: boto3 (>=1.34.18,<2.0.0)
Requires-Dist: iniconfig (>=2.0.0,<3.0.0)
Requires-Dist: openai (>=1.14.3,<2.0.0)
Requires-Dist: pandas (>=2.0.3,<3.0.0)
Requires-Dist: pendulum (>=2.1.2,<3.0.0)
Requires-Dist: pymongo (>=4.6.1,<5.0.0)
Requires-Dist: python-dotenv (==1.0.0)
Requires-Dist: rabbitpy (>=2.0.1,<3.0.0)
Requires-Dist: tenacity (>=8.2.3,<9.0.0)
Requires-Dist: tiktoken (>=0.6.0,<0.7.0)
Requires-Dist: typesense (>=0.18.0,<0.19.0)
Project-URL: Repository, https://bitbucket.org/inoopa/inoopa_utils/
Description-Content-Type: text/markdown

# Inoopa's helpers

This repo contains helper functions we use in all of our python projects.

## This is pushed publicly to Pypi, so NEVER commit any secret here

## How to use this package in your code
```bash
pip install inoopa_utils
```

## How to publish package to Pypi

After any code change, **update the package version** in [pyproject.toml](./pyproject.toml) at the key `version`.

Then, at the root of the repo:

```bash
# Login to Pypi
poetry config pypi-token.pypi <Pypi API token here>

# Build project
poetry build

# Publish
poetry publish
```

## Docker image
This repo's ci/cd is building an image stored at `inoopa/python311`. 
This is because inoopa_utils uses [deepparse](https://github.com/GRAAL-Research/deepparse) which requires Pytorch and some others dependencies.

Those are long to install in a docker image, which enventually reflect on our bills. 
To avoid this, we build the image once and build other images on top of it.
