Skip to main content

brvstr

Developer Guide

Setup

# create conda environment
$ mamba env create -f env.yml

# update conda environment
$ mamba env update -n brvstr --file env.yml

Install

pip install -e .

# install from pypi
pip install brvstr

nbdev

# activate conda environment
$ conda activate brvstr

# make sure the brvstr package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to the brvstr package
$ nbdev_prepare

Publishing

# publish to pypi
$ nbdev_pypi

# publish to conda
$ nbdev_conda --build_args '-c conda-forge'
$ nbdev_conda --mambabuild --build_args '-c conda-forge -c dsm-72'

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/dsm-72/brvstr.git

or from conda

$ conda install -c dsm-72 brvstr

or from pypi

$ pip install brvstr

Documentation

Documentation can be found hosted on GitHub repository pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

# Example usage
kg_low = brvstr('kilogram', 'kg')
kg_cap = brvstr('Kilogram', 'Kg')
kg_upp = brvstr('KILOGRAM', 'KG')
kg_low, kg_cap, kg_upp
(kilogram (kg), Kilogram (Kg), KILOGRAM (KG))
kg_low == kg_cap == kg_upp
True
no_abrv = brvstr('Kilogram', )
no_abrv == 'kilogram', no_abrv
(True, Kilogram)

Metadata

Release files for brvstr 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brvstr 0.0.1
File Size Uploaded
brvstr-0.0.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brvstr 0.0.1
File Interpreter ABI Platform
brvstr-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / brvstr-0.0.1.tar.gz

Download URL brvstr-0.0.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b8d2f6dfe52a9ddf44dcb11e67072e4dafb310e763d42b638609ad2536af2c4
BLAKE2b-256 checksum
How to use checksums
59c7e45badd0bbcc145c845c3f571f7cb1246f29591fd9e5c3eac2b26d5e3d32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / brvstr-0.0.1-py3-none-any.whl

Download URL brvstr-0.0.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa8292711de29d0b2c102998eefc355f902db6b515d0f1014f68f510914691d1
BLAKE2b-256 checksum
How to use checksums
314ba2c90b04f5ce23034432be94f875eb8a9964f40c761e16aa29b9e2655e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page