Introduction
The oxlab package provides tools for Google Colab and Jupyter notebooks.
Sometimes you want to be able to use or distribute private GitHub repos in Jupyter notebooks that people may run on their local systems or in Google Colab. This project provides a simple way to accomplish that goal.
Imagine you have an example notebook called oxlab_demo.ipynb and you want to have it reference a private GitHub repo for your project.
You can take the following steps:
Generate an SSH deploy key for your project via something like:
ssh-keygen -t ecdsa -f /tmp/example_deploy_key_id_ecdsaUpload the public key (which is saved at /tmp/example_deploy_key_id_ecdsa.pub if you used the above command) to GitHub as discussed in the instructions on deploy keys.
Create a cell in your notebook like the following where you replace $YOUR_PRIVATE_KEY with your ssh deploy key generated in step 1 (e.g., the contents of /tmp/example_deploy_key_id_ecdsa), replace $OWNER with the owner of your GitHub repo (e.g., emin63) and $REPO with your repo (e.g., oxlab):
# @title Pull in our private github repo SSH_DEPLOY_KEY = $YOUR_PRIVATE_KEY !pip install oxlab from oxlab import github oxlab.add_github_repo($OWNER, $REPO, SSH_DEPLOY_KEY)
Then the rest of your notebook will be able to do something like import $REPO and reference your private GitHub code.
See the oxlab_demo.ipynb notebook for an example.
Metadata
Release files for oxlab 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oxlab-0.3.1.tar.gz | 5.2 kB | Without provenance | Details for oxlab-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oxlab-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for oxlab-0.3.1-py3-none-any.whl |
Total release size: 10.5 kB
Release files / oxlab-0.3.1.tar.gz
| Download URL | oxlab-0.3.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b1593201af3d81d07e7c8d4162f6c773e003ecf143c340bd6b5665087695b26
|
|
BLAKE2b-256 checksum How to use checksums |
49f2d8a5be3c50615c2ffa054f39e1236cc59bd3ab6268fec2b2c6d2643e70a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / oxlab-0.3.1-py3-none-any.whl
| Download URL | oxlab-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d538f62ff8a9e2d45323e07b58fe9c3afccc9cc5b471b01d5a14cf91e3857235
|
|
BLAKE2b-256 checksum How to use checksums |
17b0e02cb30a9617e485199a9fc1a499b27511f4389122269fdfd352cb8b03cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for oxlab 0.3.1
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.