semvec/pypi-packages huggingface dataset:
earthworm-shubhamt619 0.0.5
Boilerplate for Publishing Python Packages.
Requires Python: >=2.7

# e@rthw0rm
##### A python package by Shubham Thakur

Hello All !

This is the Second release of my python package.
Basically this is like a boilerplate for creating your own python package.

### Can it tell me my future ?
##### --> Can you ?

### Will it help me invest in the right cryptocurrency ?
##### --> No

### Okay Then, What it does ?
##### --> Basically, Nothing :P ,  You can clone this repo and simply edit it and publish it to either test PyPi or Live PyPi.

### Wait, It does Nothing at all ?
##### --> It can do a few things allright. See the examples below.

#### Note : Make sure you Install and Import this package first.
##### Install Command - `pip install earthworm-shubhamt619`
##### Import like this `import earthworm`
##### Example 1 : Saying Hello
###### To say hello to a person, all you have to do is call `sayHello()` like,
`earthworm.sayHello("Shubham")`
Output is 
`Hello there Shubham !`

##### Example 2 : Saying Hi
###### To say Hi to a person, all you have to do is call `sayHi()` like,
`earthworm.sayHi("Shubham")`
Output is 
`Hi there Shubham !`


##### Example 3 : Saying PipPip
###### To say PipPip to a person, all you have to do is call `sayPipPip()` like,
`earthworm.sayPipPip("Shubham")`
Output is 
`PipPip Shubham !`

## Upload my package
#### Okay, I have made changes to this repo, How to upload it to PyPi ?
-> 1] Make account on [https://test.pypi.org] and [https://pypi.org]

-> 2] Create a file in your $HOME with name `.pypirc` with the following.

>[distutils]
>    index-servers=
>        pypi
>        testpypi
>
>    [pypi]
>    username: <YOUR_USERNAME>
>    password: <YOUR_PASSWORD>
>
>    [testpypi]
>    repository: https://test.pypi.org/legacy/
>    username: <YOUR_USERNAME>
>    password: <YOUR_PASSWORD>

##### 3] Then install required packages - *setuptools* and *wheel* 
`sudo python3 -m pip install --user --upgrade setuptools wheel`
#### For Python 2.*
`sudo python -m pip install --user --upgrade setuptools wheel`

##### 4]  Go to the root directory of your package (Where `setup.py` exists) and run the following command.
>`sudo python3 setup.py sdist bdist_wheel`

This will generate a `dist/` folder for uploading to `test pypi` or `pypi`.

##### 5]  Install twine
>`sudo python3 -m pip install --user --upgrade twine`

Twine helps you upload your packages to `test pypi` and `pypi` very easily.

### Final Step
##### 6]  Upload your package ! ! !
For `test pypi`
>`sudo python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*`

For PyPi
> `sudo python3 -m twine upload dist/*` 

##### Hey, How can i update my package ?
-> The same way you uploaded the package. First Make version change in `setup.py` and increment the version.
> e.g. 0.0.1 -> 0.0.2

After that, repeat step 4 and 6 to generate `dist/` and reupload newer version of your package.
base-api-connector 0.3.1.1
Generic Connector so you can easily create simple and readable classes for accessing APIs.

# Base API Connector

Helps create a simple API Connector where all you have to do is define the resources and possible commands.

## Instructions

### Using the Module

First import the GenericAPIConnector class:

```
from base_api_connector import GenericAPIConnector
```

Then, define a base_api_url and resource fields like this:

```
class ImplementedAPIConnector(GenericAPIConnector):
    base_api_url = 'http://127.0.0.1:8000/notes-backend/'
    reports = APIResource(('create', 'retrieve', 'update'))
    users = APIResource('all')
```
That will generate the following attributes when you use the class:

```
conn = ImplementedAPIConnector()

conn.reports.create(data)
conn.reports.retrieve(pk)
conn.reports update(pk, data)

conn.users.list()
conn.users.create(data)
conn.users.retrieve(pk)
conn.users.update(pk, data)
conn.users.delete(pk)
```

### Asyncio

You can tell tell your resource fields that they should be accessed with asyncio per default:
```
class ImplementedAPIConnector(GenericAPIConnector):
    # ...
    users = APIResource('all', is_async=True)
```
and then use it in an async metho as follows:
```
async def create_user(user):
    r = await conn.user.create(user)
    data = await r.json()
    # ...
```
Alternatively, you can change switch to async in-line as well:
```
    # ...
    r = await conn.reports(is_async=True).list()
    # ...
```
or the other way around:
```
r = conn.user(is_async=False).list()
```

### Using The Returned Object

The methods of GenericAPIConnector return a regular Response object from the requests module. See requests [Documentation for Response](https://2.python-requests.org/en/latest/api/#requests.Response) for more details.


### Using AsDictObject (WIP)

If you want to define how a resource looks only once, import AsDictObject:
```
import datetime
from base_api_connecotr import AsDictObject

class CreateUsersResourceObject(AsDictObject):
    name = None  # None will not pass the field in the request
    created = datetime.datetime.now  # use methods to set defaults like this
    created_for_app = 'readme_example'
```

And then use it like this:
```
user = CreateUsersResourceObject():
user.name = 'readme user'
conn.users.create(user)
```
petrovna 1.0.2
Validatee bic, inn, kpp, ogrn, ogrnip, corr. account, account number, snils

# petrovna

Библиотека для валидации БИК, ИНН, КПП, ОГРН, ОГРНИП, Корр. счета, Номера р/с, СНИЛС

![coverage](https://git.appkode.ru/mozen/mz_validators/badges/master/coverage.svg?job=test)


Установка
```bash
pip install petrovna
```

```python
import petrovna

bic_is_valid: bool = petrovna.validate_bic('<БИК>')
inn_is_valid: bool  = petrovna.validate_inn('<ИНН>')
kpp_is_valid: bool  = petrovna.validate_kpp('<КПП>')
corr_account_is_valid: bool  = petrovna.validate_ks('<КОРРЕСПОНДЕНТСКИЙ_СЧЕТ>', '<БИК>')
ogrn_is_valid: bool  = petrovna.validate_ogrn('<ОГРН>')
ogrnip_is_valid: bool  = petrovna.validate_ogrnip('<ОГРНИП>')
account_number_is_valid: bool  = petrovna.validate_rs('<НОМЕР_Р/С>', '<БИК>')
snils_is_valid: bool  = petrovna.validate_snils('<СНИЛС>')

# Для возврата валидатором списка ошибок, помимо признака валидности, следует указать аргумент 'errors=True'
valid, error = petrovna.validate_bic('<БИК>', errors=True)
```