Skip to main content

aitoolz

Various Python tools, by Alex Ioannides (AI). Some of them might be useful for artificial intelligence, some of them might not.

Installing

You can install aitoolz from PyPI using

pip install aitoolz

Alternatively, you can install directly from the main branch of this repo via

pip install git+https://github.com/alexioannides/aitoolz.git@main

Where the @XXXX component of the URI can be substituted for any branch, tag or commit hash. See the pip docs for more info.

Features

A brief overview of the core tools:

Template Python Package Projects

The aitoolz.make_project module exposes the create_python_pkg_project function that can create empty Python package projects to speed-up development. This includes:

  • Executable tests via PyTest.
  • Fully configured code formatting and checking using Ruff and Black.
  • Fully configured static type checking using MyPy.
  • Dev task automation using Nox.
  • Fully configured CICD using GitHub Actions.

This is an opinionated setup that reflects how I like to develop projects. This can also be called from the command line using the Make Empty Project (MEP) command - e.g.,

mep my_package

Where my_package can be replaced with any valid Python module name. Either of these commands will create a directory structure and skeleton files,

my_package
├── .github
│   └── workflows
│       ├── python-package-ci.yml
│       └── python-package-cd.yml
├── .gitignore
├── README.md
├── noxfile.py
├── pyproject.toml
├── src
│   └── my_package
│       ├── __init__.py
│       └── hello_world.py
└── tests
    └── test_hello_world.py

This has been tested to be installable and for all dev tasks automated with Nox to pass - use nox --list to see them all.

Find External Dependencies in a Python Module or Source Folder

The aitoolz.find_imports module exposes the find_imports function that returns a list of all package dependencies imported into a Python module or source folder - i.e., all dependencies that are not in the Python standard library.

This can also be called from the command line - e.g.,

find-imports src/my_package

Or,

find-imports my_module.py

Metadata

Release files for aitoolz 0.2.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 aitoolz 0.2.0
File Size Uploaded Provenance
aitoolz-0.2.0.tar.gz 21.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 43.6 kB

Release files / aitoolz-0.2.0.tar.gz

Download URL aitoolz-0.2.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6222320741b1c124193d190e1bfd6b6d3f966a38339d59bdd177a53d06fa6e24
BLAKE2b-256 checksum
How to use checksums
791aa164eb8df20189fcb80d13f278db1e10632de0b1a8f28a2593adc083fa02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / aitoolz-0.2.0-py3-none-any.whl

Download URL aitoolz-0.2.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2fbf47e65c3df880d012351e48851b3dd075165166f372a1eb5536f9c0ef338
BLAKE2b-256 checksum
How to use checksums
5d1d1ba3fd7d978eabbcfc406d159b33d11c0625fb9d7d02bce7cb9af1bba27c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for aitoolz 0.2.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