Skip to main content

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


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.12.tar.gz (2.1 kB view hashes)

Uploaded Source

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