Installation
bor can be installed by running pip install bor. It requires Python 3.8.0+ to run.
Usage
bor currently supports class and def keywords. Other Python keywords will be added
in the future releases.
bor {keyword} {pattern}
By default, bor runs in your current directory. You can run bor with the specific source file or directory:
bor {keyword} {pattern} {source_file_or_directory}
Configuration
By default, if bor encounters an error(syntax, indentation error etc.) while analyzing
files, it will stop working. If you want to the ignore errors, you can use
--ignore-error or -i argument. For example;
bor class Cat --ignore-error
Example Usages
Cat is equivalent in the regular expression as ^Cat$
bor class Cat
Output:
Cat at examples/test.py:18
.Cat is equivalent in the regular expression as Cat$
bor class .Cat
Output:
Cat at examples/test.py:18
BlueCat at examples/test.py:26
get. is equivalent in the regular expression as ^get
bor def get. examples/test.py
Output:
get_value at examples/test.py:5
get_blue_value at examples/test.py:11
get_purple_value at examples/test.py:14
get_meow at examples/test.py:22
.cat. is equivalent in the regular expression as cat+
bor def .cat.
Output:
catch_me_if_you_can at examples/test.py:8
am_i_blue_cat at examples/test.py:30
where_is_the_cat at examples/test.py:38
Metadata
Release files for bor 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bor-0.2.0.tar.gz | 5.5 kB | Without provenance | Details for bor-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bor-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bor-0.2.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / bor-0.2.0.tar.gz
| Download URL | bor-0.2.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
944c058bd3304d34c47f52089fc62b9e8746d3420f3bea3a6dc020dcf351a8c1
|
|
BLAKE2b-256 checksum How to use checksums |
f70601a7bd4832518f94c070e782bd550317bb1e6b7792c80dcf922f98a210d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / bor-0.2.0-py3-none-any.whl
| Download URL | bor-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd79998b0c11606271489e7881149dc52b08fec2c5f6dafc0e80bd1e5fee0caa
|
|
BLAKE2b-256 checksum How to use checksums |
7b347a37c392df20628b2f15aaa4447e7718505cad1150e6c9a05cbf18e06e24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for bor 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.