personal python lib 
legacy python lib see xsthunder/python-lib-old: useful python pieces of code
TODO
-
- fix three version replicates, in
rebuild.cmd,x_lib.__init__,setup.py
- fix three version replicates, in
-
- create github repo
-
- ex_command能用,默认目录就在jupyter目录下。即外部可以直接使用x_lib.common.ex_command
-
- save_and_export_notebook使用了
./就是本目录下要求一定有script;;解决方法是通过import而不是ex_command的方式保存文件
- save_and_export_notebook使用了
-
- save_and_export_notebook使用了支持多级目录
Features
- Full test with traivis to make sure things are on rail.
- list of function see doc
Install and Run
Install via xsthunder-python-lib · PyPI
pip install xsthunder-python-liborpip install xsthunder-python-lib --user
Use in Code
use for single ipynb file
export the ipynb file
nbe = common.NBExporter()
nbe('./pdb.ipynb', to='./')
use for projcet
clone xsthunder/jupyter_dev_template
Development
Environment Setup
deps
- not all deps are necessary. only ipython are set in the
setup.py/deps. x_lib.commonsupports dynamic import. feel free to import.- to import other modules, please install corresponding deps first or you may come across error.
- It's recommanded to install all packages listed in create-env.sh
Ref
Packaging Python Projects — Python Packaging User Guide
notebook2script from course-v3/nbs/dl2 at master · fastai/course-v3
Metadata
Release files for xsthunder-python-lib 0.0.3
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 |
|---|---|---|---|---|
| xsthunder_python_lib-0.0.3.tar.gz | 2.6 kB | Without provenance | Details for xsthunder_python_lib-0.0.3.tar.gz |
Release files / xsthunder_python_lib-0.0.3.tar.gz
| Download URL | xsthunder_python_lib-0.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaec192512ebe78565ae4b6a690dd16619a20595e41d48128f335544ec3a291b
|
|
BLAKE2b-256 checksum How to use checksums |
4c7680bf3783a20613e0844f64ab1e146f1d782e0345f3198e81288b9bd00183
|
| 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/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Security for xsthunder-python-lib 0.0.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.