Installation
Requirements
Python 3.12 or higher
requestslibrarypython-dotenvlibrary (optional, for loading environment variables)clicklibrary (for command line interface)
Installing from PyPI
The recommended way to install the OneWorldSync Python Client is from PyPI:
pip install oneworldsync
This will install the latest stable version of the package along with its dependencies and the ows command line tool.
Installing from Source
You can also install the package directly from the source code:
git clone https://github.com/mcgarrah/oneworldsync_python.git
cd oneworldsync_python
pip install -e .
Development Installation
If you want to contribute to the development of the package, you can install it with development dependencies:
pip install -e ".[dev]"
Or using the requirements files:
pip install -r requirements-dev.txt
Documentation Installation
To build the documentation locally, install the package with documentation dependencies:
pip install -e ".[docs]"
Or using the requirements file:
pip install -r requirements-docs.txt
CLI Configuration
After installation, configure the CLI by creating a credentials file at ~/.ows/credentials with the following format:
ONEWORLDSYNC_APP_ID=your_app_id
ONEWORLDSYNC_SECRET_KEY=your_secret_key
ONEWORLDSYNC_USER_GLN=your_gln # Optional
ONEWORLDSYNC_CONTENT1_API_URL=https://content1-api.1worldsync.com # Optional