Skip to content
Implementaion of OCDS API
Python Other
  1. Python 98.5%
  2. Other 1.5%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
ocdsapi Add missing description to releases.json in swagger specs May 14, 2019
.coveragerc 2.0 prototype Dec 29, 2018
.gitignore 2.0 prototype Dec 29, 2018
CHANGES.txt 2.0 prototype Dec 29, 2018
Dockerfile Make validation optional Mar 8, 2019
LICENSE.txt Update LICENSE.txt Mar 22, 2019 2.0 prototype Dec 29, 2018
README.rst 2.0 prototype Dec 29, 2018
development.ini Clean up dependencies Mar 14, 2019
pytest.ini Fixed tests Dec 29, 2018
requirements.txt Update requirements.txt May 14, 2019 Clean up dependencies Mar 14, 2019



OCDS API is project which build an API over the OCDS releases database.

Getting Started

  • Change directory into your newly created project.

    cd ocdsapi

  • Create a Python virtual environment.

    python3 -m venv env

  • Upgrade packaging tools.

    env/bin/pip install --upgrade pip setuptools

  • Install the project in editable mode with its testing requirements.

    env/bin/pip install -e ".[testing]"

  • Initialize and upgrade the database using Alembic.

    • Generate your first revision.

      env/bin/alembic -c development.ini revision --autogenerate -m "init"

    • Upgrade to that revision.

      env/bin/alembic -c development.ini upgrade head

  • Load default data into the database using a script.

    env/bin/initialize_ocdsapi_db development.ini

  • Run your project's tests.


  • Run your project.

    env/bin/pserve development.ini

You can’t perform that action at this time.