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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file baroness-0.0.1rc1.tar.gz
.
File metadata
- Download URL: baroness-0.0.1rc1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93720a810fe0e49db6fffc2d5734f270f3766eb515783c00c9eb6a43481d4960 |
|
MD5 | 8d94e2a619e4cdec8317b7b34d2c3777 |
|
BLAKE2b-256 | 60a3e9fc5012a4bd9050a38d589c406ef98994674d19e882269cac89de0ec148 |
File details
Details for the file baroness-0.0.1rc1-py2.py3-none-any.whl
.
File metadata
- Download URL: baroness-0.0.1rc1-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fc0e28472b74fdb9d1f7821af033b2f6a3aad12e67d1c668fed4094eb7a402 |
|
MD5 | 7895156b863b8f00023581e1791de8c2 |
|
BLAKE2b-256 | d9f5e121c4774604f93c2302a61c91cff5b38b653cf535992549f0bf93d0079e |