A library to quickly import your default libraries in jupyter notebooks and python scripts.
Install
pip install dimport
Quick Start
For jupyter notebooks
Import dimport when you create a new notebook.
import dimport
On the first time cell execution, it will print the default imports.
Copy-paste the printed lines in your notebook and remove (or keep if you want!) the import dimport line. That's it!
For python scripts
Import dimport at the beginning of your script.
import dimport
Run the script from the terminal. It will print the default imports.
Copy-paste the printed lines in your script and remove import dimport line. That's it!
Note: You can modify the default imports as per your needs!
Modify the default imports
When you import dimport for the first time after installation, it creates ~/.dimport directory and saves the default imports in the ~/.dimport/.default file. You can simply modify ~/.dimport/.default file to change your default imports as per your needs!
Metadata
Release files for dimport 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| dimport-1.0.0.tar.gz | 264.1 kB | Without provenance | Details for dimport-1.0.0.tar.gz |
Release files / dimport-1.0.0.tar.gz
| Download URL | dimport-1.0.0.tar.gz |
|---|---|
| Size | 264.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6b33893a51492cfbb2895bfeef1a9505fb593815434608fef6687fd3d89dbb4
|
|
BLAKE2b-256 checksum How to use checksums |
108c6a29400a7c68119bd3f19eabfde39a852bebb6279b3800697a54bf59a37a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for dimport 1.0.0
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.