pyTGM


NamepyTGM JSON
Version 4.0.6 PyPI version JSON
download
home_pagehttps://youtube.tokynblast.space/programming/libraries/pytgm/init
SummaryTerminal Game Maker
upload_time2024-12-17 23:27:51
maintainerTokyn Blast
docs_urlNone
authorTokyn Blast
requires_python>=3.13
licenseBspace
keywords game game maker terminal tools pytgm terimnal input
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Workflow Status
## Linting
[![Pylint](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml)<br>
[![Lint with Isort](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml)<br>
## Security
[![Safety Linting](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml)<br>
[![SHA3-256 Generate and Update](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml)<br>

# pyTGM (Python Terminal Game Maker)

pyTGM is a simplified alternative to Pygame, focusing on ASCII and ANSI based game development, with utilities for encryption, randomization, markup, and more.

## Bugs and Features
To report a bug, go [here](https://github.com/TokynBlast/pyTGM/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=)<br>
For feature request, go [here](https://github.com/TokynBlast/pyTGM/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=)

## Contributing
All contributions are greatly appreciated.<br>
To make a contribution, make a new branch [here](https://github.com/TokynBlast/pyTGM/branches)<br>
Then, add (or remove), to improve the repo!<br>
Then, somebody will check to make sure it complys with all the workflows.
Once we know it's working, we will merge the request!

If your modified code doesn't comply with Saftey linting, it will be immediatley denied.
For security reasons, if the repo needs to be tested outside github, it will be tested on a VM.
Code will also be checked manually.

## Features

### File Operations
```python
file.mod_line(name)           # Modify a line of a file
file.read_line(name, line=0)  # Read specific line
```

### Graphics and Text Styling
```python
# Clear screen
graphics.cls()

# Color text (RGB)
graphics.color(0, 255, 0)  # Green text
graphics.RESET             # Reset color

# Markup
graphics.BOLD
graphics.ITALIC
graphics.UNDERLINE

# Placing the cursor at a pair of coords

```


### Sound Support
Works across Windows, macOS, and Linux:
```python
# Play audio file
play('../sounds/mysound.mp3')

# Make a file of a frequency
generate(frequency, duration, name, sample_rate=44100, volume=0.5)
```

### Local Server Support
```python
# Starting a server and client (PORT, message)
LocalServer(1080, {'MarkTheMighty':((243,332), 57)})
```
An example of a returned value would be:
```python
{'LordMinion777':((0,0), 100), 'Muyskerm':((245,334), 43)}
```

### Terminal Input Detection
```python
# Mouse Click Detection
terd.click()             # A return value of (-1, -1) means the click was invalid!

# Keyboard Press Detection
terd.geky(times)
```

### Encryption
```python
# Set the table
b64.Table.table = 'ABCDEF...XYZ...12...90...!@..._+'
b64.Table.generate('ABCDEF...XYZ...12...90...!@..._+', 32)

# Encode and decode
b64.encode(text)
b64.decode(text)
```
When setting the table, it MUST include the characters that are being stored at the very least!
Extra characters are suggested

## Links
- [Homepage](https://pytgm.tokynblast.space/home)
- [Documentation](https://pytgm.tokynblast.space/documentation/use)
- [Source Code](https://github.com/TokynBlast/pyTGM/tree/main)
- [Bug Tracker](https://github.com/TokynBlast/pyTGM/issues)
- [Changelog](https://github.com/TokynBlast/pyTGM/blob/main/CHANGELOG.txt)

## License
pyTGM is licensed under Bspace, created by Tokyn Blast.


4.0.0 (December 17, 2024)
---------------------------
- Removed file.readChar
- Major fixes to __all__ variable in main __init__
- Did an overhaul on Licence and README.md
- major change in file structure
- Renamed getch to geky
- Put getch inside class "terd"
- Added a click detection function
- Updated and fixed __all__
- Added __init__.py for an entry point
- Moved __all__ and links to __init__.py
- Made functions satic methods
- Changed how random works
- Updated LocalServer error message
- Added a To_send variable to LocalServer
- Removed autoplay from frequency
- Fixed windows key detection
- Removed board and random
- Added security hashes
- Added badges to README.md

4.0.1 ()
---------------------------
- Imoprt fixes

            

Raw data

            {
    "_id": null,
    "home_page": "https://youtube.tokynblast.space/programming/libraries/pytgm/init",
    "name": "pyTGM",
    "maintainer": "Tokyn Blast",
    "docs_url": null,
    "requires_python": ">=3.13",
    "maintainer_email": "tokynblast@gmail.com",
    "keywords": "game, game maker, terminal, tools, pytgm, terimnal input",
    "author": "Tokyn Blast",
    "author_email": "tokynblast@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/37/b7/ebc8a943f50f98c501748db1351e2e2e5bd7cffa87b144f9ff2463680378/pytgm-4.0.6.tar.gz",
    "platform": "Windows",
    "description": "# Workflow Status\r\n## Linting\r\n[![Pylint](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/pylint.yml)<br>\r\n[![Lint with Isort](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Isort.yml)<br>\r\n## Security\r\n[![Safety Linting](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/Saftey.yml)<br>\r\n[![SHA3-256 Generate and Update](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml/badge.svg)](https://github.com/TokynBlast/pyTGM/actions/workflows/generate-sha3-hashes.yml)<br>\r\n\r\n# pyTGM (Python Terminal Game Maker)\r\n\r\npyTGM is a simplified alternative to Pygame, focusing on ASCII and ANSI based game development, with utilities for encryption, randomization, markup, and more.\r\n\r\n## Bugs and Features\r\nTo report a bug, go [here](https://github.com/TokynBlast/pyTGM/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=)<br>\r\nFor feature request, go [here](https://github.com/TokynBlast/pyTGM/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=)\r\n\r\n## Contributing\r\nAll contributions are greatly appreciated.<br>\r\nTo make a contribution, make a new branch [here](https://github.com/TokynBlast/pyTGM/branches)<br>\r\nThen, add (or remove), to improve the repo!<br>\r\nThen, somebody will check to make sure it complys with all the workflows.\r\nOnce we know it's working, we will merge the request!\r\n\r\nIf your modified code doesn't comply with Saftey linting, it will be immediatley denied.\r\nFor security reasons, if the repo needs to be tested outside github, it will be tested on a VM.\r\nCode will also be checked manually.\r\n\r\n## Features\r\n\r\n### File Operations\r\n```python\r\nfile.mod_line(name)           # Modify a line of a file\r\nfile.read_line(name, line=0)  # Read specific line\r\n```\r\n\r\n### Graphics and Text Styling\r\n```python\r\n# Clear screen\r\ngraphics.cls()\r\n\r\n# Color text (RGB)\r\ngraphics.color(0, 255, 0)  # Green text\r\ngraphics.RESET             # Reset color\r\n\r\n# Markup\r\ngraphics.BOLD\r\ngraphics.ITALIC\r\ngraphics.UNDERLINE\r\n\r\n# Placing the cursor at a pair of coords\r\n\r\n```\r\n\r\n\r\n### Sound Support\r\nWorks across Windows, macOS, and Linux:\r\n```python\r\n# Play audio file\r\nplay('../sounds/mysound.mp3')\r\n\r\n# Make a file of a frequency\r\ngenerate(frequency, duration, name, sample_rate=44100, volume=0.5)\r\n```\r\n\r\n### Local Server Support\r\n```python\r\n# Starting a server and client (PORT, message)\r\nLocalServer(1080, {'MarkTheMighty':((243,332), 57)})\r\n```\r\nAn example of a returned value would be:\r\n```python\r\n{'LordMinion777':((0,0), 100), 'Muyskerm':((245,334), 43)}\r\n```\r\n\r\n### Terminal Input Detection\r\n```python\r\n# Mouse Click Detection\r\nterd.click()             # A return value of (-1, -1) means the click was invalid!\r\n\r\n# Keyboard Press Detection\r\nterd.geky(times)\r\n```\r\n\r\n### Encryption\r\n```python\r\n# Set the table\r\nb64.Table.table = 'ABCDEF...XYZ...12...90...!@..._+'\r\nb64.Table.generate('ABCDEF...XYZ...12...90...!@..._+', 32)\r\n\r\n# Encode and decode\r\nb64.encode(text)\r\nb64.decode(text)\r\n```\r\nWhen setting the table, it MUST include the characters that are being stored at the very least!\r\nExtra characters are suggested\r\n\r\n## Links\r\n- [Homepage](https://pytgm.tokynblast.space/home)\r\n- [Documentation](https://pytgm.tokynblast.space/documentation/use)\r\n- [Source Code](https://github.com/TokynBlast/pyTGM/tree/main)\r\n- [Bug Tracker](https://github.com/TokynBlast/pyTGM/issues)\r\n- [Changelog](https://github.com/TokynBlast/pyTGM/blob/main/CHANGELOG.txt)\r\n\r\n## License\r\npyTGM is licensed under Bspace, created by Tokyn Blast.\r\n\r\n\r\n4.0.0 (December 17, 2024)\r\n---------------------------\r\n- Removed file.readChar\r\n- Major fixes to __all__ variable in main __init__\r\n- Did an overhaul on Licence and README.md\r\n- major change in file structure\r\n- Renamed getch to geky\r\n- Put getch inside class \"terd\"\r\n- Added a click detection function\r\n- Updated and fixed __all__\r\n- Added __init__.py for an entry point\r\n- Moved __all__ and links to __init__.py\r\n- Made functions satic methods\r\n- Changed how random works\r\n- Updated LocalServer error message\r\n- Added a To_send variable to LocalServer\r\n- Removed autoplay from frequency\r\n- Fixed windows key detection\r\n- Removed board and random\r\n- Added security hashes\r\n- Added badges to README.md\r\n\r\n4.0.1 ()\r\n---------------------------\r\n- Imoprt fixes\r\n",
    "bugtrack_url": null,
    "license": "Bspace",
    "summary": "Terminal Game Maker",
    "version": "4.0.6",
    "project_urls": {
        "Homepage": "https://youtube.tokynblast.space/programming/libraries/pytgm/init"
    },
    "split_keywords": [
        "game",
        " game maker",
        " terminal",
        " tools",
        " pytgm",
        " terimnal input"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c4be83e7513b508829172101b5573fca39c8d3be19ef874c545986f5afc311a",
                "md5": "bc46ee2d9401390e1a00d0d92d96e614",
                "sha256": "401d9a137daf43ab97edf51a7800ac3bfbc49783dffaf3838376b2adb6355886"
            },
            "downloads": -1,
            "filename": "pyTGM-4.0.6-cp313-cp313-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "bc46ee2d9401390e1a00d0d92d96e614",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.13",
            "size": 63263,
            "upload_time": "2024-12-17T23:27:50",
            "upload_time_iso_8601": "2024-12-17T23:27:50.058374Z",
            "url": "https://files.pythonhosted.org/packages/2c/4b/e83e7513b508829172101b5573fca39c8d3be19ef874c545986f5afc311a/pyTGM-4.0.6-cp313-cp313-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37b7ebc8a943f50f98c501748db1351e2e2e5bd7cffa87b144f9ff2463680378",
                "md5": "1919a7c2f14b1490b43533098e8719ae",
                "sha256": "40c0efd975bd3785c3efd3530ce3945e33d8cb3ad66e4f248393a375af491d33"
            },
            "downloads": -1,
            "filename": "pytgm-4.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "1919a7c2f14b1490b43533098e8719ae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.13",
            "size": 11770,
            "upload_time": "2024-12-17T23:27:51",
            "upload_time_iso_8601": "2024-12-17T23:27:51.268755Z",
            "url": "https://files.pythonhosted.org/packages/37/b7/ebc8a943f50f98c501748db1351e2e2e5bd7cffa87b144f9ff2463680378/pytgm-4.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 23:27:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pytgm"
}
        
Elapsed time: 0.57126s