Skip to main content

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

Metadata

Release files for sdu 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdu 0.1.2
File Size Uploaded Provenance Actions
sdu-0.1.2.tar.gz 14.7 kB Without provenance Details for sdu-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdu 0.1.2
File Interpreter ABI Platform Actions
sdu-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for sdu-0.1.2-py2.py3-none-any.whl

Total release size: 30.5 kB

Release files / sdu-0.1.2.tar.gz

Download URL sdu-0.1.2.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5010c4db63370a65885d5673191639748f0601d04dcb45f2af8eb001fe0a62c1
BLAKE2b-256 checksum
How to use checksums
dadca3eda0966e0b3d6e55fa8f6b22328fc4344e46fe218a5af8a5ab54a581de
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sdu-0.1.2-py2.py3-none-any.whl

Download URL sdu-0.1.2-py2.py3-none-any.whl
Size 15.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5761b5babb11780180c9beeee090d4e841b245140dbb3214ddf7f32bb158895b
BLAKE2b-256 checksum
How to use checksums
4ccfe338e24368470e7e845e6ba5b9841a9f7c88371078f1beafa85ba1509fc7
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for sdu 0.1.2

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