arsenalgear

A library containing general purpose Python utils.

https://github.com/justwhit3/arsenalgear-py

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.6%) to scientific vocabulary

Keywords

python3 utility-library
Last synced: 7 months ago · JSON representation ·

Repository

A library containing general purpose Python utils.

Basic Info
  • Host: GitHub
  • Owner: JustWhit3
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 296 KB
Statistics
  • Stars: 14
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 10
Topics
python3 utility-library
Created about 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme Contributing License Citation

README.md

A library containing general purpose utils.

v1.3 license Python 3.10.4
code size repo size total lines
codeq DocGenerator


Table of contents

Introduction

This library contains a set of generic utils I developed for other projects. There are several sub-headers / modules related to various topics (mathematics, threading etc...).

Existing tools are constantly updated and new ones are added once their development is required for other projects.

If you want to use this library please cite it following this citation template.

The software is and will stay free, but if you want to support me with a donation it would be really appreciated!

Buy Me A Coffee

Supported operating systems:

  • Linux (Ubuntu and WSL tested)
  • Windows 10.
  • MaxOS.

Install and run

Steps to be reproduced:

1) Install the library and prerequisites.

bash pip install arsenalgear

To run examples:

python python examples.py

2) Use in your device

Once you have installed the library you can freely use it in one of your Python projects by including one or more of the modules:

python from arsenalgear import module_name

for example:

Python from arsenalgear import mathematics

3) Run the tests (optional):

If you want to run the tests you have to type:

shell python src/arsenalgear/module_name

If anything is displayed it means that tests ran correctly.

Tests have been performed using the Doctest framework.

If you want a detailed tests log printed on the screen, simply enter:

shell python src/arsenalgear/module_name -v

Extra documentation

List of features

Data science

Mathematics

  • Hermite: function used to retrieve Hermite polynomials values.
  • Chebyshev: function used to retrieve Chebyshev polynomials values.
  • Legendre: function used to retrieve Legendre polynomials values.
  • Laguerre: function used to retrieve Laguerre polynomials values.
  • IsInBounds: function used to check if a value is in a certain bound or not.
  • e_parser: function used to return the complex value of a parsed expression.
  • kronecker: function used to compute the Kronecker delta.
  • OrderOfMagnitude: function used to find the order og magnitude of a number.

Parallelization

  • MultiProcesses: function used to parallelize more functions.
  • chunker: function used send a bunch of processes in parallel.

Plotter

  • plot_AMS: function used to plot the AMS score.
  • plotter_complex: function used to plot a given function for an index n.
  • plot_learning_curve: function used to plot a learning curves for train and tests sets of a dataset.

Utils

  • TimeToInt: function used to convert a time-string into an integer.
  • IntToTime: function used to convert an integer into a time-string.
  • save_img: function used to save an image in a certain position of the system.

Credits

Project leaders


Gianluca Bianco

Stargazers over time

Stargazers over time

Owner

  • Name: Gianluca Bianco
  • Login: JustWhit3
  • Kind: user
  • Location: Bologna, Italy
  • Company: University of Bologna and INFN

PhD student in particle physics at the University of Bologna and member of the CERN ATLAS experiment. Passionate about coding (C++ in particular)

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Gianluca"
  given-names: "Bianco"
title: "arsenalgear-py"
version: 1.3.1
doi: https://zenodo.org/badge/latestdoi/465779737
date-released: 2021-12-25
url: "https://github.com/JustWhit3/arsenalgear-py"

GitHub Events

Total
Last Year

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 17 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 5
  • Total maintainers: 1
pypi.org: arsenalgear

A library containing general purpose Python utils

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 17 Last month
Rankings
Dependent packages count: 10.1%
Average: 20.5%
Dependent repos count: 21.6%
Downloads: 29.9%
Maintainers (1)
Last synced: 8 months ago

Dependencies

src/setup.py pypi
  • matplotlib >=3.1.2
  • numpy >=1.17.4
  • scipy ==1.6.2
  • termcolor ==1.1.0
  • tqdm >=4.64.0
.github/workflows/DocGenerator.yml actions
  • EndBug/add-and-commit v7 composite
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/upload-artifact v2 composite
  • mattnotmitt/doxygen-action v1.3.1 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v2 composite
requirements.txt pypi
  • matplotlib ==3.5.1
  • numpy >=1.22.0
  • scikit_learn ==1.1.2
  • scipy ==1.8.0
  • setuptools ==59.6.0
  • termcolor ==1.1.0
  • tqdm ==4.64.0