semvec/pypi-packages huggingface dataset:
serwersms-api 0.0.10
Python client for remote communication with SerwerSMS.pl API v2
Requires Python: >=3.5

# SerwerSMS.pl Python Client API
Python client for remote communication with SerwerSMS.pl API v2

Attention. The current version works based on the API token.

In order to authorize via an API Token, it must be generated on the Customer Panel side in the Interface Settings → HTTPS API → API Tokens menu. The authorization header format follows the Bearer token format.

#### Example usage
```python
import sys
import json

from serwersms import SerwerSMS

api = SerwerSMS('token')

try:

    params = {
        'test': 'true',
        'details': 'true'
    }

    response = api.message.send_sms('500600700', 'Test message', 'INFORMACJA', params)

    result = json.loads(response)

    if 'items' not in result:
        raise Exception('Empty items')

    for item in result['items']:
        print(item['id'] + ' - ' + item['phone'] + ' - ' + item['status'])
        
except Exception:

    print('ERROR: ', sys.exc_info()[1])
```

#### Sending SMS
```python
api = SerwerSMS('token')

try:

    params = {
        'details': 'true'
    }

    response = api.message.send_sms('500600700', 'Test message', 'INFORMACJA', params)
    
    print(response)
    
except Exception:

    print('ERROR: ', sys.exc_info()[1])
```

#### Sending personalized SMS
```python
api = SerwerSMS('token')

try:

    messages = []

    message1 = {
        'phone': '500600700',
        'text': 'First message'
    }
    
    messages.append(message1)

    message2 = {
        'phone': '600700800',
        'text': 'Second  message'
    }
    
    messages.append(message2)

    params = {
        'details': 'true'
    }

    response = api.message.send_personalized(messages, 'INFORMACJA', params)
    
    print(response)
    
except Exception:

    print('ERROR: ', sys.exc_info()[1])
```

#### Downloading delivery reports
```python
api = SerwerSMS('token')

try:

    params = {
        'id': 'aca3944055'
    }
    
    response = api.message.reports(params)
    
    print(response)
    
except Exception:

    print('ERROR: ', sys.exc_info()[1])
```

#### Downloading incoming messages
```python
api = SerwerSMS('token')

try:

    params = {
        'phone': '500600700'
    }
    response = api.message.recived('ndi',params)
    
    print(response)
    
except Exception:

    print('ERROR: ', sys.exc_info()[1])
```

## Requirements
Python 3.5.*

## Documentation
http://dev.serwersms.pl

## API Console
http://apiconsole.serwersms.pl
physfs.py 0.2.0
PhysFS.py is a python wrapper for the PhysicsFS library.
Requires Python: >=3.7

PhysFS.py
==============

![github-stars][stars-badge]

|      CI              | status |
|----------------------|--------|
| Linux/macOS Travis   | [![Travis-CI][travis-badge]][travis-link] |
| MSVC 2019            | [![AppVeyor][appveyor-badge]][appveyor-link] |
| pip builds           | [![Pip Actions Status][actions-pip-badge]][actions-pip-link] |
| [`cibuildwheel`][]   | [![Wheels Actions Status][actions-wheels-badge]][actions-wheels-link] |

[gitter-badge]:            https://badges.gitter.im/pybind/Lobby.svg
[stars-badge]:             https://img.shields.io/github/stars/shabbywu/physfs.py?style=social
[actions-badge]:           https://github.com/shabbywu/physfs.py/workflows/Tests/badge.svg
[actions-pip-link]:        https://github.com/shabbywu/physfs.py/actions?query=workflow%3A%22Pip
[actions-pip-badge]:       https://github.com/shabbywu/physfs.py/workflows/Pip/badge.svg
[actions-wheels-link]:     https://github.com/shabbywu/physfs.py/actions?query=workflow%3AWheels
[actions-wheels-badge]:    https://github.com/shabbywu/physfs.py/workflows/Wheels/badge.svg
[travis-link]:             https://travis-ci.org/shabbywu/physfs.py
[travis-badge]:            https://travis-ci.org/shabbywu/physfs.py.svg?branch=master&status=passed
[appveyor-link]:           https://ci.appveyor.com/project/shabbywu/physfs.py
<!-- TODO: get a real badge link for appveyor -->
[appveyor-badge]:          https://travis-ci.org/shabbywu/physfs.py.svg?branch=master&status=passed
[`cibuildwheel`]:          https://cibuildwheel.readthedocs.io

PhysFS.py is a python wrapper for the PhysicsFS library.

Installation
------------

- `pip install physfs.py`

Requirements
------------
CMake for building, and, of course, the PhysicsFS library.

Features
------------
physfs.py provides an encapsulation of the basic interface of PhysFS, including `init`, `deinit`, `mount`, `mount_memory`, `unmount`, `ls`, `read(cat)`, `stat`.

Enables python to use PhysFS at a minimum.

License
-------

pybind11 is provided under a BSD-style license that can be found in the LICENSE
file. By using, distributing, or contributing to this project, you agree to the
terms and conditions of this license.

Test call
---------

```python
import physfs
physfs.init()

physfs.mount("./example.zip")
physfs.ls()
```
2d2stl 0.0.2
2d2stl is a Python package that converts images to 3D STL models.
Requires Python: >=3.8

# 2d2stl Image Converter

## Overview
`2d2stl` is a Python package that converts images to 3D STL models. It reads an image, translates it into a 3D mesh, and exports the mesh in STL format. This package is ideal for creating 3D printable models from logos, silhouettes, and other high-contrast images.

## Features
- Convert images to 3D STL meshes
- Set extrusion height for 3D models
- Optionally add a base plane for enhanced model adhesion
- Compatible with any mainstream image format

## Installation
To use this package, ensure that you have the required dependencies installed:
```bash
pip install numpy Pillow numpy-stl scipy
```

## Usage
### Function
```python
def image_to_stl(image_path, output_path, extrusion_height, add_base=False, base_thickness=0)
```
#### Parameters
- **`image_path`**: Path to the input image.
- **`output_path`**: Path to save the generated STL file.
- **`extrusion_height`**: Height of the 3D model extrusion.
- **`add_base`** (Optional, default `False`): Adds a base plane if set to `True`.
- **`base_thickness`** (Optional, default `1`): Thickness of the base plane.

### Example
```python
# Convert an image to STL
image_to_stl('path/to/input_image.png', 'output.stl', extrusion_height=3, add_base=True, base_thickness=2)
```

### How It Works
1. **Load Image**: The function reads the input image and converts it to grayscale if needed.
2. **Binary Conversion**: Pixels above a specific threshold are considered "on," and those below are "off."
3. **Mesh Creation**: A 3D mesh is generated based on the "on" pixels, extruding vertically.
4. **Optional Base**: Adds an optional base to the bottom of the model for stability.
5. **Export to STL**: The mesh is then exported to STL format.

## License
This package is distributed under the MIT License.

## Contribution
Contributions are welcome. Please submit issues or pull requests to help improve this package!
pydynamics 0.0.10
Talk to On-Prem Dynamics CRM
Requires Python: >=3

# PyDynamics

Client and Query Builder for On-Premise Microsoft Dynamics CRM.

## Getting an Auth Token
The first task would be to fetch an authentication token. To do this pass your username and password to the token.get() function along with the URL of your CRM instance.
```python
from pydynamics import token
tok = token.get('https://crm.domain.com/', 'DOMAIN\\username', 'password')
```
The returned token can then be used in subsequent client calls.

## Create a client instance
Pass the token generated above to the Client constructor along with the API URL.
```python
from pydynamics.client import Client
client = Client(tok, 'https://crm.domain.com/INSTANCE/api/data/v8.1/')
```

## Building Queries
The package includes a query builder.

### Select a single item
The below example returns a single contact record, selected on its GUID and selects 3 specific fields to return. the select() part is optional, a default field set will be returned if it is omitted.
```python
from pydynamics.querybuilder import QueryBuilder
q = QueryBuilder('contacts').guid('1bf1c4cf-1ed1-e311-941c-0050568a018c').\
    select(['firstname','lastname', 'emailaddress1'])
result = client.select(q)
```

### Select based on filters
The below example returns the first 2, based on the limit(), contacts that contain the string "flowplex" within the emailaddress1 field and implements ordering and return field selection.
```python
from pydynamics.querybuilder import QueryBuilder
q = QueryBuilder('contacts').\
    filter('emailaddress1', 'contains', 'flowplex', 'str').\
    select(['firstname','lastname', 'emailaddress1']).\
    order(['lastname'],'asc').limit(0 ,2)
result = client.select(q)
```

### Create a record
The below creates a contact entity with the data provided to the query builder. The GUID of the new item will be returned if successful.
```python
from pydynamics.querybuilder import QueryBuilder
q = QueryBuilder('contacts').data({
    'firstname': 'Dan',
    'lastname': 'Test',
    'emailaddress1': 'dan@fdsdsds.com'
    })
guid = client.create(q)
```

### Update a record
The below updates the firstname field on the specific contact record.
```python
from pydynamics.querybuilder import QueryBuilder
q = QueryBuilder('contacts').guid('1bf1c4cf-1ed1-e311-941c-0050568a018c').\
    data({'firstname': 'Daniel'})
client.update(q)
```
qrcode-plus 3.1.5
Advance Artistic (Micro) QR Code plugin for Segno
Requires Python: >=3.5
Keywords: QR Code, Micro QR Code, ISO/IEC 18004, ISO/IEC 18004:2006(E), ISO/IEC 18004:2015(E), qrcode, QR, barcode, matrix, 2D

Artistic QR Codes
-----------------

This `Segno <https://github.com/heuer/segno>`_ plugin converts a
(Micro) QR Code to a Pillow Image or into a QR code with a background
image.

This plugin is not required to write PNG, EPS or PDF files. Segno's native
implementations usually generate smaller files in less time.

This plugin might be useful to modify the QR Codes (i.e. rotate or blur)
or to save the QR codes in an image format which is not supported by Segno.

Furthermore, QR codes can be created with a background image.

.. image:: https://github.com/heuer/qrcode-artistic/raw/master/images/beatles.jpg

.. image:: https://github.com/heuer/qrcode-artistic/raw/master/images/beatles-animated.gif


Transparency is supported as well

.. image:: https://github.com/heuer/qrcode-artistic/raw/master/images/maggie.gif


Use ``pip`` to install from PyPI::

    $ pip install qrcode-artistic


Documentation: https://segno.readthedocs.io/en/latest/artistic-qrcodes.html