Gnutools is a Python package that optimizes disk operations using system commands.
683
Modules • Code structure • Installing the application • Makefile commands • Environments • Running the application Ressources
Gnutools is a Python package that provides a few perks:
You can reuse your favorite Python packages such as NumPy, SciPy and Cython to extend ZakuroCache integration.
At a granular level, Gnutools is a library that consists of the following components:
| Component | Description |
|---|---|
| gnutools | Contains the implementation of Gnutools |
| gnutools.audio | Audio processsing |
| gnutools.fs | File system processing |
| gnutools.concurrent | Concurrent processing |
| gnutools.grid | Grid search |
| gnutools.remote | Download files from gdrive |
| gnutools.tests | Unit tests |
| gnutools.utils | Utilitaries |
from setuptools import setup
from gnutools import __version__
setup(
name="gnutools-python",
version=__version__,
packages=[
"gnutools",
"gnutools.audio",
"gnutools.concurrent",
"gnutools.fs",
"gnutools.grid",
"gnutools.remote",
"gnutools.tests",
"gnutools.utils",
],
long_description="".join(open("README.md", "r").readlines()),
long_description_content_type="text/markdown",
include_package_data=True,
url="https://github.com/JeanMaximilienCadic/gnutools-python",
license="MIT",
author="Jean Maximilien Cadic",
python_requires=">=3.6",
install_requires=[r.rsplit()[0] for r in open("requirements.txt")],
author_email="[email protected]",
description="GNU Tools for python",
classifiers=[
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
],
)
To clone and run this application, you'll need the following installed on your computer:
Install the package:
# Clone this repository and install the code
git clone https://github.com/JeanMaximilienCadic/gnutools-python
# Go into the repository
cd gnutools-python
Exhaustive list of make commands:
install_wheels
sandbox_cpu
sandbox_gpu
build_sandbox
push_environment
push_container_sandbox
push_container_vanilla
pull_container_vanilla
pull_container_sandbox
build_vanilla
build_wheels
auto_branch
Note
Running this application by using Docker is recommended.
To build and run the docker image
make build
make sandbox
Warning
Running this application by using PythonEnv is possible but not recommended.
make install_wheels
10.1s to scan 856631 filesfrom pathlib import Path
results = [f for f in Path("/mnt/hdd/backup/ASR").glob("**/*.wav")]
3.7s to scan 856631 filesfrom gnutools.fs import listfiles
results = listfiles("/mnt/hdd/backup/ASR", [".wav"])
Content type
Image
Digest
sha256:79fc54759…
Size
419.1 MB
Last updated
over 2 years ago
docker pull cadic/gnutools