This API allows users to upload their files permanently onto Arweave.
Once you have selected a package from the releases, take for example
arweave_api-2023.9.7.1:
Install with:
# Setup a virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install using python-pip
python -m pip install -r arweave_api-2023.9.7.1-py3-none-any.whlarweave-api -harweave-apiIt is recommended to run a virtual environment locally. To do this, run the following:
python3 -m venv venv
source venv/bin/activateNB. If Python 3 is already your default interpreter, then simply call
python.
Once the virtual environment is activated, the python interpreter will point
to the version you set it up with. Install the code's dependencies as follows:
python -m pip install -r requirements/local.txtNB. Local development is assumed. If you are not planning to develop from this repository, simply install
requirements/requirements.txt.
Once you have finished, if you need to continue to work in the same shell, you can deactivate the virtual environment as follows:
deactivateTo start the server locally, run python -m src.arweave_api.arweave_api
In the root folder, start the server locally and then use tox -e py310 to
execute the unit tests.
Documentation for the API endpoints comes in two variants: