https://github.com/computationalphysiology/pytip

cli for tips and tricks

https://github.com/computationalphysiology/pytip

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

cli for tips and tricks

Basic Info
  • Host: GitHub
  • Owner: ComputationalPhysiology
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 9.77 KB
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md

Pytip

cli for tips and tricks using typer and rich.

Install

Clone repo and execute python -m pip install . inside the root directory

Development install

If you want to contribute to the project you should also install the development dependencies using the command

python -m pip install -e ".[dev]" This will also install the package in editable mode. You should also install the pre-commit hook using the command pre-commit install This will make sure that you don't commit code to the repo that doesn't follow the guidelines.

Usage

To get a random tip do python -m pytip

To list all available tips do python -m pytip --list-tips

Todo

  • [ ] Make CONTRIBUTING.md
  • [ ] Create tests
  • [ ] Setup GitHub actions
  • [ ] Setup pre-commit CI
  • [ ] Create API documentation using Sphinx
  • [ ] Host documentation on GitHub pages
  • [ ] Publish on PyPi
  • [ ] Publish on conda
  • [ ] Publish on conda-forge
  • [ ] Connect to slack and make setup cron-job so that is publishes weekly tips

Ideas for tips

The focus is currently around the python standard library, but this can change in the future.

Python

itertools

  • [ ] product
  • [ ] chain
  • [ ] cycle
  • [ ] accumulate
  • [ ] combinations
  • [ ] zip_longest
  • [ ] starmap
  • [ ] groupby
  • [ ] compress
  • [ ] islice
  • [ ] takewhile
  • [ ] tee

functools

  • [ ] singledispatch
  • [ ] cached_property
  • [x] lru_cache
  • [ ] wrapped
  • [ ] reduce
  • [x] partial
  • [ ] total_ordering

collections

  • [ ] Counter
  • [ ] defaultdict
  • [ ] namedtuple
  • [ ] ChainMap

difflib

  • [ ] Find best match of words

filecmp

  • [ ] Check if two files are different

pathlib

  • [ ] Find location of current file
  • [ ] Create directory with parents and if exists already

datetime

operator

  • [ ] itemgetter

General

  • [ ] Merge dictionaries
  • [ ] Sort with custom key
  • [x] Get value in dictionary with missing keys
  • [ ] Get value in nested dictionary with missing keys
  • [ ] Create dictionary for zip
  • [ ] Generator comprehension vs list comprehension
  • [ ] iter - Get first value in a dictionary

Funny

  • [ ] import antigravity
  • [ ] import this

Owner

  • Name: Computational Physiology at Simula Research Laboratory
  • Login: ComputationalPhysiology
  • Kind: organization
  • Location: Fornebu, Norway

GitHub organization for the computational physiology department at Simula Research Laboratory

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels