semvec/pypi-packages huggingface dataset:
youwol 0.1.12
YouWol as a desktop application
Requires Python: ~=3.8



# Py-YouWol

Py-YouWol is the local equivalent of the online YouWol platform, designed to run on a personal computer.
While the online ecosystem of YouWol is the go-to place for sharing resources, the local installation is preferred for the development of those resources.
In fact, even for daily use of YouWol, the local application provides multiple benefits.

Find out more in the [Py-YouWol guide](https://l.youwol.com/doc/py-youwol).

## Links

[Py-YouWol guide](https://l.youwol.com/doc/py-youwol)

[YouWol platform](https://platform.youwol.com/applications/@youwol/platform/latest)

[YouWol guide](https://l.youwol.com/doc/youwol)

# Installation

> Note: Py-YouWol can be installed from PyPi repository,
> see the [Py-YouWol guide](https://l.youwol.com/doc/py-youwol).


To install from source code, you will need to have Git and Python installed on your machine.
Py-YouWol support the Python versions 3.8 & 3.9.

Once you have those, you can follow these steps:

1. Clone the repository from GitHub: `git clone https://github.com/youwol/py-youwol`
2. Navigate to the project directory: `cd py-youwol`
3. Create a virtual environment (recommended) using python3: `python3 -m venv yw_venv`
4. Activate the virtual environment: `source yw_venv/bin/activate` (on Linux/Mac) or `yw_venv\Scripts\activate` (on Windows)
5. Install the required packages: `pip install -r requirements.txt`
6. Run the application: `python main.py`
fortress-sdk-python 0.1.16
Fortress Platform Python API SDK
Requires Python: <4.0,>=3.11

# Fortress Python SDK

Welcome to the Fortress Python SDK. This SDK provides a way for you to leverage the power of the Fortress platform in your Python applications.

## Installation

You can install the SDK using pip. Simply run the following command:

```bash
pip install fortress-sdk-python
```

## Quick Start

Here is a quick example to get you started with the SDK:

```python
from fortress_sdk_python import Fortress

# Initialize the client with your API key
client = Fortress(org_id='your_org_id', api_key='your_api_key')

# Connect to a database
conn = client.connect_tenant(tenant_name='client1')
cursor = conn.cursor()

# Execute a query to fetch all rows from a table
results = cursor.execute('SELECT * FROM your_table_name').fetchall()

# Print the results
for row in results:
    print(row)

# Close the connection
conn.close()
```

## Documentation

Below is a list of the available functionality in the SDK. Using the SDK you can create a new tenants and point them to existing or new databases. You can also easily route data requests based on tenant names. For more detailed information, please refer to the [Fortress API documentation](https://docs.fortress.build).

Database Management:

- `create_database(platform: str, alias: str)`: Creates a new database.
- `delete_database(database_name: str)`: Deletes to a database.
- `list_databases()`: Lists all databases.

Tenant Management:

- `create_tenant(tenant_name: str, isolation_level: str, platform: str, alias: str, database_id: str = "")`: Creates a new tenant.
- `delete_tenant(tenant_name: str)`: Deletes a tenant.
- `list_tenants()`: Lists all tenants.
- `connect_tenant(tenant_name: str)`: Connects to a tenant and turns into SQL connection.

## Configuration

To use the SDK, generate an API key from the Fortress dashboard to initialize the client. Also, provide the organization ID, which is available under the API Keys page on the platform website.

## License

This SDK is licensed under the MIT License.

## Support

If you have any questions or need help, don't hesitate to get in touch with our support team at founders@fortress.build.
package-desafio 0.0.1
My short description
Requires Python: >=3.8

# package_desafio

Description. 
The package package_desafio is used to:
	- Processamento:
	- CorrespondÃªncia de histograma
	- SemelhanÃ§a estrutural
	- Redimensionar imagem
UtilitÃ¡rios:
	- Ler imagem
	- Salvar imagem
	- Imagem plotada
	- Resultado do grÃ¡fico
	- Plotar histograma

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_desafio

```bash
pip install package_desafio
```

## Usage

```python
from package_name.module1_name import file1_name
file1_name.my_function()
```

## Author
Leonardo Durante Pereira

## License
[MIT](https://choosealicense.com/licenses/mit/)
payme-drf 1.0.0
payme-drf
Requires Python: >=3.5

### Requirements
````
pip install django
pip install djangorestframework
pip install payme-drf 
pip install requests

# supported versions
python 3.5 +
django 2 +
djangorestframework 3.7 +
payme-drf 0.01 +
````

**settings.py**

```python
PAYME_SETTINGS = {
    "KASSA_ID": "",
    "SECRET_KEY": "",
    "INTEGRATION_INTEND": "" # either web or mobile
}

INSTALLED_APPS = [
    ...
    'rest_framework',
    'payme',
    ...
]
```

```
python manage.py migrate
```

### Create payme user
```python
python manage.py create_payme_user
```

### view.py

```python
from payme.methods.merchant.validation_classes import BaseMerchantValidationClass
from payme.methods.merchant.views import BaseMerchantAPIView

class MerchantValidationClass(BaseMerchantValidationClass):
    """
    MerchantValidationClass implements abstract methods from BaseMerchantValidationClass
    to handle specific payment validation logic.

    Exceptions Handled:
        - OrderNotFoundException: Raised when the order is not found.
        - InvalidAmountException: Raised when the transaction amount is invalid.
    """

    def check_order(self, amount, account, **kwargs):
        """Validates the existence and correctness of the order."""
        ...

    def successful_payment(self, params, *args, **kwargs):
        """Processes actions for a successful payment."""
        ...

    def cancel_payment(self, params, *args, **kwargs):
        """Processes actions for canceling a payment."""
        ...


class PaymeMerchantAPIView(BaseMerchantAPIView):
    """
    PaymeMerchantAPIView handles API requests for Payme merchant operations
    by using the MerchantValidationClass to validate transactions.
    """
    
    validation_class = MerchantValidationClass


```

### urls.py
```
from django.urls import path

urlpatterns = [
    path('payme/', PaymeMerchantAPIView.as_view())
]
```

### create_initialization.py
https://help.paycom.uz/uz/initsializatsiya-platezhey/otpravka-cheka-po-metodu-get

You can pass multiple items to ac_params to customize the payment request.

```python
from payme.methods.merchant.helpers import PaymeHelper
from decimal import Decimal

helper = PaymeHelper()
ac_params = {"order_id": "12221"}  # Here, your account parameters
url = helper.create_initialization(amount=Decimal(5000.00), ac_params=ac_params, return_url='https://example.com/success/')
print(url)
```