Skip to main content

personal lib

Project description

personal python lib Build Status

legacy python lib see xsthunder/python-lib-old: useful python pieces of code

TODO

    • [x] fix three version replicates, in rebuild.cmd, x_lib.__init__, setup.py
    • [x] create github repo
    • [x] ex_command能用,默认目录就在jupyter目录下。即外部可以直接使用x_lib.common.ex_command
    • [x] save_and_export_notebook使用了./就是本目录下要求一定有script;;解决方法是通过import而不是ex_command的方式保存文件
    • [x] save_and_export_notebook使用了支持多级目录

Features

  1. Full test with traivis to make sure things are on rail.
  2. list of function see doc

Install and Run

Install via xsthunder-python-lib · PyPI

  1. pip install xsthunder-python-lib or pip 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

for conda

deps

  1. not all deps are necessary. only ipython are set in the setup.py/deps.
  2. x_lib.common supports dynamic import. feel free to import.
  3. to import other modules, please install corresponding deps first or you may come across error.
  4. It's recommanded to install all packages listed in create-env.sh

Ref

deployment - How can I use setuptools to generate a console_scripts entry point which calls python -m mypackage? - Stack Overflow

Packaging Python Projects — Python Packaging User Guide

notebook2script from course-v3/nbs/dl2 at master · fastai/course-v3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xs_lib-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file xs_lib-0.0.2.tar.gz.

File metadata

  • Download URL: xs_lib-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for xs_lib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 08a321c076f2741967905988da201c351ba3feb311c128d36a15e7a9908343c9
MD5 e5bad14da0f6f5ef06ee57c42ca388e3
BLAKE2b-256 8da1fefc4e18600b921a3f5ee3ca5ab5d75a7e43e0fb6a40f42df4ca6d4276ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page