• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux firkin Download

firkin

October 15, 2008
Firkin is a Python module designed for converting measurement units. With Firkin, users can effortlessly convert between diverse measurement units with great precision.
Version 0.02
License GPL
Platform Linux
Supported Languages English
Homepage www.florian-diesch.de
Developed by Florian Diesch
Firkin, a Python module designed to convert between different measurement units, is a handy tool for anyone who deals with unit conversions on a regular basis.

To start using Firkin, you'll first need to create an instance of UnitManager using the following command:

>>> um=UnitManager()

Next, you can create two families of units. The first is liter, which uses SIFamily to automatically create units with the SI prefixes. Here's a list of the prefixes and their meanings:

prefix meaning value
f femto 10-15
p pico 10-12
n nano 10-9
µ micro 10-6
m milli 10-3
k kilo 103
M mega 106
G giga 109
T tera 1012

To add the liter family to your UnitManager instance, use the following command:

>>> um.add(SIFamily(base='l', name='liter'))

Now you have a UnitManager instance that knows about fl, pl, nl, ..., Ml, Gl, and Tl. To convert 10000 ml to liters, simply use the convert_to_unit method:

>>> um.convert_to_unit(1e4, 'ml', 'l')
(Decimal("10.0000"), 'l')

Next, you can create a family by hand using the Family class. Here's an example:

>>> f=Family(name='f', base='gallon')
>>> f.add('barrel', 36, 'gallon')
>>> f.add('kilderkin', 0.5, 'barrel')
>>> f.add('firkin', 0.5, 'kilderkin')

Now you have a family called f that uses gallon as its base and knows about barrel, kilderkin, and firkin. To convert one firkin to gallons, use the following command:

>>> f.convert(1, 'firkin', 'gallon')
(Decimal("9.00"), 'gallon')

And to find the best way to express 3 kilderkin, use the autoconvert method:

>>> f.autoconvert(3, 'kilderkin')
(Decimal("1.50"), 'barrel')

To convert between family f and family liter, you'll need to add f to your UnitManager instance and tell Firkin how much liters (the base unit of family liter) a gallon (the base unit of family f) is. Here's an example:

>>> um.add(f, other='liter', factor=4.54609)

Now you can convert between firkin and gallon:

>>> um.convert_to_unit(1, 'firkin', 'gallon')
(Decimal("9.00"), 'gallon')

Or between firkin and liters:

>>> um.convert_to_unit(1, 'firkin', 'l')
(Decimal("40.9148100"), 'l')

You can even find the best way to express one liter in one of the units from family f:

>>> um.convert_to_family(1, 'l', 'f')
(Decimal("0.219969248299"), 'gallon')

This works with barrels
What's New

Version 0.02: N/A

Free Download 15K
407
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

BlueHeart
BlueHeart is a Gnome theme that offers a sleek and stylish interface ...
theosim
The Theosim project is a software tool designed to facilitate simulation and ...
phpBB
phpBB is a PHP-based discussion board system with a MySQL database backend ...
Amarok ices script
The Amarok Ices script allows users to stream sound card output to ...
KMidimon
This is a Linux-based MIDI monitor software that uses ALSA sequencer and ...
dvdmenuauthor
DVDMenuAuthor allows users to create menus for their DVDs in a straightforward ...
ArithmeticLayoutManager
ArithmeticLayoutManager is a layout manager software that enables users to perform arithmetic ...
Endian Firewall Community
This software is a Linux security distribution built on Red Hat and ...
ZX81 / TS1000 Emulator
The ZX81/TS1000 Emulator is a Linux-compatible software that allows users to play ...
Class::Methodist
This software functionality helps define methods for instance variables within a class, ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.