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

Uploaded Source

File details

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

File metadata

  • Download URL: othertools-1.0.13.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

Hashes for othertools-1.0.13.tar.gz
Algorithm Hash digest
SHA256 a29519ac143245ea8c7e45144efd7ab0050c471ee9b43369c491d9812fc5f975
MD5 abaf689c5d87b0bb32a29b4957257752
BLAKE2b-256 ce7686bcc2feeb1e78642332b36ea359d2db0cdcc565a730945ce04a334dcd12

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