- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
''' | |
Converts functions into simple commands. | |
Turns function arguments into command line arguments, and docstrings into helpstrings. | |
Essentially an argparse shortcutter. | |
e.g. | |
@f2cmd.cmd(arg1={"type": int}) | |
def my_main_function(arg1, arg2): | |
pass |
# -*- coding: utf-8 -*- | |
IRREGULAR_PLURALS = {'alumnus': 'alumni', | |
'cactus': 'cacti', | |
'focus': 'foci', | |
'fungus': 'fungi', | |
'nucleus': 'nuclei', | |
'radius': 'radii', | |
'stimulus': 'stimuli', | |
'axis': 'axes', |
''' | |
Simple distributed, streaming algorithm for keeping counts on | |
an adaptive sample of data. | |
''' | |
import time | |
import hashlib | |
import json | |
import base64 | |
# -*- coding: utf-8 -*- | |
import ast | |
from parsimonious.grammar import Grammar | |
from parsimonious.nodes import NodeVisitor | |
json_syntax = r''' | |
json_file = ws? json ws? | |
json = object / array |
from sqlalchemy import event | |
from sqlalchemy import DDL | |
def _mysql_cidr_overlap(metadata): | |
@event.listens_for(metadata, "after_create") | |
def _create_mysql_proc(target, connection, **kw): | |
if connection.engine.name != 'mysql': | |
return |
# -*- coding: utf-8 -*- | |
#Copyright (C) 2013 Seán Hayes | |
import my_project.settings as dj_settings | |
from fabric.api import local, run, sudo, env, prompt, settings, cd, parallel, execute | |
from fabric.contrib.files import exists | |
from fabric.decorators import hosts, roles, runs_once | |
import json | |
import logging | |
import os |
# note: we are using SQLAlchemy that includes _cache_key | |
# currently at: | |
# https://gerrit.sqlalchemy.org/#/c/sqlalchemy/sqlalchemy/+/1204/5/ | |
import typing | |
from sqlalchemy import bindparam | |
from sqlalchemy import Column | |
from sqlalchemy import func | |
from sqlalchemy import inspection |
''' | |
Key wrapping and unwrapping as defined in RFC 3394. | |
Also a padding mechanism that was used in openssl at one time. | |
The purpose of this algorithm is to encrypt a key multiple times to add an extra layer of security. | |
Personally, I wouldn't recommend using this for most applications. | |
Just use AES/mode CTR to encrypt your keys, the same as you would any other data. | |
The time to use this code is when you need compatibility with another system that implements the RFC. | |
(For example, these functions are compatible with the openssl functions of the same name.) |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch