Skip to main content

v2_dataset – Python object-relational mapping (ORM) and tools for the V2 Dataset


This repository contains a Python package based on the SQLAlchemy object-relational mapping (ORM) framework for accessing the V2 Dataset's curated information. It also contains a minimal command-line interface that supports the creation of SQLite databases to hold curated information and its manipulation through a set of parsing routines that are being continuously developed.

The curated information itself is stored in the contents repository, together with information on how to obtain the recording data (which is not open-sourced, as of now). The contents repository should be cloned separately and linked from your working copy, as explained below.

Installation and setup

The library may be installed with

pip install lcg-neuro-v2-dataset-orm

Additional steps:

  1. Clone the V2 Dataset's contents repository to any directory on your computer, e.g.:

    git clone git@gitlab.com:lcg/neuro/v2/dataset/contents /data/v2-dataset
    

    Make sure to check out a compatible version of the contents repository. Usually, the latest version of the library will be compatible with the latest version of the dataset.

  2. The library must be able to locate the dataset directory, which can be done in one of two ways:

    • If Define a V2_DATASET_DIR environment variable pointing to the directory where you cloned the contents repository (you may do it with a .envrc file), or
    • Create a symlink named dataset (it is Git-ignored in this repository) in your working copy or library installation directory (/lib/pythonx.y/site-packages/lcg-neuro-v2-dataset-orm) pointing to the contents repository copy.

Note: You may need g++ or clang to compile some dependent libraries's extensions.

Development notes

Git LFS and cloning

Cloning may take a while because we use Git LFS to track larger files that are included mainly for testing. After the initial cloning, further pushing/pulling/fetching should only take as long as needed to download missing files, which we intend to keep at a minimum over this project's lifetime.

Important: you must install Git LFS before cloning.


— Powered by GitLab CI
— Created by Pedro Asad <pasad@lcg.ufrj.br> using cookiecutter and @pedroasad.com/templates/python/python/app-1.0.0

Metadata

Release files for lcg-neuro-v2-dataset-orm 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lcg-neuro-v2-dataset-orm 0.6.3
File Size Uploaded Provenance Actions
lcg-neuro-v2-dataset-orm-0.6.3.tar.gz 35.5 kB Without provenance Details for lcg-neuro-v2-dataset-orm-0.6.3.tar.gz

Release files / lcg-neuro-v2-dataset-orm-0.6.3.tar.gz

Download URL lcg-neuro-v2-dataset-orm-0.6.3.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8495ff50f0d37455f9735392631e33d21db6d41a79ea254c9f557b6baddfeee2
BLAKE2b-256 checksum
How to use checksums
8f2749a39ba235ba40c9e3cd13d94b0d19c21f3e9dbf78aad880c3bf573dae04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.6.10

Security for lcg-neuro-v2-dataset-orm 0.6.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page