All Projects â†’ nficano â†’ Yakutils

nficano / Yakutils

Licence: other
🐃 Yet another toolbox of Python 3 helper functions.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Yakutils

dpytools
Collection of easy to use, beginner friendly but powerful, orthogonal tools to speed up discord bots development (discord.py)
Stars: ✭ 23 (-79.28%)
Mutual labels:  pypi, helpers
Meta Blocks
A modular toolbox for meta-learning research with a focus on speed and reproducibility.
Stars: ✭ 110 (-0.9%)
Mutual labels:  toolbox
Dva Boot Admin
🍰 react admin dashboard ui LANIF-ADMIN --- react 16 + react-router 4 + dva 2 + antd 4 后台įŽĄį† č„šæ‰‹æžļ
Stars: ✭ 1,553 (+1299.1%)
Mutual labels:  boilerplate
React Static Boilerplate
A boilerplate for building static sites with Webpack 2, React and React Router
Stars: ✭ 108 (-2.7%)
Mutual labels:  boilerplate
Element Ui Admin
åŸēäēŽ element-ui įš„单éĄĩéĸ后台įŽĄį†éĄšį›Žæ¨Ąį‰ˆ
Stars: ✭ 106 (-4.5%)
Mutual labels:  boilerplate
Hyperledger Typescript Boilerplate
This is a boilerplate that interacts between Hyperledger Fabric Peers and a front end.
Stars: ✭ 109 (-1.8%)
Mutual labels:  boilerplate
Jspm React
lightweight React.js ES6 boilerplate with JSPM and proper hot reloading modules
Stars: ✭ 104 (-6.31%)
Mutual labels:  boilerplate
Searchkit Starter App
Searchkit starter app. Based off create-react-app
Stars: ✭ 110 (-0.9%)
Mutual labels:  boilerplate
Wagtail Pipit
Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.
Stars: ✭ 109 (-1.8%)
Mutual labels:  boilerplate
Deprecated rust wasm template
Deprecated in favor of rustwasm/wasm-pack-template or rustwasm/rust-webpack-template
Stars: ✭ 108 (-2.7%)
Mutual labels:  boilerplate
Helpers
A collection of Javascript String and Array helpers for Laravel developers
Stars: ✭ 108 (-2.7%)
Mutual labels:  helpers
Easyiterator
🏃 Iterators made easy! Zero cost abstractions for designing and using C++ iterators.
Stars: ✭ 107 (-3.6%)
Mutual labels:  boilerplate
Rust Cli Boilerplate
Rust project boilerplate for CLI applications
Stars: ✭ 108 (-2.7%)
Mutual labels:  boilerplate
Rdflib
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
Stars: ✭ 1,584 (+1327.03%)
Mutual labels:  pypi
Ugin
UGin is an API boilerplate written in Go (Golang) with Gin Framework.
Stars: ✭ 110 (-0.9%)
Mutual labels:  boilerplate
Sal eval toolbox
evaluation toolbox for salient object detection
Stars: ✭ 105 (-5.41%)
Mutual labels:  toolbox
React Slingshot
React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app built in
Stars: ✭ 9,769 (+8700.9%)
Mutual labels:  boilerplate
Loopback4 Starter
Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
Stars: ✭ 109 (-1.8%)
Mutual labels:  boilerplate
Rails stuff
Collection of useful modules for Rails.
Stars: ✭ 110 (-0.9%)
Mutual labels:  helpers
Light Blue Dashboard
đŸ”Ĩ Free and open-source admin dashboard template built with Bootstrap
Stars: ✭ 110 (-0.9%)
Mutual labels:  boilerplate

yakutils

Yakutils is yet another toolbox of Python helper functions.

This package is available on PyPi, but its primary purpose is to allow one (me) to copy these into projects or to prevent one (me as well) from needing to Google how to write them (I'm looking at you csv.DictReader and csv.DictWriter).

This project is a continuous work-in-progress, and while its contents are specific to stuff that I use, pull requests are certainly welcome.

Installation

To download using pip via PyPi:

$ pip install yakutils

Usage Examples:

>>> from yakutils import read_csv
>>> read_csv('/path/to/data.csv')
[
  {
    'name': 'Tomatillo',
    'age': 27
  },
  # ...
]

>>> import datetime as dt
>>> from yakutils import date_to_iso8601
>>> date_to_iso8601(dt.date.today())
'2020-01-26T00:00:00Z'

>>> from yakutils import datetime_to_iso8601
>>> datetime_to_iso8601(dt.datetime.utcnow())
'2020-01-26T19:04:40.219668Z'

>>> from yakutils import datetime_to_unixtimestamp
>>> datetime_to_unixtimestamp(dt.datetime.utcnow())
1580065524

>>> from yakutils import iso8601_to_datetime
>>> iso8601_to_datetime('2020-01-26T19:04:40.219668Z')
datetime.datetime(2020, 1, 26, 19, 4, 40, 219668)

>>> import json
>>> from decimal import Decimal
>>> from yakutils import json_defaults
>>> json.dumps({
...   'now': dt.datetime.utcnow(),
...   'today': dt.date.today(),
...   'time': dt.time(1,2,3),
...   'num': Decimal(2.777),
...}, default=json_defaults)
'{"now": "2020-01-28T01:10:37.599281Z", "today": "2020-01-27", "time": "01:02:03", "num": 2.777}'

>>> from yakutils import random_string
>>> random_string(20)
'k4a9ue7TDjOC3p3oN0dl'

>>> from yakutils import update_qs
>>> update_qs('https://nickficano.com.com/?q=asdf&pi=3.14', pi=6.28)
'https://nickficano.com.com/?q=asdf&pi=6.28'

For complete list of utility functions, see: https://yakutils.readthedocs.io/en/latest/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].