semvec/pypi-packages huggingface dataset:
BetterSleePy 0.1.3
Makes the Python sleep module easier a bit.

BetterSleePy
============

Makes the Python sleep module easier a bit.

Installation
============

::

   pip3 install bettersleepy

Usage
=====

I recommend importing it as wait to make it shorter.

Seconds:

::

   import bettersleepy as wait

   wait.sec(1)
   print("Waited 1 second.")

Minutes:

::

   import bettersleepy as wait

   wait.min(1)
   print("Waited 1 minute.")

Hours:

::

   import bettersleepy as wait

   wait.hour(1)
   print("Waited 1 hour.")
dna-kmer 0.0.1
DNA string to k-mers
Requires Python: >=3.7

## DNA string k-mer generator

Example:
```
def dna_token(dna_string, kmer, step)


dna = "ACTGTCGTACAGTGACCAGTGGTAGT"
    kmerized_dna = dna_token(dna, 5, 1)
```
ACTGTCGTACAGTGACCAGTGGTAGT  
ACTGT CTGTC TGTCG GTCGT TCGTA CGTAC GTACA TACAG ACAGT CAGTG AGTGA GTGAC TGACC GACCA ACCAG CCAGT CAGTG AGTGG GTGGT TGGTA GGTAG GTAGT
bitalign 0.4.0
Shift some bits and see how they line up best.
Requires Python: >=3.6

# BitAlign

*Given two strings of bits, find how to best align them so that they have the most bits in common.*

## Installation: `pip install bitalign`

## Examples

The following snippets show a conceptual string of 16 bits `A = "0001001011111111"`
needs to shifted to the right by 5 in order to best line up with
the string of 16 bits `B = "1111100010010111"`, at
which point they have 11 bits in common:

```
A =      0001001011111111
B = 1111100010010111
```

The only differences are how we decide to encode the bits into a list of integer.

```pycon
>>> from bitalign import *

>>> # We can can treat bytes objects like b'\x12\xff' as bit arrays
>>> A = bytes([0b0001_0010, 0b1111_1111])
>>> B = bytes([0b1111_1000, 0b1001_0111])
>>> bitalign_8_msb(A, B)
(5, 11)

>>> # Reversing the bits in each byte --> use "lsb" method instead
>>> A = bytes([0b0100_1000, 0b1111_1111])
>>> B = bytes([0b0001_1111, 0b1110_1001])
>>> bitalign_8_lsb(A, B)
(5, 11)

>>> # numpy arrays also work, just make sure they have an appropriate dtype.
>>> import numpy as np
>>> A = np.array([0b0001001011111111], dtype=np.uint16)
>>> B = np.array([0b1111100010010111], dtype=np.uint16)
>>> bitalign_16_msb(A, B)
(5, 11)

>>> # Reverse bits in each uint64 --> use "lsb" method instead
>>> A = np.array([0b1111111101001000], dtype=np.uint16)
>>> B = np.array([0b1110100100011111], dtype=np.uint16)
>>> bitalign_16_lsb(A, B)
(5, 11)

>>> # Works on general pairs of c-contiguous buffer objects
>>> # numpy.array, array.array, bytes, bytearray, memoryview, etc.
>>> import array
>>> A = array.array('H', [0b0001001011111111])
>>> B = array.array('H', [0b1111100010010111])
>>> bitalign_16_msb(A, B)
(5, 11)
```

## API

This `bitalign` package exposes 8 methods:

```python
from bitalign import (
    bitalign_8_lsb,
    bitalign_16_lsb,
    bitalign_32_lsb,
    bitalign_64_lsb,
    bitalign_8_msb,
    bitalign_16_msb,
    bitalign_32_msb,
    bitalign_64_msb,
)
```

```
    bitalign_#_?sb(arr1, arr2) --> (shift_by, num_common_bits);

    Return a tuple (x, y) such that when arr1 is shifted by x bits,
    the number of bits in common between arr1 and arr2 is y.

    Positive shifts indicate that arr1 needs to be shifted toward the back:

        arr1 =                    -->  0001001011111111  -->
        arr2 =                    1111100010010111
        gives (shift_by=5, num_common_bits=11)

    Negative shifts indicate that arr1 needs to be shifted toward the front:

        arr1 =          <--  1111100010010111  <--
        arr2 =                    0001001011111111
        gives (shift_by=-5, num_common_bits=11)

    The number (8, 16, 32, or 64) in the function name the number of bits
    that must be in each array entry.  'lsb'/'msb' indicates whether the
    0th bit of each logical bit-array is to be stored in the least or most
    significant bit of arr[0].

    If more than one shift is optimal, the negative-most shift is used.
    If there are no bits in common (i.e., all zeros with all ones),
    then (-num_bits, 0) is returned.
```
sqlalchemy-fields 0.5.0
SQLAlchemy fields
Requires Python: >=3.7
Keywords: django,orm,sqlalchemy

# SQLAlchemy Fields

<p align="center">
<a href="https://github.com/aminalaee/sqlalchemy-fields/actions">
    <img src="https://github.com/aminalaee/sqlalchemy-fields/workflows/Tests/badge.svg" alt="Build Status">
</a>
<a href="https://github.com/aminalaee/sqlalchemy-fields/actions">
    <img src="https://github.com/aminalaee/sqlalchemy-fields/workflows/Publish/badge.svg" alt="Publish Status">
</a>
<a href="https://codecov.io/gh/aminalaee/sqlalchemy-fields">
    <img src="https://codecov.io/gh/aminalaee/sqlalchemy-fields/branch/main/graph/badge.svg" alt="Coverage">
</a>
<a href="https://pypi.org/project/sqlalchemy-fields/">
    <img src="https://badge.fury.io/py/sqlalchemy-fields.svg" alt="Package version">
</a>
<a href="https://pypi.org/project/sqlalchemy-fields" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/sqlalchemy-fields.svg?color=%2334D058" alt="Supported Python versions">
</a>
</p>

---

**Documentation**: [https://aminalaee.dev/sqlalchemy-fields](https://aminalaee.dev/sqlalchemy-fields)

**Source Code**: [https://github.com/aminalaee/sqlalchemy-fields](https://github.com/aminalaee/sqlalchemy-fields)

---

**Table of Contents**

- [Installation](#installation)
- [Custom Types](#custom-types)

## Installation

```console
pip install sqlalchemy-fields
pip install 'sqlalchemy-fields[full]'
```

## Custom Types

- `EmailType`
- `FileType`
- `ImageType`
- `IPAddressType`
- `URLType`
- `UUIDType`

```python
from sqlalchemy import Column, Integer, create_engine
from sqlalchemy.orm import Session, declarative_base
from sqlalchemy_fields.types import IPAddressType


Base = declarative_base()
engine = create_engine("sqlite:///example.db")


class Example(Base):
    __tablename__ = "example"

    id = Column(Integer, primary_key=True)
    ip = Column(IPAddressType)


example = Example(ip="127.0.0.1")
with Session(engine) as session:
    session.add(example)
    session.commit()
    print(example.ip)
"""
IPv4Address("127.0.0.1")
"""
```

## Storages

- `FileSystemStorage`
- `S3Storage`
qurix-package-template 1.0.0
qurix Package Template for Python
Requires Python: >=3.10, <4
Keywords: python

# Python package template

Template for Python packages for qurix Technology.

## Structure

A normal Python package will start with the namespace `qurix` as in this sample package. A sample structure is as follows:

```text
.
├── LICENCE
├── Makefile
├── README.md
├── qurix
│   └── <domain>
│       └── <module-organization-level>
│           ├── __init__.py
│           ├── __version__.py
│           └── <module>
├── requirements.txt
├── setup.py
└── tests
    ├── __init__.py
    └── test_client.py
```

## Versioning and release

Package versions will be identified according to [semantic versioning](https://semver.org/lang/en). The release process will deploy in both [Test PyPI](https://test.pypi.org/) and [PyPI](https://pypi.org/).

```mermaid
gitGraph
    commit
    branch staging
    branch feature/some-feature
    checkout feature/some-feature
    commit
    commit
    checkout staging
    merge feature/some-feature id: "Test PyPI"
    checkout main
    merge staging id: "Release in PyPI" tag: "v0.1.0"
    branch fix/some-fix
    checkout fix/some-fix
    commit
    checkout staging
    merge fix/some-fix id: "Test PyPI again"
    checkout main
    merge staging id: "New fix release in PyPI" tag: "v0.1.1"
```

## Deployment

Using Github Actions. See `.github/worfklows/`
PythonHuff 1.0.4
Huffman compression and decompression (Pure Python implementation)
Keywords: huffman,compression,decompression,algorithm

<p><span><span style="font-family:Verdana, Arial, Helvetica, sans-serif;line-height:19px;text-indent:26px;"><span style="font-size:14px;"><span style="font-family:Arial;line-height:26px;"><br></span></span></span></span></p>

### Usage
```python
from pyhuff import compress
text=b'A'*100
print(text) # b'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
comp=compress(text)
print(comp) # b'\x041\x00A\x010\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
```

Or use:
```commandline
pyhuff compress in.txt out.bin
pyhuff decompress out.bin dec.txt
```

### Disadvantages

1. The code is very messy because of compatibility of Python 2 (And I don't know the six package).
2. Decompression is very slow.
3. Not very good, sometimes the compressed file is larger than the original one.
login-gmail-selenium 1.2.0
A python package for login google by selenium

# **Google login with Selenium**

## Overview
This is a small package to log in to Google account with Selenium. After signin,
Chrome profile of that user will be create and stored. With Chrome profile you can do so many automatic things
with it.

Always active extension is installed by default. 
To store the profile with minimum size on disk, WorkerService cache, OptimizationGuide and cache is cleared when quitting driver.

>This has been developed for testing purposes only.
> Any action you take using this script is strictly at your own risk. 
> I will not be liable for any losses or damages you face using this script.

## Requirement
Must have Python <= 3.9 and Google Chrome installed.

## Usage
```pycon
pip install login_gmail_selenium
```
And then on example.py
```pycon
from login_gmail_selenium.util.profiles.profile import GoogleProfile
from login_gmail_selenium.util.profiles.google_profile import Profile

profile = GoogleProfile(email, password, backup_email)
# profile = Profile(name_profile) If don't need login to google but save driver
# To allow downloads add insecure=True to ChromeProfile
# To handle false email with custom functions, use param false_email_callback
driver = profile.retrieve_driver()
profile.start()
# Do whatever with driver afterward
driver.get('https://www.google.com/')
driver.quit()
...
```
1. Add folder extension/ if you want custom extensions for Chrome (.crx or .zip)
2. The temp folder's content will be generated by the library.
Your folder should look like this
```cvs
/temp
    /profiles
        /profile1
        /profile2
    /blank_profiles
        /blank_profiles1
        /blank_profiles2
/extension
    /custom_extension
        extension1.zip
        extension2.crx
example.py
```

## License
Copyright Â© 2022 [MoliGroup](https://moligroup.co/), [MIT license](./LICENSE). 
For an improvement or a bug please feel free to open a PR

For work information please contact ngminhhoang1412@gmail.com or 
[LinkedIn](https://www.linkedin.com/in/ho%C3%A0ng-nguy%E1%BB%85n-1b13481b7/).