Skip to main content

A set of utilites to make developing scripts simpler and easier

Project description

sdu logo

DeepSource

Script Development Utilities

A set of utilities to make developing scripts simpler and easier

Table of contents

Goals

There are several goals with this project:

  1. Provide a useful API for well developed functions with error catching and testing for commonly annoying situations

  2. Provide cross-platform implementations of functions (where possible)

  3. Give people access to source code to learn how the functions work and just pull what's needed

  4. Serve as a repository of general knowledge to share solutions to issues with people

Installation

From PyPi

  1. Run pip install sdu or sudo pip3 install sdu

From source

  1. Clone this repo: (put github/source code link here)
  2. Run pip install . or sudo pip3 install .in the root directory

Usage & Documentation

For usage please see the API documentation (https://kieranwood.ca/sdu).

For details on how contributing to the project, please see CONTRIBUTING.md, for details on upcoming changes see our roadmap.

For most recent changes see CHANGELOG.md.

Modules

autocomplete

This module is used to generate autocomplete files for bash

cli

A module for helpful utilities with generating CLI's such as:

  • Clearing the terminal

paths

This module contains many useful utilities for dealing with system paths such as:

  • A pre and post processing pipeline for system paths
  • Ability to add paths to the PATH variable

type_conversions

Quick and common conversions between types with sensible options such as:

  • Converting a dictionary (and second dimension dictionary keys) to defaultdict(s)

validation

Contains a set of common validation schemes such as:

  • Validating number input is between a set value at the command line

  • Validate provided string is an accepted value

Changelog

V0.1.1; September 24th

Fixing logo on pypi :)

Bug fixes

  • Fixed logo 404 on PyPi

V0.1.0; September 24th

Focus was on adding more functionality, and modernizing the package setup.

Features

  • Added tests for paths, type_conversions and validation
  • Removed type_conversion.stringify_list since functionality can be one-lined using str.join
  • Added type_conversion.dict_to_defaultdict; Takes in a dictionary, and a default Callable then converts the dict to a defaultdict
  • Changed From Apache V2 to MIT liscence
  • Added paths.add_to_path for adding specified paths to system paths
  • Added testing for sdu.paths, sdu.validation, sdu.autocomplete, and sdu.type_conversions
  • Changed sdu.terminal to sdu.cli
  • Added sdu.autocomplete for generating bash autocomplete files

Documentation Improvements

  • Changed to second point releases (from 0.0.x to 0.x.0)
  • Improved the index documentation to be more clear and concise of an overview
  • Added bullet points to each package for a quick overview of what each module can be used for
  • Overhauled readme to be more useful

Bug Fixes

  • Fixed some preprocessing bugs with windows in path.preprocess_paths()

V0.0.1; February 8th 2020

Released existing code for the project, looking to properly implement in v0.1.0

Features

  • Traversing directories in terminal and GUI
  • Validating number selections
  • Normalized serialization and de-serialization of paths

Documentation improvements

  • Created documentation site

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

sdu-0.1.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

sdu-0.1.2-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sdu-0.1.2.tar.gz.

File metadata

  • Download URL: sdu-0.1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for sdu-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5010c4db63370a65885d5673191639748f0601d04dcb45f2af8eb001fe0a62c1
MD5 12cf8216c6887797833dd12b57d37588
BLAKE2b-256 dadca3eda0966e0b3d6e55fa8f6b22328fc4344e46fe218a5af8a5ab54a581de

See more details on using hashes here.

File details

Details for the file sdu-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: sdu-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for sdu-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5761b5babb11780180c9beeee090d4e841b245140dbb3214ddf7f32bb158895b
MD5 7f25871cc573f134c50cc68f3f162e42
BLAKE2b-256 4ccfe338e24368470e7e845e6ba5b9841a9f7c88371078f1beafa85ba1509fc7

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