Skip to main content

High-performance mathematical library.

Project description

grim-reaper.py

grim-reaper.py, or just Grim, is a Python math library made in C++ made for solving fast operations such as adding, subtracting, multiplying and dividing.

Installation

Using GitHub

Clone the project and enter on the directory

In HTTPS:

git clone https://github.com/eduardozitinho/grim-reaper.py.git
cd grim-reaper.py

In GitHub CLI:

gh repo clone eduardozitinho/grim-reaper.py
cd grim-reaper.py

Guarantee you got Python installed

Linux
Ubuntu, Debian
sudo apt install python3 # don't use sudo incase you're already root
Arch
sudo pacman -S python python-pip python-setuptools

If your Linux distro isn't any of those listed, see official Python website

Windows, MacOS

Since I, the author, never installed Python in MacOS or Windows (never had one though), I don't know anything about installing Python in any. See official Python website for an install guide for them.

Android

This is my operating system!

First, go to F-Droid.

Search for Termux app and install it. Make sure its version is stable and not beta.

After that, enter in Termux and run the following commands:

pkg upgrade -y
pkg update -y
pkg install python -y # The -y in everything auto confirms it

Boom! You have Python installed in Android.

Installing the package with pip

Make sure you are inside grim-reaper.py.

python -m pip install .

Now you can use it everywhere!

Using pip (future)

If you already have Python installed, you skipped most of the steps. Now run this:

python -m pip install grim_reaper

That's future, since this isn't released yet.

Usage

After installing the package, you can use like this:

import grim_reaper

# Add any amount of numbers, including sets, lists, tuples

grim_reaper.basic_ops.add(10, 20, 30, 40, [50, 60], {70, 80}, 90, 100)

# Subtract any amount of numbers, including sets, lists, tuples

grim_reaper.basic_ops.sub(20, 10, 1, 1, 1, 1, 1, 1, -1, [1, 1], {10, 5}, (10, 10))

# Multiply any amount of numbers, including sets, lists, tuples

grim_reaper.basic_ops.mul(10, {5, 2}, [1, 10], (3, 3))

# Divide any amount of numbers, including sets, lists, tuples and handles division by zero (ValueError)

grim_reaper.basic_ops.div(10, 1, 2, (2, 2), [4, 1], {8, 9})

Those are the four-first functions of Grim.

License

The current license of the project is MIT. See complete license here.

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

grim_reaper_core-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grim_reaper_core-0.1.0-cp313-cp313-android_24_arm64_v8a.whl (60.9 kB view details)

Uploaded Android API level 24+ ARM64 v8aCPython 3.13

File details

Details for the file grim_reaper_core-0.1.0.tar.gz.

File metadata

  • Download URL: grim_reaper_core-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for grim_reaper_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 592b58a3d65d3544ad194c20fe679eff23188145a4b2d3324b128098b9bbd7f1
MD5 7324f49bbfef1deac976914494b228db
BLAKE2b-256 1996c548133a42957305eb6a4274303dfea3895b9bbe5d5d9b8945b1d766dc52

See more details on using hashes here.

File details

Details for the file grim_reaper_core-0.1.0-cp313-cp313-android_24_arm64_v8a.whl.

File metadata

File hashes

Hashes for grim_reaper_core-0.1.0-cp313-cp313-android_24_arm64_v8a.whl
Algorithm Hash digest
SHA256 3ee268002c5ca63adc11c4c83a4635aff1f4f742995f47e104a9adc44926066d
MD5 23421f2a32bda326b7628cb907ebe58b
BLAKE2b-256 3b4b66e40789d91ab18ebacdaa6547fd509321f55b11e5cbf08920824030cad3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page