Jacinle
Jacinle is a personal python toolbox. It contains a range of utility functions for python development, including project configuration, file IO, image processing, inter-process communication, etc.
[Website] [Examples] [Jacinle References] [JacLearn References] [JacTorch References]
Installation
Clone the Jacinle package (be sure to clone all submodules), and add the bin path to your PATH environment.
git clone https://github.com/vacancy/Jacinle --recursive
export PATH=<path_to_jacinle>/bin:$PATH
Optionally, you may need to install third-party packages specified in requirements.txt
Command Line
-
jac-run xxx.pyJacinle comes with a command line to replace the
pythoncommand:jac-run. In short, this command will automatically add the Jacinle packages intoPYTHONPATH, as well as adding a few vendor Python packages intoPYTHONPATH(for example, JacMLDash). Using this command to replacepython xxx.pyis the best practice to manage dependencies.Furthremore, this command also supports a configuration file specific to projects. The command will search for a configuration file named
jacinle.ymlin the current working directory and its parent directories. This file specifies additional environmental variables to add, for example.project_root: true # tell the script that the folder containing this file is the root of a project. The directory will be added to PYTHONPATH. system: envs: CUDA_HOME: /usr/local/cuda-10.0 # set needed environment variables here. path: bin: # will be prepended to $PATH /usr/local/bin python: # will be prepended to $PYTHONPATH /Users/jiayuanm/opt/my_python_lib vendors: # load additional Python packages (root paths will be added to PYTHONPATH) pybullet_tools: root: /Users/jiayuanm/opt/pybullet/utils alfred: root: /Users/jiayuanm/opt/alfred
-
jac-crun <gpu_ids> xxx.pyThe same as
jac-run, but takes an additional argument, which is a comma-separated list of gpu ids, following the convension ofCUDA_VISIBLE_DEVICES. -
jac-debug xxx.pyThe same as
jac-run, but sets the environment variableJAC_DEBUG=1before running the command. By default, in the debug mode, anipdbinterface will be started when an exception is raised. -
jac-cdebug <gpu_ids> xxx.pyThe combined
jac-debugandjac-crun. -
jac-updateUpdate the Jacinle package (and all dependencies inside
vendors/). -
jac-inspect-file xxx.json yyy.pklStart an IPython interface and loads all files in the argument list. The content of the files can be accessed via
f1,f2, ...
Python Libraries
Jacinle contains a collection of useful packages. Here is a list of commonly used packages, with links to the documentation.
jacinle.*: frequently used utility functions, such asjacinle.JacArgumentParser,jacinle.TQDMPool,jacinle.get_logger,jacinle.cond_with, etc.jacinle.io.*: IO functions. Two of the mostly used ones are:jacinle.io.load(filename)andjacinle.io.dump(filename, obj)jacinle.random.*: almost the same asnumpy.random.*, but with a few additional utility functions and RNG state management functions.jacinle.web.*: the oldjacwebpackage, which is a customized wrapper around the tornado web server.jaclearn.*: machine learning modules.jactorch.*: a collection of PyTorch functions in addition to thetorch.*functions.
Metadata
Release files for jacinle 1.0.4
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 |
|---|---|---|---|---|
| jacinle-1.0.4.tar.gz | 4.0 MB | Without provenance | Details for jacinle-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jacinle-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for jacinle-1.0.4-py3-none-any.whl |
Total release size: 4.1 MB
Release files / jacinle-1.0.4.tar.gz
| Download URL | jacinle-1.0.4.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00ab022f65ad0515d07f01960efcac4b6e10aafbb7f768e7d948198bd1d1b2af
|
|
BLAKE2b-256 checksum How to use checksums |
fddafff7949ef3c6a96ae239df6118bf192921489681b00a9ce1c80e9a78e9ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / jacinle-1.0.4-py3-none-any.whl
| Download URL | jacinle-1.0.4-py3-none-any.whl |
|---|---|
| Size | 136.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a1fd0a23d78ac04e668c9237cf92160fb336edaa336121168bfe2408d0abd04
|
|
BLAKE2b-256 checksum How to use checksums |
8c6d98b4dc9dc3db0de37c795eb55dda86b4e2d568fa690f836a5f5386185020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for jacinle 1.0.4
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.