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

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

Uploaded Source

File details

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

File metadata

  • Download URL: othertools-1.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 52cfa79c24d5c204080a6a09013eda931bb9d1f79a352ff15deaca3203ac1582
MD5 70bd108f34afce2cc5eca61f8f08053c
BLAKE2b-256 800a8d3ccaf207eb0198c67325f45e64350946a7199a4de5eeb01497e35be0e1

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