Skip to main content
https://img.shields.io/travis/deeplook/pyteen/master.svg https://img.shields.io/pypi/pyversions/pyteen.svg https://img.shields.io/pypi/v/pyteen.svg https://img.shields.io/pypi/status/pyteen.svg https://img.shields.io/pypi/format/pyteen.svg https://img.shields.io/pypi/l/pyteen.svg https://img.shields.io/lgtm/alerts/g/deeplook/pyteen.svg?logo=lgtm&logoWidth=18 https://img.shields.io/lgtm/grade/python/g/deeplook/pyteen.svg?logo=lgtm&logoWidth=18 https://pyup.io/repos/github/deeplook/pyteen/shield.svg https://pyup.io/repos/github/deeplook/pyteen/python-3-shield.svg https://img.shields.io/badge/code%20style-black-000000.svg https://codecov.io/gh/deeplook/pyteen/branch/master/graph/badge.svg

Intro

This is a tiny collection of self-contained, useful, short Python code snippets that are (1) all tested and validated, (2) easy to contribute to, and (3) simple to reuse.

Size Matters

The main aspect here is code size which at the start was a strict limit of ten lines of code because in Python this already allows for solving useful little tasks, and the first chosen project name was “tenliners” (not so funny, agreed). Of course, some code is more useful than some other, hence it makes little sense to count comments or docstrings or empty lines (non-code). In fact, you soon realize you only really care about “effective code”, the one that has the most effect (or value) to solve your task or demonstrate something. And there is very little effect of this in lines with only opening or closing brackets, braces or parentheses which people sometimes write to manually structure data. Same with imports which only enable you to use some modules. What is left is code that really does something when it executes. And this is what we are trying to measure here. Now the number ten is somewhat arbitrary (why not 11?) and it can be hard or impossible to express some interesting things with ten or less lines, even in Python. Therefore the concept of “ten” was stretched a bit into “teen” leading to the name “Pyteen” and a limit of 19 lines of effective code. Let’s see where that goes!

More to come…

Release files for pyteen 0.0.1

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

Source distribution (sdist)

Source distribution for pyteen 0.0.1
File Size Uploaded
pyteen-0.0.1.tar.gz 4.9 kB Details

Release files / pyteen-0.0.1.tar.gz

Download URL pyteen-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
539f790dc40672f879916ced4ad91b8cb6d96af23dba90059b45c55d3b082e97
BLAKE2b-256 checksum
How to use checksums
8d5b2a2ac923fedcbe251bb39923b37eb4d0454200bc3917f86c58df1066aac2
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/47.3.1.post20200616 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

0.0.0

1 release file

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