semvec/pypi-packages huggingface dataset:
open-console-gui 0.32
✧ Interactive Console Menus & Loading Bars ✧
Keywords: python, menu, progress-bar, gui, terminal, console

▁▂▃▄▆ OpenConsoleGUI is a library for creating interactive console UI elements.





《✩》 FEATURES 《✩》

◉ Interactive menus with keyboard navigation

◉ Predefined / custom styles for menus



◉ Interactive progress-bars with a ton of options

◉ Predefined / custom styles for progress-bars





《✩》 EXAMPLES 《✩》

LoadingBar (predefined style-0) :

    █████████████████████████························· 50%



LoadingBar (predefined style-1) :

    |█████████████████████████                         | 50%



LoadingBar (predefined style-2) :

    ■■■■■■■■■■■■■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□ 50%



LoadingBar (predefined style-3) :

    ▰▰▰▰▰▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱▱▱▱▱▱▱ 50%



Menu (predefined style-0) :

     |[MenuTitle]|

    >  0.Option0

       1.Option1

       2.Option2



Menu (predefined style-1) :

     【MenuTitle】

    ▶  0.Option0

       1.Option1

       2.Option2



Menu (predefined style-2) :

     ☾MenuTitle☽

    ➤  0.Option0

        1.Option1

        2.Option2



Menu (predefined style-3) :

     𓇼MenuTitle𓇼

    ✦  0.Option0

       1.Option1

       2.Option2





《✩》 Install & Usage 《✩》

◉ For more information on how to use the tool, please head over to the GitHub repos.

❖ GitHub : https://github.com/SHARKgamestudio/OpenConsoleGUI
pygetent 0.1
POSIX getent syscalls in python
Requires Python: >=3.8

==========
 pygetent
==========

Python interface to the POSIX getent family of commands (getpwent, getgrent, getnetent, etc.)


Usage
=====

Here a few examples.

Load the interface::

    >>> import pygetent as getent

Doing a passwd lookup::

    >>> print dict(getent.passwd('root'))
    {'dir': '/root',
     'gecos': 'root',
     'gid': 0,
     'name': 'root',
     'password': 'x',
     'shell': '/bin/bash',
     'uid': 0}

Doing a group lookup::

    >>> print dict(getent.group('root'))
    {'gid': 0, 'members': [], 'name': 'root', 'password': 'x'}


Bugs
====

Please use the `bug tracker at GitHub`_ for bugs or feature requests.

.. _bug tracker at GitHub: https://github.com/screamingpigeon/getent/issues


Authors
=======

* `Wijnand Modderman-Lenstra <https://maze.io/>`_
* Thomas Kula
* `Olivier Cortès <http://oliviercortes.com/>`_
* Forked by Prakhar Gupta

Build status
============

.. image:: https://landscape.io/github/tehmaze/getent/master/landscape.svg
   :target: https://landscape.io/github/tehmaze/getent/master

.. image:: https://travis-ci.org/tehmaze/getent.svg
   :target: https://travis-ci.org/tehmaze/getent

.. image:: https://coveralls.io/repos/tehmaze/getent/badge.svg
   :target: https://coveralls.io/r/tehmaze/getent

Why was this forked?
====================
Originally forked from https://github.com/tehmaze/getent. This fork was created since 
 A) the original repository is now archived
 B) The package published to pypi has a broken setup.py, which leads to installation failure. This was due to the `file()` function being called on this very Readme. While the original repository reflects an update that uses 'read()`, the PyPi source has not been updated. This repository exists to republish to PyPI
rmcc 0.1.0
The rmcc is Regional Mesh Code Calculator.
Requires Python: <4.0,>=3.12

# rmcc
The rmcc is Regional Mesh Code Calculator.

# Installation
```
pip install rmcc
```

# Usage
```python
from rmcc import MeshCode

meshCode = MeshCode.parse("5339-00-00-1")
neighbors = meshCode.calNeighbors(2)
```
The variable `neighbors` is an array. It represents the yellow and blue fields in the image below. An Argument "2" of `calNeighbors` method means distance from center mesh.

![](./images/neighbors.drawio.svg)
freecad.exp-optics-workbench 0.1.1
Physically accurate forward ray tracing for optics simulation and optimization with FreeCAD workbench frontend

# Optics Design Workbench

This workbench was inspired by the (OpticsWorkbench)[https://github.com/chbergmann/OpticsWorkbench] by Christian Bergmann.


## Installation



Because running `import freecad.something` causes a Segfault in many python interpreters, the workbench installs both the `freecad.optics_design_workbench` module and an identical `freecad_.optics_design_workbench` module. The latter can always be safely imported to use the parts of the module that are not related to FreeCAD.


## Parallel computing

The GUI simulations all take place in the GUI main thread using the "QApplication.processEvents" hack to keep the GUI responsive. The extra implementation work for a proper QRunnable/QThreadpool solution is not worth it (yet), because it would only improve the responsivenes, not the actual simulation performance because of python's GIL.

To do simulations with actual performance gain, background processes running headless FreeCADCmd are launched in the background.


## Module structure

### `distributions`

Classes and functions for (random) point generation following given distributions.


### `freecad_elements` 

Contains all definitions for behavior/objects/commands living in the FreeCAD projects. The ray-tracing code is in here, because it is inherently connected to the FreeCAD geometry engine.


### `gui_windows`

Contains classes/functions that open additional windows.


### `simulation`

Contains classes/functions handling the simulation loop, saving of results, progress tracking, background workers, etc. Submodules in here use the FreeCAD.App and Gui objects in a few places but only to fetch paths or similar metadata, not for direct interaction. For direct interaction prefer to use submodules of freecad_elements.
SimpleColorLogger 1.4.1
A simple colored logger for terminal output
Requires Python: >=3.6

# SimpleColorLogger

SimpleColorLogger is a simple Python package for printing colored log messages to the terminal.

## Installation

```bash
pip install SimpleColorLogger
```

## Usage

```python
from simplecolorlogger.logger import ColorLogger, Color

ColorLogger.log("This is a normal log message.")
ColorLogger.log("This is a log message with a custom color.", Color.YELLOW)
ColorLogger.info("This is an info message.")
ColorLogger.success("This is a success message.")
ColorLogger.warning("This is a warning message.")
ColorLogger.error("This is an error message.")
```

## Feature Requests
I initially created this repository for personal use, but decided to share it publicly. 
If you have any suggestions, such as additional colors, please feel free to email me at info@music-request.com or submit a request directly in this repository on GitHub.
https://github.com/timlukastlt/SimpleColorLogger


## License
This project is licensed under the MIT License.
dtj 0.1.8
A tool to convert directory contents to JSON
Requires Python: >=3.6


# DTJ (Directory-to-JSON)

## Overview
DTJ (Directory-to-JSON) is a Python command-line tool, particularly useful for quickly generating and sharing representations of directory structures and their contents in a structured and token-efficient manner, making it ideal for interactions with language models like ChatGPT.

## Example output
```bash
dtj
```

```json
{
  "my_project": {
    "__init__.py": "",
    "main.py": "# Main application file\nimport app\n\napp.run()",
    "app.py": "# App module\n\ndef run():\n    print('Running the app')",
    "utils": {
      "helper.py": "# Utility functions\n\ndef helper():\n    return 'Helper function'"
    }
  }
}
```

### Features
- Convert directory contents to JSON format.
- Include or exclude files using patterns (supports fnmatch style, e.g., `*.py`, `data*`).
- Recursive directory parsing.
- Options for output: printing to console, saving to a file, or copying to the clipboard.

### Updates
- new JSON format **reduces token usage ~30%**

## Installation

```bash
pip install dtj
```

## Usage

Run DTJ from the command line with the following options:

```bash
dtj <target-directory> [options]
```

If no target directory is specified, DTJ will default to the current working directory.

Options:
- `-t` or `--target-file`: Target a single file. This option is mutually exclusive with `-i`, `-e`, and `-r`.
- `-i` or `--include`: Patterns to include files. Enclose patterns in quotes to avoid shell expansion (e.g., `'*.py'`, `'data*'`).
- `-e` or `--exclude`: Patterns to exclude files. Enclose patterns in quotes to avoid shell expansion (e.g., `'*.xml'`, `'temp*'`).
- `-o` or `--output-file`: Set the output JSON file name.
- `-r` or `--recursive`: Enable recursive search in directories. Not valid when targeting a single file.
- `-p` or `--print`: Print the output using rich formatting.
- `-c` or `--clipboard`: Copy the output to the clipboard.

## Example
simple
```bash
dtj
```

Generates an output.json with the content

advanced
```bash
dtj myfolder -i '*.py' '*.html' -o output.json -r
```

This command will parse all `.py` and `.html` files in `myfolder` recursively and save the JSON output to `output.json`.

## Using it alongside [gptwc](https://github.com/lwneal/gptwc)

```bash
dtj | gptwc
```
outputs the token count
`1337`

## Authors

- Adrian Galilea - *Initial work*

## Acknowledgments

- Hat tip to ChatGPT for assistance with project setup and documentation.