semvec/pypi-packages huggingface dataset:
s2cm 0.3.2
Server to cliet messenger, for notifying clients in a client-server models
Requires Python: >=3.6

# s2cm
[![Dependabot Updates](https://github.com/Austin-rgb/s2cm/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/Austin-rgb/s2cm/actions/workflows/dependabot/dependabot-updates)

![logo](https://github.com/Austin-rgb/s2cm/blob/main/Screenshot_20241030_213712_Chrome.jpg)

Server to client messenger for notifying users in a client server model
## Installation 
you can install latest stable via pip
```sh
pip install s2cm
```

For latest release, you can install from github
```sh
git clone https://github.com/Austin-rgb/s2cm.git
cd s2cm
pip install .
```

## Usage
### start the server
```python
from s2cm.server import socketio, app
socketio.run(app,port=5000)
```
### connect from client 
For demonstration we connect 2 python clients
- connecting client one
```python
from s2cm.client import SCMessenger

server_url = "http://localhost:5000" # replace with the address of your server 

# register
SCMessenger.register("username1","password1")

# login
messenger = SCMessenger(server_url, username="username1",password="password1")

# Message user2
messenger.send("username2", "hi")
```

- connecting client two
```python
from s2cm.client import SCMessenger

server_url = "http://localhost:5000" # replace with the address of your server 

# register
SCMessenger.register("username2","password2")

# login
messenger = SCMessenger(server_url, username="username2",password="password2")

# once client 1 is connected client 2 can message her
messenger.send("username1","hi too")
```

### Usage in javascript (web page) 
s2cm can be accessed with javascript in a web page 
Once your server is running 
```html
<script src="http://localhost:5000/static/s2cm.client.min.js"></script>
<script>
const client=s2cm_client("http://localhost:5000")
client.emit("register",{"username":"username1","password":"password1"}
client.emit("login",{"username":"username1","password":"password1"}
client.emit("message_user",{"username":"username2","message":"Hi there"}) 
</script>
```
plasted 1.0.0
A WSGI app maded from a PLASTER_URI environment variable.
Requires Python: >=3.9

# Plasted

[![Continuous Integration](https://github.com/mardiros/plasted/actions/workflows/tests.yml/badge.svg)](https://github.com/mardiros/plasted/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/mardiros/plasted/graph/badge.svg?token=gi0lEALVAo)](https://codecov.io/gh/mardiros/plasted)


Fix the problem to run an WSGI app configured with plaster using uwsgi.

uwsgi has many loaders, but it does not support plaster, only the old paste.ini
format.

Plasted

```bash
export PLASTER_URI=file+yaml://test.yaml
uwsgi -M --workers 1 --http 127.0.0.1:8000  --module pasted:app
```
math-toolkit 0.1.0
A simple math toolkit package
Requires Python: >=3.6

# Math Toolkit

A simple math toolkit for basic operations.

## Installation

To install the package, use:

```bash
pip install math_toolkit
from math_toolkit.operations import add, subtract, multiply, divide

print(add(10, 5))        # Output: 15
print(subtract(10, 5))   # Output: 5
print(multiply(10, 5))   # Output: 50
print(divide(10, 5))     # Output: 2.0
Subdora 0.2.2
Subdora : A python package that takes care of obfuscation of python scripts
Keywords: python, file encryption, security, obfuscation


![subdora logo](https://raw.githubusercontent.com/Lakshit-Karsoliya/Subdora/main/assets/subdora.png "subdora logo")

<h1>Subdora 0.2.2</h1>
<p style="color:red;font-size:12px;">***This version of subdora is backward compatiable 0.2.1, it is recommended to use the latest verison of subdora </p>

<p>Subdora is an obfuscation tool which makes source code very hard to interprate</p>

<h2>Installation</h2>

```
pip install Subdora
```

<h2>Supported OS</h2> 
* Ubuntu 22.04 
* win 10/11

<!-- | Version | Arm   | Linux(64) | Windows(64) |
|:-------:|:-----:|:---------:|:-----------:|
| 0.2.0   | ❌    | ✔️         | ✔️        |
| 0.1.0   | ❌    | ✔️         | ✔️        |
| 0.0.2   | ❌    | ✔️         | ✔️        |
| 0.0.1   | ❌    | ✔️         | ✔️        | -->




<h2>What's new in v0.2.2</h2>

* Improve error handeling logic for image obfuscation
* Minor bug fixes 

<h2>Features</h2>

* able to obfuscate python script into images while retaning ineration counter and expiry time 
* Add support for cli tool 
* Add expiry time feature

<h2>How to use</h2>
<h3>Core functionality</h3>

<p><b>obfuscating main.py file</b> </p>

<p>From command line</p>

<code>C:\>subdora --obfuscate main.py --itr 10 --time 10m</code>

<p>From python file </p>

```py
Subdora.subdora_encode_file("main.py",no_of_iterations,expiry_time)#'4m 4h etc'
```

<p><b>This will generate a main.myst file in order to execute myst file</b></p>

<p>From command line</p>

<code>C:\>subdora --run main.myst</code>

<p>From python file</p>

```py
Subdora.subdora_parse("main.myst")
```

<p><b>Encoding python script to image</b></p>
<p>*only supports png and jpg files</p>
<code>C:>subdora --obfuscate main.py --img img.jpg --itr 5 --time 5m</code>

<br><p>This will generate main.png file to run the image file use</p>

<code>C:> subdora --run main.img</code>

<h3>


<h3>Features</h3>

* Obfuscation of python code
* obfuscation of python code into image files
* Support Code expiry Feature
* Support iteration counter
* Support for cli tool
* Supports loading obfuscated code as module in another python projects