Skip to main content

Tools for computing

Project description

softnanotools

This repository contains a bunch of tools for different programming applications, mostly in Python. It is used through the softnanolab research group

Installation

The package uses only the Python standard library so the only prerequisite is the use of Python 3.

Installing using:

# pip
pip install softnanotools

# manual
git clone https://github.com/softnanolab/softnanotools
pip install ./softnanotools

Modules

Here is a list of modules with a brief description:

  • notebooks - Tools for manipulating Jupyter Notebooks
  • logger - A logger that prints to screen
  • runner - A tool for organising the execution of programs
  • generate - A tool for generating python files and projects

Usage

softnanotools.generate

softnanotools.generate exists as a command-line interface (CLI) which can be called in the following ways:

# Generate a simple python script called example.py
$ softnanotools.generate script example

# Generate a simple python module called example.py
$ softnanotools.generate module example

# Generate a package template called example using -m flag to specify internal module
$ softnanotools.generaet package example -m internal
$ tree example
example
├── __init__.py
└── internal.py

# Generate a package template called example using -m flag to specify internal module
$ softnanotools.generate package example -m internal.nested
$ tree example
example
├── __init__.py
└── internal
    ├── __init__.py
    └── nested.py

# Generate a full project and initialise with `git`
$ softnanotools.generate project example
$ tree example
example
├── .gitattributes
├── .github
│   └── workflows
│       ├── coverage.yml
│       └── quick-build.yml
├── .gitignore
├── MANIFEST.in
├── README.md
├── example
│   ├── __init__.py
│   └── _version.py
├── pyproject.toml
├── setup.cfg
├── setup.py
├── test   ├── __init__.py
│   └── test_example.py
└── versioneer.py

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

softnanotools-0.7.0.tar.gz (66.3 kB view hashes)

Uploaded Source

Built Distribution

softnanotools-0.7.0-py3-none-any.whl (59.2 kB view hashes)

Uploaded Python 3

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