Skip to main content

Other Tools

Project description

Other Tools for Python

To Publish

$ python setup.py sdist
$ twine upload dist/*

Installation

$ pip install othertools

Usage

from othertools.path import chdir_by_anchor
from othertools.path import path_add_by_anchor

chdir_by_anchor("environment.yaml", "src/.+")
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.8.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file othertools-1.0.8.tar.gz.

File metadata

  • Download URL: othertools-1.0.8.tar.gz
  • Upload date:
  • Size: 2.0 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

Hashes for othertools-1.0.8.tar.gz
Algorithm Hash digest
SHA256 806aadea1cd0d73b232838dd6333a64564254d414ac114a994710263d0a86907
MD5 4ea485f863b8feb617bfadbd16856e86
BLAKE2b-256 9a5b3fde3c49efcf7def04adffce14e33d6e7e74d770a4a0012caa633d86c7d1

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