Other Tools
Project description
Other Tools for Python
To Publish
$ python setup.py sdist
$ twine upload dist/othertools-X.X.X.tar.gz
Installation
$ pip install othertools
# other useful commands
$ pip show othertools | findstr "Version"
$ pip install othertools --upgrade
Usage
from othertools.path import chdir_by_anchor
chdir_by_anchor("environment.yaml", "src/.+")
#---
from othertools.path import path_add_by_anchor
path_add_by_anchor("environment.yaml", "src/.+")
Examples
Example 1
Before:
.
├── documents
└── projects
└── python
└── hello-world
├── environment.yaml
└── src ### CURRENT DIRECTORY] ###
└── root.package
└── main.py
chdir_by_anchor("environment.yaml", "src/.+")
After:
.
├── documents
└── projects
└── python
└── hello-world
├── environment.yaml
└── src
└── root.package ### CURRENT DIRECTORY] ###
└── main.py
Example 2
Before:
.
├── documents
└── projects
└── python
└── hello-world ### CURRENT DIRECTORY] ###
├── environment.yaml
└── src
└── root.package
└── main.py
chdir_by_anchor("environment.yaml", "src/.+")
After:
.
├── documents
└── projects
└── python
└── hello-world
├── environment.yaml
└── src
└── root.package ### CURRENT DIRECTORY] ###
└── main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
othertools-1.0.11.tar.gz
(2.1 kB
view details)
File details
Details for the file othertools-1.0.11.tar.gz
.
File metadata
- Download URL: othertools-1.0.11.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f76b262727d6be86e953e0f86ead9623e17b500e4c72daba9969e64b5cdc580 |
|
MD5 | 8c767712e7573e523f5b5b9f4aeed9bc |
|
BLAKE2b-256 | 87b6468c1a5b60d458cd10d77cc9aa39a86cdbe9ec6d3e4fe514cda68da7f2e9 |