Skip to main content

RS Docs Loader will help you to integrate different data sources

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rs_docs_loader-0.1.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rs_docs_loader-0.1.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file rs_docs_loader-0.1.1.tar.gz.

File metadata

  • Download URL: rs_docs_loader-0.1.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for rs_docs_loader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f39a7485a6abdbdab7ae592248ab32082922a52832a645d8a20aa92baaa7a8f
MD5 fcc8ca0ead721a2ce0f6d89bf08b41d4
BLAKE2b-256 c9504d757951b5e5edfd97a6a1c6c575f7c1c87b5d2ab8b33c22dcc5bbffdce1

See more details on using hashes here.

File details

Details for the file rs_docs_loader-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rs_docs_loader-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for rs_docs_loader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7c750560c1dbd46cc3a019f0c22d19f7e3492fec2a987de77907eada9e876f
MD5 719605aefd87f50254087b37c662fd04
BLAKE2b-256 7b75a2e9f2e5d25979046ab97284d0b5af83df00d752a28225182910a65792d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page