Person linkage case study for PyPI.
Project description
Person linkage case study (for PyPI)
If you have access to GitHub, we recommend installing from https://github.com/ihmeuw/person_linkage_case_study. This package is provided only for the convenience of users who cannot access GitHub.
Getting started
Before you start, you'll need to have Python installed. If you intend to use Spark, you'll also need Spark 3.4 to be installed on your system.
First, make a directory to use for development. Inside this directory, create and enter a virtual environment for this project:
$ python -m venv .venv
$ source .venv/bin/activate
and install this package:
$ pip install person_linkage_case_study
Your new working directory for interacting with the case study will be inside this venv. Specifically:
$ cd .venv/lib/python3.*/site-packages/person_linkage_case_study
To test that things are set up correctly, try running:
$ snakemake --forceall
Installing extras
You can install dependencies for using Spark and Dask by installing with those extras:
$ pip install person_linkage_case_study[spark,dask]
Spark without Singularity
The case study typically runs Spark in a Singularity container. If you cannot use Singularity,
edit the file at person_linkage_case_study/profiles/default/config.yaml
to say
use-singularity: false
instead of use-singularity: true
.
As mentioned above, this will rely on Spark 3.4 being installed on your system.
Specifically, it must be installed at /opt/spark
.
What's next?
For further instructions, see the README.md bundled within the package (at the top level
of your working directory as described previously).
Aside from how to use Spark, and installing with pip install person_linkage_case_study
instead of pip install -e .
, all the instructions in that README apply to a PyPI installation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file person_linkage_case_study-0.1.0.tar.gz
.
File metadata
- Download URL: person_linkage_case_study-0.1.0.tar.gz
- Upload date:
- Size: 17.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97776464591770a072582c04179d6d3f85961dfa7d98429c7779e53522181fa7 |
|
MD5 | 4cda2ba5f30382a75637af8f5090ce68 |
|
BLAKE2b-256 | af34da7f515c896e6cdaf74a2630c92e038528aa02f8e957733494b0c151bc42 |
File details
Details for the file person_linkage_case_study-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: person_linkage_case_study-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8db1d6c7dd06055c47b29ff21b00ca67b4ea29bd4d61f491191d908884cfc7d |
|
MD5 | 4735a5b5221185ba343e87fc80c0839e |
|
BLAKE2b-256 | ba135ee9b86ba7d44610998978b4b8f734e0f8ad74584929bf3309d30c1e1bc0 |