Skip to main content

a collection of convenience and wrapper functions supporting tasks frequently needed by scientists

Project description

A Python 3 package or simply a collection of convenience and wrapper functions supporting tasks frequently needed by scientists.

install

pip3 install sci or
pip3 install --user --upgrade sci

use the --user flag on shared computers where you do not have root access. It will install the package in a place like ~/.local/lib/python3.x/site-packages/sci . You can delete that folder later to remove the package.

design goals

  1. Simplicity: wrap frequently used workflows into simple functions that make life easier for scientists. Most import statements should move into functions (except for frequently used ones like os, sys) to avoid confusion during autocomplete with VS Code and other IDEs.

  2. Verbose but easily consumable docstrings: Docstrings are accessible via code autocomplete in IDEs such as VS Code or Atom and through automated documentation environments such as sphinx. Each docsting should start with an example use case for the function.

  3. functional programming paradigm: While using classes is permitted we encourage writing fewer classes and more functions (perhaps with decorators)

  4. Cross-platform: The code should work on Linux (RHEL and Debian based), Windows and Mac OS X.

  5. Python 3 only compatibility, Python 2.x is legacy and we do not want to invest any extra time in it.

How to contribute your own code

  1. git clone git@github.com:FredHutch/sci-pkg.git

  2. create a new branch (eg : sci-yourname)

  3. paste your function into module sci/new.py.

  4. Make sure you add an example call in the first line of the doc string.

  5. Add your test case to sci-pkg/sci/tests

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

Omar8few4-0.1.8.tar.gz (19.7 kB view details)

Uploaded Source

File details

Details for the file Omar8few4-0.1.8.tar.gz.

File metadata

  • Download URL: Omar8few4-0.1.8.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for Omar8few4-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0c69e56d39b03a7d3eb26c740f3c3ec3f6b9015aa82d065c15b991cadb234e45
MD5 d0931c0eb409153bbbf49ce02aadfdc9
BLAKE2b-256 d04961255848ab5499c14adc2bef56b075dd8fb872eccf95be6c8db297657a80

See more details on using hashes here.

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