Skip to main content

Pyscience

Pyscience is a easy python library and command-line application to work with mathematical operations and other science related programming. Also you can manage CSV data with the datam module.

Pyscience requires Python 3.7+ to work.

Installation

Pyscience is available in PyPI. You can install Pyscience using pip (as root):

pip3 install pyscience

If you want to install the latest development version, you can install pyscience from the GitHub repository:

pip3 install git+https://github.com/m-alzam/pyscience.git

Pre-releases have the latest features and bug fixes.

Features

  • Basic calculator
  • Operate with variables, monomials and polynomials
  • Solve first and second-degree equations
  • Get information about chemical elements
  • Manage CSV data easily (in development)
  • Convert between unit with the units module (experimental)

Basic usage

Once installed, you can run pyscience as a normal program:

pyscience

This should start pyscience's interactive interpreter. You can operate with variables:

> 2x+3x
5x
> 2x*7y
14xy

Or get Chemical Elements information with the CE function:

# Returns chemical element with symbol 'H'
> CE('H')
...
# Returns chemical element with atomic number 2
> CE(2)
...

Solve first-degree equations:

> Eq(2x, 10)
Eq(2x = 10)
Solution: 5

Documentation

Official documentation is available here. You can build it using the sphinx python library and the make script.

Todo

Pyscience is in current development. Future features:

  • Update chemicals elements information
  • Polynomial division
  • Physics functions
  • Documentation

History

See changelog

License

Copyright (c) 2019 Manuel Alcaraz Zambrano

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About data used for ChemicalElement

Chemical elements information is extracted from the Kalzium program.

Metadata

Release files for pyscience 0.5.0

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

Source distribution (sdist)

Source distribution for pyscience 0.5.0
File Size Uploaded Provenance
pyscience-0.5.0.tar.gz 19.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 55.8 kB

Release files / pyscience-0.5.0.tar.gz

Download URL pyscience-0.5.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a06b04f0807daf953af3f228235492e4433f892fb2f950e5d40436f539060a72
BLAKE2b-256 checksum
How to use checksums
7b5fa8b210900afdac9a432d00dea52cac99f09a397e2cb1b9dd9f84448d177f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / pyscience-0.5.0-py3-none-any.whl

Download URL pyscience-0.5.0-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b344c9dd62df4c0b5ff7212077938d793f00847cac38fc594db892b7e88c71b
BLAKE2b-256 checksum
How to use checksums
bc7a366cd881130c2c48976497a841fd36430ed8c32e6c483fe21538e49202a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for pyscience 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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