Skip to main content

Toolkit for easy searching and manipulation of python source code using redbaron.

Project description

# Baroness

Toolkit for easy searching and manipulation of python source code using redbaron.

## Installation

pip install baroness

## Usage

### Searching

You can search through python code using the redbaron API on the commandline. By default baroness will search through all python files from the current directory down recursively. The search pattern is just regular python code that would work with redbaron. The top level node is called root.

For example to search for all name nodes with a value of bar:

baroness ‘root(“name”, value=”bar”)’

### Caching

Parsing python files to a baron fst can be time consuming for large code bases. Baroness can cache the baron fst as json files to save time when searching. By default caching isn’t enabled, but will be used if baroness finds a .baroness directory.

To enable caching (and initially create cache) you can use:

baroness cache init

To delete all .baroness directories recursively use:

baroness cache delete

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

baroness-0.0.1rc1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

baroness-0.0.1rc1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file baroness-0.0.1rc1.tar.gz.

File metadata

File hashes

Hashes for baroness-0.0.1rc1.tar.gz
Algorithm Hash digest
SHA256 93720a810fe0e49db6fffc2d5734f270f3766eb515783c00c9eb6a43481d4960
MD5 8d94e2a619e4cdec8317b7b34d2c3777
BLAKE2b-256 60a3e9fc5012a4bd9050a38d589c406ef98994674d19e882269cac89de0ec148

See more details on using hashes here.

File details

Details for the file baroness-0.0.1rc1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for baroness-0.0.1rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d9fc0e28472b74fdb9d1f7821af033b2f6a3aad12e67d1c668fed4094eb7a402
MD5 7895156b863b8f00023581e1791de8c2
BLAKE2b-256 d9f5e121c4774604f93c2302a61c91cff5b38b653cf535992549f0bf93d0079e

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