ansi

ANSI cursor movement and graphics in Python

https://github.com/tehmaze/ansi

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
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (3.3%) to scientific vocabulary

Keywords

ansi color colors colour colours ecma-048 python terminal

Keywords from Contributors

version
Last synced: 6 months ago · JSON representation

Repository

ANSI cursor movement and graphics in Python

Basic Info
Statistics
  • Stars: 53
  • Watchers: 6
  • Forks: 13
  • Open Issues: 0
  • Releases: 9
Topics
ansi color colors colour colours ecma-048 python terminal
Created about 13 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog License

README.md

ANSI

Various ANSI escape codes, used in moving the cursor in a text console or rendering coloured text.

Example

Print something in bold yellow on a red background:

>>> from ansi.colour import fg, bg
>>> from ansi.colour.fx import reset
>>> msg = (bg.red, fg.yellow, 'Hello world!', reset)
>>> print(''.join(map(str, msg)))
...

If you like syntactic sugar, you may also do:

>>> from ansi.colour import fg, bg
>>> print(bg.red(fg.yellow('Hello world!')))
...

Also, 256 RGB colours are supported:

>>> from ansi.colour.rgb import rgb256
>>> from ansi.colour.fx import reset
>>> msg = (rgb256(0xff, 0x80, 0x00), 'hello world', reset)
>>> print(''.join(map(str, msg)))
...

If you prefer to use American English instead:

>>> from ansi.color import ...

References

https://www.ecma-international.org/publications-and-standards/standards/ecma-48/

Requirements

Ansi requires python 3.6 and supports typing.

Owner

  • Name: maze
  • Login: tehmaze
  • Kind: user

GitHub Events

Total
  • Watch event: 4
Last Year
  • Watch event: 4

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 79
  • Total Committers: 13
  • Avg Commits per committer: 6.077
  • Development Distribution Score (DDS): 0.684
Past Year
  • Commits: 5
  • Committers: 2
  • Avg Commits per committer: 2.5
  • Development Distribution Score (DDS): 0.2
Top Committers
Name Email Commits
Jeff Quast c****t@j****m 25
Wijnand Modderman-Lenstra m****e@p****g 21
Brian Amberg b****g@a****m 11
Dennis Kaarsemaker d****s@k****t 4
b78 b****g@g****m 3
Michał Górny m****y@g****g 3
Markus Unterwaditzer m****s@u****t 3
Keyacom 7****m 3
Ellis Percival e****l@i****m 2
ziroux z****x@z****t 1
olivierdalang o****g@g****m 1
nagesh4193 7****3 1
HeinrichAD H****D@n****m 1

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 11
  • Total pull requests: 23
  • Average time to close issues: 5 months
  • Average time to close pull requests: 3 months
  • Total issue authors: 10
  • Total pull request authors: 12
  • Average comments per issue: 3.82
  • Average comments per pull request: 1.26
  • Merged pull requests: 21
  • 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
  • b78 (2)
  • kloczek (1)
  • kseistrup (1)
  • captainlepton (1)
  • amcgregor (1)
  • sdyroff (1)
  • mtib (1)
  • piranhaphish (1)
  • moonq (1)
  • ckhung (1)
Pull Request Authors
  • b78 (9)
  • jquast (6)
  • seveas (3)
  • HeinrichAD (2)
  • flyte (1)
  • mgorny (1)
  • olivierdalang (1)
  • untitaker (1)
  • saviosabino (1)
  • ziroux (1)
  • nagesh4193 (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 65,291 last-month
  • Total docker downloads: 176
  • Total dependent packages: 15
    (may contain duplicates)
  • Total dependent repositories: 101
    (may contain duplicates)
  • Total versions: 16
  • Total maintainers: 3
pypi.org: ansi

ANSI cursor movement and graphics

  • Versions: 15
  • Dependent Packages: 15
  • Dependent Repositories: 101
  • Downloads: 65,291 Last month
  • Docker Downloads: 176
Rankings
Dependent packages count: 0.7%
Dependent repos count: 1.5%
Docker downloads count: 1.8%
Downloads: 3.0%
Average: 4.5%
Stargazers count: 10.0%
Forks count: 10.2%
Maintainers (3)
Last synced: 6 months ago
conda-forge.org: ansi
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Stargazers count: 39.9%
Forks count: 40.9%
Average: 41.5%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

pyproject.toml pypi