py-ballisticcalc.exts


Namepy-ballisticcalc.exts JSON
Version 2.0.1 PyPI version JSON
download
home_pageNone
SummaryLGPL library for small arms ballistic calculations (Python 3)
upload_time2024-04-11 16:15:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseGNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
keywords py_ballisticcalc ballistics cython ballistic calculator python python3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BallisticCalculator
LGPL library for small arms ballistic calculations (Python 3.9+)

### Table of contents
* **[Installation](#installation)**
  * [Latest stable](#latest-stable-release-from-pypi)
  * [From sources](#installing-from-sources)
  * [Clone and build](#clone-and-build)
* **[Usage](#usage)**
  * [Units of measure](#unit-manipulation-syntax)
  * [An example of calculations](#an-example-of-calculations)
  * [Output example](#example-of-the-formatted-output)
* **[Older versions]()**
  * [v1.0.x](https://github.com/o-murphy/py_ballisticcalc/tree/v1.0.12)
* **[Contributors](#contributors)**
* **[About project](#about-project)**

### Installation
#### Latest stable release from pypi**
```shell
pip install py-ballisticcalc

# Using precompiled backend (improves performance)
pip install py-ballisticcalc[exts]

# Using matplotlib and pandas uses additional dependencies
pip install py-ballisticcalc[charts]
```


#### Using matplotlib and pandas uses additional dependencies
```shell
pip install py-ballisticcalc[charts]
```
#### Installing from sources
**MSVC** or **GCC** required
* Download and install **MSVC** or **GCC** depending on target platform
* Use one of the references you need:
```shell
# no binary from PyPi
pip install py-ballisticcalc==<version> --no-binary py-ballisticcalc

# master brunch
pip install git+https://github.com/o-murphy/py_ballisticcalc

# specific branch
pip install git+https://github.com/o-murphy/py_ballisticcalc.git@<target_branch_name>
```

[//]: # (#### Clone and build)

[//]: # (**MSVC** or **GCC** required)

[//]: # (```shell)

[//]: # (git clone https://github.com/o-murphy/py_ballisticcalc)

[//]: # (cd py_ballisticcalc)

[//]: # (python -m venv venv)

[//]: # (. venv/bin/activate)

[//]: # (pip install cython)

[//]: # (python setup.py build_ext --inplace)

[//]: # (```)

## Usage



The library supports all the popular units of measurement, and adds different built-in methods to define and manipulate it
#### Unit manipulation syntax:

```python
from py_ballisticcalc.unit import *

# ways to define value in prefer_units
# 1. old syntax
unit_in_meter = Distance(100, Distance.Meter)
# 2. short syntax by Unit type class
unit_in_meter = Distance.Meter(100)
# 3. by Unit enum class
unit_in_meter = Unit.Meter(100)

# >>> <Distance>: 100.0 m (3937.0078740157483)

# convert unit
# 1. by method
unit_in_yard = unit_in_meter.convert(Distance.Yard)
# 2. using shift syntax
unit_in_yards = unit_in_meter << Distance.Yard  # '<<=' operator also supports
# >>> <Distance>: 109.36132983377078 yd (3937.0078740157483)

# get value in specified prefer_units
# 1. by method
value_in_km = unit_in_yards.get_in(Distance.Kilometer)
# 2. by shift syntax
value_in_km = unit_in_yards >> Distance.Kilometer  # '>>=' operator also supports
# >>> 0.1

# getting unit raw value:
rvalue = Distance.Meter(10).raw_value
rvalue = float(Distance.Meter(10))

# prefer_units comparison:
# supports operators like < > <= >= == !=
Distance.Meter(100) == Distance.Centimeter(100)  # >>> False, compare two prefer_units by raw value
Distance.Meter(100) > 10  # >>> True, compare unit with float by raw value
```

#### An example of calculations

```python
from py_ballisticcalc import *
from py_ballisticcalc import Settings, PreferredUnits

# Modify default prefer_units
PreferredUnits.velocity = Velocity.FPS
PreferredUnits.temperature = Temperature.Celsius
PreferredUnits.distance = Distance.Meter
PreferredUnits.sight_height = Distance.Centimeter

Settings.USE_POWDER_SENSITIVITY = True  # Correct muzzle velocity for powder temperature

# Define ammunition parameters
weight, diameter = 168, 0.308  # Numbers will be assumed to use default Settings.Units
length = Distance.Inch(1.282)  # Or declare prefer_units explicitly
dm = DragModel(0.223, TableG7, weight, diameter, length)
ammo = Ammo(dm, 2750, 15)
ammo.calc_powder_sens(2723, 0)
gun = Weapon(sight_height=9, twist=12)
current_atmo = Atmo(110, 29.8, 15, 72)
current_winds = [Wind(2, 90)]
shot = Shot(weapon=gun, ammo=ammo, atmo=current_atmo, winds=current_winds)
calc = Calculator()
calc.set_weapon_zero(shot, Distance.Meter(100))

shot_result = calc.fire(shot, trajectory_range=1000, trajectory_step=100)

for p in shot_result:
    print(p.formatted())
```
#### Example of the formatted output:
```shell
python -m py_ballisticcalc.example
```

```
('0.000 s', '0.0 m', '2750.0 ft/s', '2.46 mach', '-3.5 inch', '-3.5 inch', '0.00 mil', '0.0 inch', '0.00 mil', '0.0 m', '0.0939 °', '-4.062e-03', '0.000', '2821 ft·lb', '880 lb', 8)
('0.125 s', '100.1 m', '2526.5 ft/s', '2.26 mach', '0.0 inch', '0.0 inch', '0.00 mil', '0.2 inch', '0.05 mil', '100.1 m', '0.0068 °', '-4.062e-03', '0.665', '2381 ft·lb', '683 lb', 9)
('0.260 s', '200.0 m', '2313.5 ft/s', '2.07 mach', '-3.0 inch', '-3.0 inch', '-0.39 mil', '0.8 inch', '0.10 mil', '200.0 m', '-0.0967 °', '-4.062e-03', '0.633', '1996 ft·lb', '524 lb', 8)
('0.409 s', '300.1 m', '2111.2 ft/s', '1.89 mach', '-13.8 inch', '-13.8 inch', '-1.19 mil', '1.9 inch', '0.16 mil', '300.1 m', '-0.2207 °', '-4.062e-03', '0.599', '1663 ft·lb', '398 lb', 8)
('0.572 s', '400.1 m', '1919.6 ft/s', '1.72 mach', '-33.9 inch', '-33.9 inch', '-2.19 mil', '3.5 inch', '0.22 mil', '400.1 m', '-0.3701 °', '-4.062e-03', '0.570', '1374 ft·lb', '299 lb', 8)
('0.751 s', '500.0 m', '1736.8 ft/s', '1.56 mach', '-65.4 inch', '-65.4 inch', '-3.38 mil', '5.7 inch', '0.30 mil', '500.0 m', '-0.5516 °', '-4.062e-03', '0.545', '1125 ft·lb', '222 lb', 8)
('0.951 s', '600.1 m', '1561.9 ft/s', '1.40 mach', '-110.7 inch', '-110.7 inch', '-4.77 mil', '8.7 inch', '0.37 mil', '600.1 m', '-0.7748 °', '-4.062e-03', '0.521', '910 ft·lb', '161 lb', 8)
('1.173 s', '700.0 m', '1395.2 ft/s', '1.25 mach', '-173.1 inch', '-173.1 inch', '-6.40 mil', '12.6 inch', '0.47 mil', '700.0 m', '-1.0525 °', '-4.062e-03', '0.495', '726 ft·lb', '115 lb', 8)
('1.423 s', '800.0 m', '1238.1 ft/s', '1.11 mach', '-257.0 inch', '-257.0 inch', '-8.31 mil', '17.6 inch', '0.57 mil', '800.0 m', '-1.4030 °', '-4.062e-03', '0.462', '572 ft·lb', '80 lb', 8)
('1.705 s', '900.1 m', '1097.8 ft/s', '0.98 mach', '-368.2 inch', '-368.2 inch', '-10.58 mil', '24.1 inch', '0.69 mil', '900.1 m', '-1.8503 °', '-9.633e-03', '0.333', '450 ft·lb', '56 lb', 8)
```

## Contributors
### This project exists thanks to all the people who contribute.
#### Special thanks to:
- **[David Bookstaber](https://github.com/dbookstaber)** - Ballistics Expert, Financial Engineer \
*For the help in understanding and improvement of some calculation methods*
- **[Nikolay Gekht](https://github.com/nikolaygekht)** \
*For the sources code on C# and GO-lang from which this project firstly was forked from*

## About project

The library provides trajectory calculation for projectiles including for various
applications, including air rifles, bows, firearms, artillery and so on.

3DF model that is used in this calculator is rooted in old C sources of version 2 of the public version of JBM
calculator, ported to C#, optimized, fixed and extended with elements described in
Litz's "Applied Ballistics" book and from the friendly project of Alexandre Trofimov
and then ported to Go.

Now it's also ported to python3 and expanded to support calculation trajectory by 
multiple ballistics coefficients and using custom drag data (such as Doppler radar data ©Lapua, etc.)

The online version of Go documentation is located here: https://godoc.org/github.com/gehtsoft-usa/go_ballisticcalc

C# version of the package is located here: https://github.com/gehtsoft-usa/BallisticCalculator1

The online version of C# API documentation is located here: https://gehtsoft-usa.github.io/BallisticCalculator/web-content.html

Go documentation can be obtained using godoc tool.

The current status of the project is ALPHA version.

#### RISK NOTICE

The library performs very limited simulation of a complex physical process and so it performs a lot of approximations. Therefore, the calculation results MUST NOT be considered as completely and reliably reflecting actual behavior or characteristics of projectiles. While these results may be used for educational purpose, they must NOT be considered as reliable for the areas where incorrect calculation may cause making a wrong decision, financial harm, or can put a human life at risk.

THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "py-ballisticcalc.exts",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "py_ballisticcalc, ballistics, Cython, ballistic calculator, python, python3",
    "author": null,
    "author_email": "o-murphy <thehelixpg@gmail.com>, dbookstaber <bookstaber@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f6/1c/e86a7fd020c598c583abba437f9746534978481343ff74daf2fc4970eb2e/py_ballisticcalc.exts-2.0.1.tar.gz",
    "platform": null,
    "description": "# BallisticCalculator\nLGPL library for small arms ballistic calculations (Python 3.9+)\n\n### Table of contents\n* **[Installation](#installation)**\n  * [Latest stable](#latest-stable-release-from-pypi)\n  * [From sources](#installing-from-sources)\n  * [Clone and build](#clone-and-build)\n* **[Usage](#usage)**\n  * [Units of measure](#unit-manipulation-syntax)\n  * [An example of calculations](#an-example-of-calculations)\n  * [Output example](#example-of-the-formatted-output)\n* **[Older versions]()**\n  * [v1.0.x](https://github.com/o-murphy/py_ballisticcalc/tree/v1.0.12)\n* **[Contributors](#contributors)**\n* **[About project](#about-project)**\n\n### Installation\n#### Latest stable release from pypi**\n```shell\npip install py-ballisticcalc\n\n# Using precompiled backend (improves performance)\npip install py-ballisticcalc[exts]\n\n# Using matplotlib and pandas uses additional dependencies\npip install py-ballisticcalc[charts]\n```\n\n\n#### Using matplotlib and pandas uses additional dependencies\n```shell\npip install py-ballisticcalc[charts]\n```\n#### Installing from sources\n**MSVC** or **GCC** required\n* Download and install **MSVC** or **GCC** depending on target platform\n* Use one of the references you need:\n```shell\n# no binary from PyPi\npip install py-ballisticcalc==<version> --no-binary py-ballisticcalc\n\n# master brunch\npip install git+https://github.com/o-murphy/py_ballisticcalc\n\n# specific branch\npip install git+https://github.com/o-murphy/py_ballisticcalc.git@<target_branch_name>\n```\n\n[//]: # (#### Clone and build)\n\n[//]: # (**MSVC** or **GCC** required)\n\n[//]: # (```shell)\n\n[//]: # (git clone https://github.com/o-murphy/py_ballisticcalc)\n\n[//]: # (cd py_ballisticcalc)\n\n[//]: # (python -m venv venv)\n\n[//]: # (. venv/bin/activate)\n\n[//]: # (pip install cython)\n\n[//]: # (python setup.py build_ext --inplace)\n\n[//]: # (```)\n\n## Usage\n\n\n\nThe library supports all the popular units of measurement, and adds different built-in methods to define and manipulate it\n#### Unit manipulation syntax:\n\n```python\nfrom py_ballisticcalc.unit import *\n\n# ways to define value in prefer_units\n# 1. old syntax\nunit_in_meter = Distance(100, Distance.Meter)\n# 2. short syntax by Unit type class\nunit_in_meter = Distance.Meter(100)\n# 3. by Unit enum class\nunit_in_meter = Unit.Meter(100)\n\n# >>> <Distance>: 100.0 m (3937.0078740157483)\n\n# convert unit\n# 1. by method\nunit_in_yard = unit_in_meter.convert(Distance.Yard)\n# 2. using shift syntax\nunit_in_yards = unit_in_meter << Distance.Yard  # '<<=' operator also supports\n# >>> <Distance>: 109.36132983377078 yd (3937.0078740157483)\n\n# get value in specified prefer_units\n# 1. by method\nvalue_in_km = unit_in_yards.get_in(Distance.Kilometer)\n# 2. by shift syntax\nvalue_in_km = unit_in_yards >> Distance.Kilometer  # '>>=' operator also supports\n# >>> 0.1\n\n# getting unit raw value:\nrvalue = Distance.Meter(10).raw_value\nrvalue = float(Distance.Meter(10))\n\n# prefer_units comparison:\n# supports operators like < > <= >= == !=\nDistance.Meter(100) == Distance.Centimeter(100)  # >>> False, compare two prefer_units by raw value\nDistance.Meter(100) > 10  # >>> True, compare unit with float by raw value\n```\n\n#### An example of calculations\n\n```python\nfrom py_ballisticcalc import *\nfrom py_ballisticcalc import Settings, PreferredUnits\n\n# Modify default prefer_units\nPreferredUnits.velocity = Velocity.FPS\nPreferredUnits.temperature = Temperature.Celsius\nPreferredUnits.distance = Distance.Meter\nPreferredUnits.sight_height = Distance.Centimeter\n\nSettings.USE_POWDER_SENSITIVITY = True  # Correct muzzle velocity for powder temperature\n\n# Define ammunition parameters\nweight, diameter = 168, 0.308  # Numbers will be assumed to use default Settings.Units\nlength = Distance.Inch(1.282)  # Or declare prefer_units explicitly\ndm = DragModel(0.223, TableG7, weight, diameter, length)\nammo = Ammo(dm, 2750, 15)\nammo.calc_powder_sens(2723, 0)\ngun = Weapon(sight_height=9, twist=12)\ncurrent_atmo = Atmo(110, 29.8, 15, 72)\ncurrent_winds = [Wind(2, 90)]\nshot = Shot(weapon=gun, ammo=ammo, atmo=current_atmo, winds=current_winds)\ncalc = Calculator()\ncalc.set_weapon_zero(shot, Distance.Meter(100))\n\nshot_result = calc.fire(shot, trajectory_range=1000, trajectory_step=100)\n\nfor p in shot_result:\n    print(p.formatted())\n```\n#### Example of the formatted output:\n```shell\npython -m py_ballisticcalc.example\n```\n\n```\n('0.000 s', '0.0 m', '2750.0 ft/s', '2.46 mach', '-3.5 inch', '-3.5 inch', '0.00 mil', '0.0 inch', '0.00 mil', '0.0 m', '0.0939 \u00b0', '-4.062e-03', '0.000', '2821 ft\u00b7lb', '880 lb', 8)\n('0.125 s', '100.1 m', '2526.5 ft/s', '2.26 mach', '0.0 inch', '0.0 inch', '0.00 mil', '0.2 inch', '0.05 mil', '100.1 m', '0.0068 \u00b0', '-4.062e-03', '0.665', '2381 ft\u00b7lb', '683 lb', 9)\n('0.260 s', '200.0 m', '2313.5 ft/s', '2.07 mach', '-3.0 inch', '-3.0 inch', '-0.39 mil', '0.8 inch', '0.10 mil', '200.0 m', '-0.0967 \u00b0', '-4.062e-03', '0.633', '1996 ft\u00b7lb', '524 lb', 8)\n('0.409 s', '300.1 m', '2111.2 ft/s', '1.89 mach', '-13.8 inch', '-13.8 inch', '-1.19 mil', '1.9 inch', '0.16 mil', '300.1 m', '-0.2207 \u00b0', '-4.062e-03', '0.599', '1663 ft\u00b7lb', '398 lb', 8)\n('0.572 s', '400.1 m', '1919.6 ft/s', '1.72 mach', '-33.9 inch', '-33.9 inch', '-2.19 mil', '3.5 inch', '0.22 mil', '400.1 m', '-0.3701 \u00b0', '-4.062e-03', '0.570', '1374 ft\u00b7lb', '299 lb', 8)\n('0.751 s', '500.0 m', '1736.8 ft/s', '1.56 mach', '-65.4 inch', '-65.4 inch', '-3.38 mil', '5.7 inch', '0.30 mil', '500.0 m', '-0.5516 \u00b0', '-4.062e-03', '0.545', '1125 ft\u00b7lb', '222 lb', 8)\n('0.951 s', '600.1 m', '1561.9 ft/s', '1.40 mach', '-110.7 inch', '-110.7 inch', '-4.77 mil', '8.7 inch', '0.37 mil', '600.1 m', '-0.7748 \u00b0', '-4.062e-03', '0.521', '910 ft\u00b7lb', '161 lb', 8)\n('1.173 s', '700.0 m', '1395.2 ft/s', '1.25 mach', '-173.1 inch', '-173.1 inch', '-6.40 mil', '12.6 inch', '0.47 mil', '700.0 m', '-1.0525 \u00b0', '-4.062e-03', '0.495', '726 ft\u00b7lb', '115 lb', 8)\n('1.423 s', '800.0 m', '1238.1 ft/s', '1.11 mach', '-257.0 inch', '-257.0 inch', '-8.31 mil', '17.6 inch', '0.57 mil', '800.0 m', '-1.4030 \u00b0', '-4.062e-03', '0.462', '572 ft\u00b7lb', '80 lb', 8)\n('1.705 s', '900.1 m', '1097.8 ft/s', '0.98 mach', '-368.2 inch', '-368.2 inch', '-10.58 mil', '24.1 inch', '0.69 mil', '900.1 m', '-1.8503 \u00b0', '-9.633e-03', '0.333', '450 ft\u00b7lb', '56 lb', 8)\n```\n\n## Contributors\n### This project exists thanks to all the people who contribute.\n#### Special thanks to:\n- **[David Bookstaber](https://github.com/dbookstaber)** - Ballistics Expert, Financial Engineer \\\n*For the help in understanding and improvement of some calculation methods*\n- **[Nikolay Gekht](https://github.com/nikolaygekht)** \\\n*For the sources code on C# and GO-lang from which this project firstly was forked from*\n\n## About project\n\nThe library provides trajectory calculation for projectiles including for various\napplications, including air rifles, bows, firearms, artillery and so on.\n\n3DF model that is used in this calculator is rooted in old C sources of version 2 of the public version of JBM\ncalculator, ported to C#, optimized, fixed and extended with elements described in\nLitz's \"Applied Ballistics\" book and from the friendly project of Alexandre Trofimov\nand then ported to Go.\n\nNow it's also ported to python3 and expanded to support calculation trajectory by \nmultiple ballistics coefficients and using custom drag data (such as Doppler radar data \u00a9Lapua, etc.)\n\nThe online version of Go documentation is located here: https://godoc.org/github.com/gehtsoft-usa/go_ballisticcalc\n\nC# version of the package is located here: https://github.com/gehtsoft-usa/BallisticCalculator1\n\nThe online version of C# API documentation is located here: https://gehtsoft-usa.github.io/BallisticCalculator/web-content.html\n\nGo documentation can be obtained using godoc tool.\n\nThe current status of the project is ALPHA version.\n\n#### RISK NOTICE\n\nThe library performs very limited simulation of a complex physical process and so it performs a lot of approximations. Therefore, the calculation results MUST NOT be considered as completely and reliably reflecting actual behavior or characteristics of projectiles. While these results may be used for educational purpose, they must NOT be considered as reliable for the areas where incorrect calculation may cause making a wrong decision, financial harm, or can put a human life at risk.\n\nTHE CODE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\n",
    "bugtrack_url": null,
    "license": "GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.   This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.  0. Additional Definitions.  As used herein, \"this License\" refers to version 3 of the GNU Lesser General Public License, and the \"GNU GPL\" refers to version 3 of the GNU General Public License.  \"The Library\" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.  An \"Application\" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.  A \"Combined Work\" is a work produced by combining or linking an Application with the Library.  The particular version of the Library with which the Combined Work was made is also called the \"Linked Version\".  The \"Minimal Corresponding Source\" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.  The \"Corresponding Application Code\" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.  1. Exception to Section 3 of the GNU GPL.  You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.  2. Conveying Modified Versions.  If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:  a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or  b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.  3. Object Code Incorporating Material from Library Header Files.  The object code form of an Application may incorporate material from a header file that is part of the Library.  You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:  a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the object code with a copy of the GNU GPL and this license document.  4. Combined Works.  You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:  a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the Combined Work with a copy of the GNU GPL and this license document.  c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.  d) Do one of the following:  0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.  1) Use a suitable shared library mechanism for linking with the Library.  A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.  e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)  5. Combined Libraries.  You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:  a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.  b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.  6. Revised Versions of the GNU Lesser General Public License.  The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.  Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.  If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ",
    "summary": "LGPL library for small arms ballistic calculations (Python 3)",
    "version": "2.0.1",
    "project_urls": {
        "Bug Reports": "https://github.com/o-murphy/py_ballisticcalc/issues",
        "Homepage": "https://github.com/o-murphy/py_ballisticcalc",
        "Source": "https://github.com/o-murphy/py_ballisticcalc"
    },
    "split_keywords": [
        "py_ballisticcalc",
        " ballistics",
        " cython",
        " ballistic calculator",
        " python",
        " python3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5818ae12607d5a8988e1e6955a9a278e69077cd8a8de8dddaa2f1b2264df18b",
                "md5": "868c17bcfab99f01268f7e3ce0a804a2",
                "sha256": "df2ace706a964570cb6aff74877ed0eac67f82e735f45be9feff88ffe81afcf4"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "868c17bcfab99f01268f7e3ce0a804a2",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 189250,
            "upload_time": "2024-04-11T16:15:17",
            "upload_time_iso_8601": "2024-04-11T16:15:17.930280Z",
            "url": "https://files.pythonhosted.org/packages/d5/81/8ae12607d5a8988e1e6955a9a278e69077cd8a8de8dddaa2f1b2264df18b/py_ballisticcalc.exts-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "375192ff09446dfe16f3373904966fe70d936a0b2d2c86f636559a87170c4eb7",
                "md5": "2c030c7b23134936f75e68d004a805b8",
                "sha256": "28207742285e162675cd18b13d06a792477f2217acbddb306553efd991428832"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "2c030c7b23134936f75e68d004a805b8",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 177308,
            "upload_time": "2024-04-11T16:15:56",
            "upload_time_iso_8601": "2024-04-11T16:15:56.835183Z",
            "url": "https://files.pythonhosted.org/packages/37/51/92ff09446dfe16f3373904966fe70d936a0b2d2c86f636559a87170c4eb7/py_ballisticcalc.exts-2.0.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4898fe3aaf9feda94dd9276b04d657f8a48306f18f41ca5c38a963303c2afe8",
                "md5": "8f8121a2f9385402d67e20e59b4f1678",
                "sha256": "69e6ec91deea082aa98be31c2b547211289713e67c8761f8509127db25c09b7b"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp311-cp311-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "8f8121a2f9385402d67e20e59b4f1678",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 255172,
            "upload_time": "2024-04-11T16:15:16",
            "upload_time_iso_8601": "2024-04-11T16:15:16.000882Z",
            "url": "https://files.pythonhosted.org/packages/d4/89/8fe3aaf9feda94dd9276b04d657f8a48306f18f41ca5c38a963303c2afe8/py_ballisticcalc.exts-2.0.1-cp311-cp311-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebe9e358dcd9ee28dd91a18b7670822d9c73114dfe415b0817289ace2409bd60",
                "md5": "2c708732f7f2ab43157627a8b4ef7bcd",
                "sha256": "72cfb0199a5ed7ef70f64f83bc953a6a046ec09b3b82c906ef6ab88c37714d31"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "2c708732f7f2ab43157627a8b4ef7bcd",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 178052,
            "upload_time": "2024-04-11T16:16:09",
            "upload_time_iso_8601": "2024-04-11T16:16:09.129583Z",
            "url": "https://files.pythonhosted.org/packages/eb/e9/e358dcd9ee28dd91a18b7670822d9c73114dfe415b0817289ace2409bd60/py_ballisticcalc.exts-2.0.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45fd032347c5557682b34509c70f5f693d8fa890fb3216c4157992d558ad29ed",
                "md5": "d83f0131574c339392d78c311e35f17f",
                "sha256": "d54ee975b31968c9380981dbb85ca468e5da7ef7244af6a330a2b9dd69fe7080"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp312-cp312-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "d83f0131574c339392d78c311e35f17f",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 251225,
            "upload_time": "2024-04-11T16:15:31",
            "upload_time_iso_8601": "2024-04-11T16:15:31.663112Z",
            "url": "https://files.pythonhosted.org/packages/45/fd/032347c5557682b34509c70f5f693d8fa890fb3216c4157992d558ad29ed/py_ballisticcalc.exts-2.0.1-cp312-cp312-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "998e6fedabcc8bd8b79016d8de5e2750e41ec0ecb0e3779405411804c051288d",
                "md5": "9c51f96eecd2f048c0c40c85c8d02e55",
                "sha256": "5826d89c1a636f6b80a7b8e8990bb2d2ee4ef50693521ad420d3a07e790c9ff3"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "9c51f96eecd2f048c0c40c85c8d02e55",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 175077,
            "upload_time": "2024-04-11T16:15:54",
            "upload_time_iso_8601": "2024-04-11T16:15:54.044022Z",
            "url": "https://files.pythonhosted.org/packages/99/8e/6fedabcc8bd8b79016d8de5e2750e41ec0ecb0e3779405411804c051288d/py_ballisticcalc.exts-2.0.1-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46eee0d5628758e6f49f4387bdc094807259b0ab3b871f4ffbdab3a0a65bab9c",
                "md5": "3d17d6dbf7c1e5edae6342d67b009737",
                "sha256": "95b38367ba9355e215e9b9121377221944d30dade1cf4f3059aa5912d5f70a78"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp39-cp39-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "3d17d6dbf7c1e5edae6342d67b009737",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 189843,
            "upload_time": "2024-04-11T16:15:25",
            "upload_time_iso_8601": "2024-04-11T16:15:25.152543Z",
            "url": "https://files.pythonhosted.org/packages/46/ee/e0d5628758e6f49f4387bdc094807259b0ab3b871f4ffbdab3a0a65bab9c/py_ballisticcalc.exts-2.0.1-cp39-cp39-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "186346d8a2f8eee0c1045dd5815e8c41033bc1732f2fd8188a3482efc7743ddf",
                "md5": "95d209819be721715529dbf18cc3cbef",
                "sha256": "d39f9ce667204492a12db4ed0af800dff3914c7e3093749eb86338b36b23f5d7"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "95d209819be721715529dbf18cc3cbef",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 177931,
            "upload_time": "2024-04-11T16:15:48",
            "upload_time_iso_8601": "2024-04-11T16:15:48.610173Z",
            "url": "https://files.pythonhosted.org/packages/18/63/46d8a2f8eee0c1045dd5815e8c41033bc1732f2fd8188a3482efc7743ddf/py_ballisticcalc.exts-2.0.1-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d832b1599798c919538d923607bcae846d15f13966f3e5c911662ab22bfcfb1",
                "md5": "10348951eb5f0c7f4a224808c9a8bcf2",
                "sha256": "2833081cc940203147f8d0d7f732b30b708e8486a63e2a891704bb555b726d8d"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "10348951eb5f0c7f4a224808c9a8bcf2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 111594,
            "upload_time": "2024-04-11T16:15:04",
            "upload_time_iso_8601": "2024-04-11T16:15:04.709407Z",
            "url": "https://files.pythonhosted.org/packages/9d/83/2b1599798c919538d923607bcae846d15f13966f3e5c911662ab22bfcfb1/py_ballisticcalc.exts-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f61ce86a7fd020c598c583abba437f9746534978481343ff74daf2fc4970eb2e",
                "md5": "33a14c15c5466141abb55c483b9c3478",
                "sha256": "6d36dd7928b86287d45311c34a200a26dfedafe28a504ef4d63980a7e296c3d1"
            },
            "downloads": -1,
            "filename": "py_ballisticcalc.exts-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "33a14c15c5466141abb55c483b9c3478",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 111472,
            "upload_time": "2024-04-11T16:15:06",
            "upload_time_iso_8601": "2024-04-11T16:15:06.521720Z",
            "url": "https://files.pythonhosted.org/packages/f6/1c/e86a7fd020c598c583abba437f9746534978481343ff74daf2fc4970eb2e/py_ballisticcalc.exts-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-11 16:15:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "o-murphy",
    "github_project": "py_ballisticcalc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "py-ballisticcalc.exts"
}
        
Elapsed time: 0.26019s