Skip to main content

A Python module for Dataverse.

Project description

PyPI Conda Version Build Status Coverage Status Documentation Status PyPI - Python Version GitHub Code style: black DOI

pyDataverse

Project Status: Unsupported – The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.

pyDataverse is a Python module for Dataverse. It helps to access the Dataverse API's and manipulate, validate, import and export all Dataverse data-types (Dataverse, Dataset, Datafile).

Find out more: Read the Docs

Running tests

In order to run the tests, you need to have a Dataverse instance running. We have prepared a shell script that will start a Dataverse instance using Docker that runs all tests in a clean environment. To run the tests, execute the following command:

# Defaults to Python 3.11
./run_tests.sh

# To run the tests with a specific Python version
./run_tests.sh -p 3.8

Once finished, you can find the test results in the dv/unit-tests.log file and in the terminal.

Manual setup

If you want to run single tests you need to manually set up the environment and set up the necessary environment variables. Please follow the instructions below.

1. Start the Dataverse instance

docker compose \
    -f ./docker/docker-compose-base.yml \
    --env-file local-test.env \
    up -d

2. Set up the environment variables

export BASE_URL=http://localhost:8080
export DV_VERSION=6.2 # or any other version
export $(grep "API_TOKEN" "dv/bootstrap.exposed.env")
export API_TOKEN_SUPERUSER=$API_TOKEN

3. Run the test(s) with pytest

python -m pytest -v

Chat with us!

If you are interested in the development of pyDataverse, we invite you to join us for a chat on our Zulip Channel. This is the perfect place to discuss and exchange ideas about the development of pyDataverse. Whether you need help or have ideas to share, feel free to join us!

PyDataverse Working Group

We have formed a pyDataverse working group to exchange ideas and collaborate on pyDataverse. There is a bi-weekly meeting planned for this purpose, and you are welcome to join us by clicking the following WebEx meeting link. For a list of all the scheduled dates, please refer to the Dataverse Community calendar.

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

pydataverse-0.3.4.tar.gz (87.6 kB view details)

Uploaded Source

Built Distribution

pydataverse-0.3.4-py3-none-any.whl (95.6 kB view details)

Uploaded Python 3

File details

Details for the file pydataverse-0.3.4.tar.gz.

File metadata

  • Download URL: pydataverse-0.3.4.tar.gz
  • Upload date:
  • Size: 87.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for pydataverse-0.3.4.tar.gz
Algorithm Hash digest
SHA256 3cc3750211cbece3a309a99e2a3f26622b83071e2e4ebd9d1d5e8e88f593974e
MD5 9ac790a2d67e1f611e26a23789b32868
BLAKE2b-256 07a4d2c2071e7e9b76de2a62ea88bc0e7634a30b5b09fb673bf09ed2cc028eea

See more details on using hashes here.

File details

Details for the file pydataverse-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: pydataverse-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 95.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for pydataverse-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4bcfdb43dcd030eb491d383dffd9887da67c6ba9f119ef9bbb9fa5d4396ed5aa
MD5 d8022a2eeca7563009e5bd4fa8c7c012
BLAKE2b-256 6b2a04302ea814f8ebde159bcb854b53263821bb7a1c606fe8e8572af4b82baa

See more details on using hashes here.

Supported by

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