semvec/pypi-packages huggingface dataset:
objconpython 0.3
A Python package to run objc code on python

# objconpython - Execute Objective-C Code from Python

This Python package allows you to execute Objective-C code directly within Python using a simple function call. You can use with pyobjc

---

## Features

- Execute inline Objective-C code from Python using `objconpython.run()`.
- Supports basic Objective-C expressions and code evaluation.
- Handles Objective-C exceptions and returns error messages to Python.
- Easy-to-use integration in Python projects.

---

## Requirements

- **macOS** (required for Objective-C execution via `Foundation` framework).
- **Python 3.x** or higher.
- **pip** (for installing the package).

---

## Installation

To install the package, run the following command:

```bash
pip install objconpython
```
```python
import objconpython

objc_code = """
#import <Foundation/Foundation.h>
int main() {
    @autoreleasepool {
        NSLog(@"Hello from Objective-C!");
    }
    return 0;
}
"""

# Gọi hàm run trong module
result = objconpython.run(objc_code)
print(result)
```
Explanation: 
objconpython.run("<objc_code>"):
deutschebahn 1.4.0
Collection of utilities related to German train operator Deutsche Bahn.

Includes bindings for https://github.com/derf/db-fakedisplay, coach order API, list of stations, and more.
Includes unmodified DS 100 station data, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/deed), created by Deutsche Bahn AG.
Home-page: https://github.com/Mezgrman/pyDeutscheBahn
Author: Julian Metzler
Author-email: git@mezgr.de
License: GPLv3
Description: UNKNOWN
Keywords: train web api json departure arrival times coach order station list db deutsche bahn
Platform: UNKNOWN
colab-load 1.0.4
Library to download .ipynb from google colab.
Requires Python: >=3.6
Keywords: colab load file ipynb

# Colab Load #

## What is this? ##
Library to download .ipynb from google colab

## Quick Guide ##
	pip install colab-load
One url:

    from colab_load.load import ColabLoad
    import asyncio
    
    colab_load = ColabLoad()
    
    async def main():
        res = await colab_load.load_file_single("https://colab.research.google.com/drive/1QD1TM2TroOEqqtTURpk5sVOmGLQeREv_?usp=sharing",
                                          "file_colab_load", "test_colab_load")
    
        print(res)
    
    asyncio.run(main())
Quart 0.20.0
A Python ASGI web framework with the same API as Flask
Requires Python: >=3.9

# Quart

![](https://raw.githubusercontent.com/pallets/quart/main/artwork/logo.png)

Quart is an async Python web application framework. Using Quart you can,

- render and serve HTML templates,
- write (RESTful) JSON APIs,
- serve WebSockets,
- stream request and response data,
- do pretty much anything over the HTTP or WebSocket protocols.

## Quickstart

Install from PyPI using an installer such as pip.

```
$ pip install quart
```

Save the following as `app.py`. This shows off rendering a template, returning
JSON data, and using a WebSocket.

```python
from quart import Quart, render_template, websocket

app = Quart(__name__)

@app.route("/")
async def hello():
    return await render_template("index.html")

@app.route("/api")
async def json():
    return {"hello": "world"}

@app.websocket("/ws")
async def ws():
    while True:
        await websocket.send("hello")
        await websocket.send_json({"hello": "world"})
```

```
$ quart run
 * Running on http://127.0.0.1:5000 (CTRL + C to quit)
```

To deploy this app in a production setting see the [deployment] documentation.

[deployment]: https://quart.palletsprojects.com/en/latest/tutorials/deployment.html

## Contributing

Quart is developed on [GitHub]. If you come across a bug, or have a feature
request, please open an [issue]. To contribute a fix or implement a feature,
follow our [contributing guide].

[GitHub]: https://github.com/pallets/quart
[issue]: https://github.com/pallets/quart/issues
[contributing guide]: https://github.com/pallets/quart/CONTRIBUTING.rst

## Help

If you need help with your code, the Quart [documentation] and [cheatsheet] are
the best places to start. You can ask for help on the [Discussions tab] or on
our [Discord chat].

[documentation]: https://quart.palletsprojects.com
[cheatsheet]: https://quart.palletsprojects.com/en/latest/reference/cheatsheet.html
[Discussions tab]: https://github.com/pallets/quart/discussions
[Discord chat]: https://discord.gg

## Relationship with Flask

Quart is an asyncio reimplementation of the popular [Flask] web application
framework. This means that if you understand Flask you understand Quart.

Like Flask, Quart has an ecosystem of extensions for more specific needs. In
addition, a number of the Flask extensions work with Quart.

[Flask]: https://flask.palletsprojects.com

### Migrating from Flask

It should be possible to migrate to Quart from Flask by a find and replace of
`flask` to `quart` and then adding `async` and `await` keywords. See the
[migration] documentation for more help.

[migration]: https://quart.palletsprojects.com/en/latest/how_to_guides/flask_migration.html
rda-solver4win 1.0.2
A light weight command line menu that supports Windows, MacOS, and Linux
Keywords: python, menu, rda, windows, mac, linux


# dumb_menu

[![Downloads](https://static.pepy.tech/badge/dumb-menu)](https://pepy.tech/project/dumb-menu)

simple_term_menu don't support windows, so I made dumb_menu.

dumb_menu is not as powerful as simple_term_menu , but this a **GOOD OLD MENU** .

dumb_menu is a light weight command line menu that supports **Windows**, **MacOS**, and **Linux**.


## Installation

```
pip install dumb-menu
```

https://pypi.org/project/dumb-menu/

https://github.com/cornradio/dumb_menu (I want stars ⭐ uwu)

## Usage

example:

```python
import dumb_menu
options = ["[1]Option 1", "[2]Option 2", "[3]Option 3","[q]quit"]
index = dumb_menu.get_menu_choice(options)
print(f"You selected option {index + 1}: {options[index]}")
```


![png](https://raw.githubusercontent.com/cornradio/imgs/main/20230214163952.png)

another example:

```python
import os
import dumb_menu

def loopmenu():
    options = ["[1]happy",
            "[2]sad",
            "[3]give me a cookie",
            "[q]quit"]
    index = dumb_menu.get_menu_choice(options,isclean = True)
    # clear screen, cls for windows, clear for linux
    os.system('cls') 
    # Python 3.10+ only,old version could use if-else
    match index:
        case 0:
            print(":)")
        case 1:
            print(":(")
        case 2:
            print("🍪ヾ(•ω•`)o")
        case 3:
            exit()
    input('Press ENTER to continue...')

if __name__ == "__main__":
    while True:
        loopmenu()
```
![Imgur](https://i.imgur.com/7zjLt8g.png)


## Get help

Get help ➡️ [Github issue](https://github.com/cornradio/dumb_menu/issues)

## Update log


`1.0.8` add "return key string" option , add `demo.py`  As a straightforward example

```python
dumb_menu.get_menu_choice(options,give_key_str = True)
```

`1.0.7` fix "flickering on mac zsh" 

`1.0.6` forget write log in 1.0.5

`1.0.5` fix bug in 1.0.4

`1.0.4` support "clean mode" 

`1.0.3` show selected index also when using hotkey  

`1.0.2` first useable version

`1.0.1` fix bug

`1.0.0` first release

## how to upload a new version (for me)

en: https://packaging.python.org/tutorials/packaging-projects/ 

zh: https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2

> make sure have twine installed first

1. change `setup.py`
2. testing `python3 setup.py develop`
3. `python3 setup.py sdist`
4. `twine upload dist/*`

test code :
```
python3

import dumb_menu
dumb_menu.demo()
```