rs-docs-loaders
Python project designed to provide different document loaders from external sources like notion, Google Drive, etc.
Setup environment
For a proper use of python, we should create a virtual environment (venv) to isolate the project packages from the global python configuration, to create this venv run:
python -m venv path/to/venv
Then you need to activate this new venv, so for that run:
source path/to/venv/bin/activate
Please take a look to this little guide about how to create and activate a venv
Install dependencies
To install the project dependencies run pip install -r requirements.txt. This will install all the requirements for the project and all loaders requirements.
If you are a dev, you may want to install some dev dependencies to be able to use for example black, isort, flake8, etc. To install the dev dependencies run pip install -r dev_requirements.txt. This will install the same things as requirements.txt(step before) plus dev tools.
Requirements structure
rs-docs-loaders/
|-- common/
|-- loaders/
| |-- first_loader/
| | |-- tests/
| | |-- other_folder/
| | |-- first_loader.py
| | |-- requirements.txt
| | |-- README.md
| |-- second_loader/
| | |-- tests/
| | |-- other_folder/
| | |-- second_loader.py
| | |-- requirements.txt
| | |-- README.md
| |-- loaders_requirements.txt
|-- base_requirements.txt
|-- dev_requirements.txt
|-- requirements.txt
requirements.txt --> invoke base_requirements.txt and loaders/loders_requirements.txt
base_requirements.txt --> has all the dependencies for the base project.
loaders/loaders_requirements.txt --> has all the dependencies for the loaders.
loaders/[loader-name]/requirements.txt --> has all the dependencies for an specific loader.
dev_requirements.txt --> invoke requirements.txt + devs tools
Install specific loader dependencies
To install a specific loader dependencies, you will need to install the base requirements for the proyect and then the loader specific requirements, so you can do something like: pip install -r base_requirements.txt and then pip install -r loaders/[loader-name]/requirements.txt
Add a new loader
To add a new loader, you just need to create a new folder inside loaders/ and must create a requirements.txt for this loader. Then you will need to update the loaders/loaders_requirements.txt to invoke the requirements for the new loader.
So in the loaders/loaders_requirements.txt you will need to add a new line: -r [loader-name]/requirements.txt. This will make that the new loaders requirements were installed when you install the requirements.txt placed in the root folder, making it dependencies available for CI, and basic project configuration.
Metadata
Release files for rs-docs-loader 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rs_docs_loader-0.1.1.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rs_docs_loader-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.9 kB
Release files / rs_docs_loader-0.1.1.tar.gz
| Download URL | rs_docs_loader-0.1.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f39a7485a6abdbdab7ae592248ab32082922a52832a645d8a20aa92baaa7a8f
|
|
BLAKE2b-256 checksum How to use checksums |
c9504d757951b5e5edfd97a6a1c6c575f7c1c87b5d2ab8b33c22dcc5bbffdce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / rs_docs_loader-0.1.1-py3-none-any.whl
| Download URL | rs_docs_loader-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c7c750560c1dbd46cc3a019f0c22d19f7e3492fec2a987de77907eada9e876f
|
|
BLAKE2b-256 checksum How to use checksums |
7b75a2e9f2e5d25979046ab97284d0b5af83df00d752a28225182910a65792d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|