Skip to main content

python science programming

Project description

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.

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

pyscience-0.5.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

pyscience-0.5.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file pyscience-0.5.0.tar.gz.

File metadata

  • Download URL: pyscience-0.5.0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyscience-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a06b04f0807daf953af3f228235492e4433f892fb2f950e5d40436f539060a72
MD5 62e451f27f06f06a590f7aac9a464172
BLAKE2b-256 7b5fa8b210900afdac9a432d00dea52cac99f09a397e2cb1b9dd9f84448d177f

See more details on using hashes here.

File details

Details for the file pyscience-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyscience-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyscience-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b344c9dd62df4c0b5ff7212077938d793f00847cac38fc594db892b7e88c71b
MD5 4a3b515f70a1d5e899dbc84a83890c0c
BLAKE2b-256 bc7a366cd881130c2c48976497a841fd36430ed8c32e6c483fe21538e49202a0

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