Skip to content

Releases: adamlui/python-utils

is-legacy-terminal v1.0.0

20 Mar 13:20
Immutable release. Only release title and notes can be modified.
be8198f

Choose a tag to compare

🚀 Initial Release

Checks if terminal is legacy (limited rendering, flicker-prone on rapid redraws, etc.). On Windows, returns True if CMD or PowerShell ISE not hosted in modern shell. On *nix systems, returns True if env.TERM is 'dumb' or 'unknown' (indicating a very basic terminal).

To install:

pip install is-legacy-terminal

CLI usage:

is-legacy-terminal  # or islegacyterm
# e.g. => True

API usage:

import is_legacy_terminal

if is_legacy_terminal():
    print('Is legacy terminal!')
else:
    print('Is modern terminal!')

README for this release: https://github.com/adamlui/python-utils/tree/is-legacy-terminal-1.0.0/is-legacy-terminal/#readme

@adamlui, @kudo-sync-bot

prose-languages v1.0.0

18 Mar 02:26
Immutable release. Only release title and notes can be modified.
5835899

Choose a tag to compare

🚀 Initial Release

File extensions for prose languages. It's just a JSON file, so you can use it in any environment. Sourced from GitHub's Linguist project (defines all 18 prose languages known to GitHub). Data is updated via script and released via new package version.

To install:

pip install prose-languages

Usage:

import prose_languages

md_lang_data = prose_languages['Markdown']

print(md_lang_data['extensions']) # => ['.livemd', '.markdown', '.md', ...]

README for this release: https://github.com/adamlui/python-utils/tree/markup-languages-1.0.0/markup-languages/#readme

programming-languages v2.0.0

18 Mar 03:25
Immutable release. Only release title and notes can be modified.
49f87eb

Choose a tag to compare

⚠️ Breaking Changes

Full Changelog: programming-languages-1.0.0...programming-languages-2.0.0

README for this release: https://github.com/adamlui/python-utils/tree/programming-languages-2.0.0/programming-languages/#readme

markup-languages v1.0.1

18 Mar 01:24
Immutable release. Only release title and notes can be modified.
ed34c61

Choose a tag to compare

markup-languages v1.0.0

18 Mar 01:03
Immutable release. Only release title and notes can be modified.
691643a

Choose a tag to compare

🚀 Initial Release

File extensions for markup languages. It's just a JSON file, so you can use it in any environment. Sourced from GitHub's Linguist project (defines all 69 markup languages known to GitHub). Data is updated via script and released via new package version.

To install:

pip install markup-languages

Usage:

import markup_languages

html_lang_data = markup_languages['HTML']

print(html_lang_data['extensions']) # => ['.hta', '.htm', '.html', '.html.hl', ...]

README for this release: https://github.com/adamlui/python-utils/tree/markup-languages-1.0.0/markup-languages/#readme

is-unicode-supported v1.0.2

18 Mar 07:08
Immutable release. Only release title and notes can be modified.
5a2c681

Choose a tag to compare

data-languages v1.0.0

18 Mar 02:01
Immutable release. Only release title and notes can be modified.
41b4fe5

Choose a tag to compare

🚀 Initial Release

File extensions for data languages. It's just a JSON file, so you can use it in any environment. Sourced from GitHub's Linguist project (defines all 145 data languages known to GitHub). Data is updated via script and released via new package version.

To install:

pip install data-languages

Usage:

import data_languages

json_lang_data= data_languages['JSON']

print(json_lang_data['extensions']) # => ['.4DForm', '.4DProject', '.avsc', ...]

README for this release: https://github.com/adamlui/python-utils/tree/data-languages-1.0.0/data-languages/#readme

computer-languages v1.0.0

18 Mar 03:14
Immutable release. Only release title and notes can be modified.
9896b24

Choose a tag to compare

🚀 Initial Release

File extensions for computer languages. It's just a JSON file, so you can use it in any environment. Sourced from GitHub's Linguist project (defines all 700+ languages known to GitHub). Data is updated via script and released via new package version.

To install:

pip install computer-languages

Usage:

import computer_languages

py_lang_data = computer_languages['Python']

print(py_lang_data['type']) # => 'programming'
print(py_lang_data['extensions']) # => ['.cgi', '.fcgi', '.gyp', ...]

README for this release: https://github.com/adamlui/python-utils/tree/computer-languages-1.0.0/computer-languages/#readme

remove-json-keys v1.9.1

16 Mar 04:48
Immutable release. Only release title and notes can be modified.
06cee86

Choose a tag to compare

programming-languages v1.0.0

16 Mar 04:30
Immutable release. Only release title and notes can be modified.
7d5eefa

Choose a tag to compare

🚀 Initial Release

File extensions for programming languages. It's just a JSON file, so you can use it in any environment. Sourced from GitHub's Linguist project (defines all 700+ languages known to GitHub). Data is updated via script and released via new package version.

To install:

pip install programming-languages

Usage:

import programming_languages

py_lang_data = programming_languages['Python']

print(py_lang_data['type']) # => 'programming'
print(py_lang_data['extensions']) # => ['.py', '.cgi', '.fcgi', ...]

README for this release: https://github.com/adamlui/python-utils/tree/programming-languages-1.0.0/programming-languages/#readme