OfflineDataSci
This package helps you download and configure common tools for teaching and doing data science without an internet connection. This includes:
- Installers for data science languages: Currently R and Python
- Installers for common data science IDEs: Currently RStudio
- Partial local mirrors of package repositories: Currently CRAN (for R) and PyPI (for Python)
- Locally browseable clones of data science teaching websites: Currently Data Carpentry and Software Carpentry
Status
Early stage experiment
Installation
Using pip:
pip install offlinedatasci
Using pipx:
To install just the command line interface (CLI) we recommend pipx. Install pipx and then run:
pipx install offlinedatasci
Installing development versions
Directly From GitHub
pip install git+https://git@github.com/carpentriesoffline/offlinedatasci.git
Locally
Clone the repository and from the root directory run:
git clone https://github.com/carpentriesoffline/offlinedatasci.git
cd offlinedatasci
pip install .
On macOS make sure wheel package is installed first.
Usage
Download and setup everything
offlinedatasci install all /install/path
Create just the local CRAN mirror with basic data science packages
offlinedatasci install minicran /install/path
Add packages to repository mirrors:
To add packages beyond those included in the basic data science teaching focused mirrors use add-packages
The command structure is offlinedatasci add-packages followed by the language you want to add packages to, followed by the names of the packages, followed by the path of the mirror.
The path should be the same as where the mirror was originally setup, so the same install path you used for setup offlinedatasci.
For example, to add the sf, terra, and stars geospatial packages to the CRAN mirror:
offlinedatasci add-packages r sf terra stars /install/path
Developer docs
Creating a release
- Increment the version numbers in
pyproject.toml,__init__.py, anddocs/conf.py - Commit and push the changes to GitHub
- Create a tag for the new version
- Push the tag to GitHub (
git push upstream <tag_name>) - Make sure the
buildpackage is installed - Make sure your PyPI credentials are stored in
~/.pypirc - Build the source distribution:
python -m build --sdist - Build the universal wheel:
python -m build --wheel - Upload the new release to PyPI:
twine upload dist/*
Release files for offlinedatasci 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| offlinedatasci-0.7.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| offlinedatasci-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:21.6 kB
Release files / offlinedatasci-0.7.0.tar.gz
| Download URL | offlinedatasci-0.7.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72abac2db5cad1e303dee9db0f047b3fbe133810a5fc6d51a3df3964e6c8cc52
|
|
BLAKE2b-256 checksum How to use checksums |
bb1237cb0b80e6f7049553255ec7e44b6b378e6d97a7fe54929fab747699b835
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / offlinedatasci-0.7.0-py3-none-any.whl
| Download URL | offlinedatasci-0.7.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bc154b9453082e31123612c8223e057ec920af454dda93cc47833f65c1542a8
|
|
BLAKE2b-256 checksum How to use checksums |
a0718687fe040ed4e849b0203e0442e6100ea4c3306bd5ecfa40cb6a5f0202a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|