semvec/pypi-packages huggingface dataset:
perf-py 0.0.1a4
Understanding performance characteristics of common python constructs

# perf-py

A library that personally helps me understand the performance of common python code (and in turn, it might help you understand it too!)

![Python package](https://github.com/mr-uuid/perfpy/workflows/Python%20package/badge.svg)

# Todo
- [ ] Does mapping over an iterator perform better than using generators?
- [ ] Does chunking a generator affect performance?
- [ ] Does composing generators affect performance? 
- [x] Make a table of the performance of each function ...
    - [x] Open this up in a notebook!

# Personal Reminders
- To publish to pypi w/o an alpha version, push a commit with `Publish To PYPI` in its commit message.


## TODO

# Chunking and garbage collecting simultaneously 

l = list(range(100))

batchsize = 11

while len(l) > 0:
    print(l)
    print(l[:batchsize])
    del l[:batchsize]
WebSiteCloner 0.0.1
This package implement a Web Site Cloner and his HTTP server to launch it.
Requires Python: >=3.6

# WebSiteCloner

## Description
This package implement a Web Site Cloner and his HTTP server to launch it.

## Requirements
This package require :
 - python3
 - python3 Standard Library

## Installation
```bash
pip install WebSiteCloner
```

## Launcher

 - Command line:
 ```bash
 WebSiteCloner -r -d ClonedWebSites -D "localhost:8000" -f "logs.log" -l DEBUG -S http "https://www.google.com/"
 WebClonerServer -f "logs.log" -S Apache -I "172.16.89.53" -H Set-Cookie:1278=1278,Set-Cookie:a=a,Test:haha -P 8000 "www.google.com"
 ```

 - Python:
 ```python
 import WebSiteCloner
 copy: WebSiteCloner.WebSiteCloner = WebSiteCloner.WebSiteCloner(
     "https://www.google.com/",
     recursive=True,
     directory="ClonedWebSites",
     replace_domain="localhost:8000",
     replace_scheme="http",
     loglevel=10,
     logfile="logs.log",
 )
 copy.launch()
 ```

## Links
 - [Github Page](https://github.com/mauricelambert/WebSiteCloner)
 - [Code Documentation WebSiteCloner](https://mauricelambert.github.io/info/python/security/WebSiteCloner/WebSiteCloner.html)
 - [Code Documentation HTTPLogger](https://mauricelambert.github.io/info/python/security/WebSiteCloner/HTTPLogger.html)
 - [Download as python executable](https://mauricelambert.github.io/info/python/security/WebSiteCloner.pyz)
 - [Pypi page](https://pypi.org/project/WebSiteCloner/)

## Licence
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).
AX3-Mercadopago 0.3.7
A Django app to add support for Mercadopago payments

# AX3 Mercadopago

AX3 Mercadopago A Django app to add support for Mercadopago payments.

## Installation

AX3 Mercadopago is easy to install from the PyPI package:

    $ pip install ax3-mercadopago

After installing the package, the project settings need to be configured.

Add ``ax3_mercadopago`` to your ``INSTALLED_APPS``

```python
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # ax3_mercadopago app can be in any position in the INSTALLED_APPS list.
    'ax3_mercadopago',
]
```

## Configuration

Add mercadopago settings

```python
# app/settings.py

MERCADOPAGO_REFERENCE_PREFIX = ''  # Prefix for Mercadopago external reference 
MERCADOPAGO_PAYMENT_MODEL = ''  # Path to payment model
MERCADOPAGO_PAID_USECASE = ''  # Path to use case for paid payments
MERCADOPAGO_REJECTED_USECASE = ''  # Path to use case for rejected payments

# For Marketplace
# https://www.mercadopago.com.co/developers/es/guides/online-payments/marketplace/checkout-pro/introduction
MERCADOPAGO_MARKETPLACE_SELLER = True
MERCADOPAGO_MARKETPLACE_APP_ID = ''
MERCADOPAGO_MARKETPLACE_REDIRECT_URI = ''  
```

Set ax3_mercadopago in app urls

```python
# app/urls.py
urlpatterns = [
    path('admin/', admin.site.urls),

    # Add this line
    path('mercadopago/', include('ax3_mercadopago.urls', namespace='mercadopago')),
]
```

Use ``PaymentModelMixin`` in your payment model

```python
class Payment(PaymentModelMixin):
```

## Utils

### Get seller token request uri, on shell_plus
```python
from ax3_mercadopago.api import AX3Client

mp = AX3Client()
mp.marketplace_tokens.get_auth_uri()
# response
https://auth.mercadopago.com.co/authorization?client_id=&redirect_uri=https%3A%2F%2Fclientes-staging.takami.co&response_type=code&platform_id=mp
```

### To create Seller Token, on shell_plus use
```python
from app.mercadopago import create_seller_token

brand = Brand.objects.first()
create_seller_token(code='SELLER-CODE', brand=brand)
```


## Releasing a new version

Make sure you increase the version number and create a git tag:

```
$ python3 -m pip install --user --upgrade setuptools wheel twine
$ ./release.sh
```
libhomeseer 1.3.0
Python3 async library for interacting with HomeSeer HS3 and HS4 via JSON and ASCII

# libhomeseer

## Python3 async library for interacting with HomeSeer HS3 and HS4 via JSON and ASCII

*Requirements:* python3, asyncio, aiohttp  
*Deprecates*: pyhs3

Install libhomeseer with `python3 -m pip install libhomeseer`.

See `example.py` in the GitHub repo for basic usage instructions.

Provides the foundation for the Home Assistant custom integration https://github.com/marthoc/homeseer.
arn 0.1.5
A Python library for parsing AWS ARNs
Requires Python: >=3.6

# arn

A Python library for parsing [AWS ARNs](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).

## Installation
To install, just run
```bash
pip install arn
```
or add the library to your `setup.py` / `requirements.txt`.

## Usage
Given an ARN for a particular AWS resource, parse it with the appropriate class:
```python
from arn.elbv2 import TargetGroupArn

target_group_arn_str = "arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup/foo-bar/abc123"
target_group_arn = TargetGroupArn(target_group_arn_str)

# use the ARN instance's __str__ to format the ARN back into a string 
assert str(target_group_arn) == target_group_arn_str

# common attributes
assert target_group_arn.partition == "aws"
assert target_group_arn.service == "elasticloadbalancing"
assert target_group_arn.region == "us-east-1"
assert target_group_arn.account == "123456789012"

# attributes specific to the type of AWS resource
assert target_group_arn.name == "foo-bar"
assert target_group_arn.id == "abc123"
```