All Projects → ESSS → Barril

ESSS / Barril

Licence: mit
Python package to manage units for physical quantities

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Barril

Mergely
Merge and diff documents online
Stars: ✭ 918 (+3572%)
Mutual labels:  hacktoberfest
Hazelcast Hibernate
A distributed second-level cache for Hibernate
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Awesome Obsidian
🕶️ Awesome stuff for Obsidian
Stars: ✭ 918 (+3572%)
Mutual labels:  hacktoberfest
Adguardfilters
AdGuard Content Blocking Filters
Stars: ✭ 915 (+3560%)
Mutual labels:  hacktoberfest
Knifecycle
Manage your NodeJS processes's lifecycle automatically with an unobtrusive dependency injection implementation.
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Rladies Brasil
Lista de meetups online de diferentes capítulos da R-Ladies no Brasil.
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Dancer Plugin Auth Extensible
Authentication framework for Dancer-based web applications
Stars: ✭ 22 (-12%)
Mutual labels:  hacktoberfest
Haskell
Implementation of All ▲lgorithms in Haskell Programming Language
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+3608%)
Mutual labels:  hacktoberfest
Python
Python cheatsheet
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Laravel Sri
Subresource Integrity hash generator for laravel
Stars: ✭ 23 (-8%)
Mutual labels:  hacktoberfest
Replayzero
Record local web traffic on your laptop and generate functional API tests, utilizing open source industry standards like Karate and Gatling
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Sivar Utils
TS/JS utils para el desarrollo de sistemas salvadoreños 🇸🇻
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Kuberhealthy
A Kubernetes operator for running synthetic checks as pods. Works great with Prometheus!
Stars: ✭ 920 (+3580%)
Mutual labels:  hacktoberfest
Laminas Zendframework Bridge
Alias legacy ZF class names to Laminas Project equivalents.
Stars: ✭ 928 (+3612%)
Mutual labels:  hacktoberfest
Titanhide
Hiding kernel-driver for x86/x64.
Stars: ✭ 917 (+3568%)
Mutual labels:  hacktoberfest
Dlang
[MIRROR] D programming language ebuild repository
Stars: ✭ 24 (-4%)
Mutual labels:  hacktoberfest
Machdump
A very basic C Mach-O Header Dump tool written for practicing purposes. Works With x86 and x86_64 binaries
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest
Conteudo Gratuito
📌 Conteúdos gratuitos compartilhados pela comunidade.
Stars: ✭ 925 (+3600%)
Mutual labels:  hacktoberfest
Laminas Cli
Console command runner, exposing commands written in Laminas MVC and Mezzio components and applications
Stars: ✭ 25 (+0%)
Mutual labels:  hacktoberfest

====== Barril

.. image:: https://img.shields.io/pypi/v/barril.svg :target: https://pypi.python.org/pypi/barril

.. image:: https://img.shields.io/pypi/pyversions/barril.svg :target: https://pypi.org/project/barril

.. image:: https://github.com/ESSS/barril/workflows/build/badge.svg :target: https://github.com/ESSS/barril/actions

.. image:: https://codecov.io/gh/ESSS/barril/branch/master/graph/badge.svg :target: https://codecov.io/gh/ESSS/barril

.. image:: https://img.shields.io/readthedocs/barril.svg :target: https://barril.readthedocs.io/en/latest/

What is Barril?

Python package to manage units for physical quantities.

Quick example:

.. code-block:: python

from barril.units import Scalar

s1 = Scalar(10, 'm')
s2 = Scalar(500, 'cm')
assert s1 + s2 == Scalar(15, 'm')

Features

  • Pre-defined unit database containing several physical quantities for the Oil & Gas industry.
  • Data types with an associated unit: Scalar, Array, Quantity, FixedArray.
  • Automatic conversion during arithmetic operations.

Development

For complete description of what type of contributions are possible, see the full CONTRIBUTING <CONTRIBUTING.rst>_ guide.

Here is a quick summary of the steps necessary to setup your environment to contribute to barril.

#. Create a virtual environment and activate it::

$ python -m virtualenv .env
$ .env\Scripts\activate  # windows
$ source .env/bin/activate  # linux

.. note::

   If you use ``conda``, you can install ``virtualenv`` in the root environment::

       $ conda install -n root virtualenv

   Don't worry as this is safe to do.

#. Update pip::

$ python -m pip install -U pip

#. Install development dependencies::

$ pip install -e .[testing]

#. Install pre-commit::

$ pre-commit install

#. Run tests::

$ pytest --pyargs barril

#. Generate docs locally::

$ tox -e docs

The documentation files will be generated in docs/_build.

Release

A reminder for the maintainers on how to make a new release.

Note that the VERSION should folow the semantic versioning as X.Y.Z Ex.: v1.0.5

  1. Create a release-VERSION branch from upstream/master.
  2. Update CHANGELOG.rst.
  3. Push a branch with the changes.
  4. Once all builds pass, push a VERSION tag to upstream.
  5. Merge the PR.

Credits

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage .. _GitHub page : https://github.com/ESSS/barril .. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _pytest: https://github.com/pytest-dev/pytest .. _tox: https://github.com/tox-dev/tox

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].