Skip to main content

brvstr

Project description

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)

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

brvstr-0.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

brvstr-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file brvstr-0.0.1.tar.gz.

File metadata

  • Download URL: brvstr-0.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for brvstr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7b8d2f6dfe52a9ddf44dcb11e67072e4dafb310e763d42b638609ad2536af2c4
MD5 c432f4abaeb6e3523dc9fdae3f628b4e
BLAKE2b-256 59c7e45badd0bbcc145c845c3f571f7cb1246f29591fd9e5c3eac2b26d5e3d32

See more details on using hashes here.

File details

Details for the file brvstr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: brvstr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for brvstr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8292711de29d0b2c102998eefc355f902db6b515d0f1014f68f510914691d1
MD5 8d9cf14c47fb90c4c9c48369d4b3ce1b
BLAKE2b-256 314ba2c90b04f5ce23034432be94f875eb8a9964f40c761e16aa29b9e2655e11

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