semvec/pypi-packages huggingface dataset:
pinksale-python 0.1.7
The unofficial Python client for the Pinksale.

![](https://raw.githubusercontent.com/hkey0/pinksale-python/main/images/pinksale.jpg)

# pinksale-python

The unofficial Python client for [Pinksale](https://pinksale.finance).

# Functionalty

- A Python wrapper for any presale contract.
- Easy access to the necessary data about the presale.
- Supports BSC and ETH for now.


# Installation 

```
pip install pinksale-python
```

#### Supports
- Binance Smart Chain
    - Supports ETH (BNB)

- Ethereum 
    - Supports ETH (ETH)


# Donation
You can support the project by donating :)\
for ETH/BSC/ARBI/AVAX/POLYGON chains: `0x09a27f3647aD2Fd081e515F9D2d785292Fba38C1`
## Usage/Examples

#### Write functions

To make a contribution, you only need to enter the amount in ether:
```python
from pinksale.pinksale import Pinksale


client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", "your_private_key", provider="https://bsc-dataseed1.ninicoin.io")
tx_receipt = client.contribute(1) # Contribute with 1 BNB
```

Emergency withdraw:
```py
client.emergency_withdraw()
```

You can claim your tokens when pool finalizes:
```py
client.claim()
```

#### View Functions

A simple call example for view functions. Contract address is your presale address.
```python
from pinksale.pinksale import Pinksale


client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", provider="https://bsc-dataseed1.ninicoin.io")
contributors = client.get_all_contributors()
>> ['0x0080b399E21475a7ca6d6cf9081C983BE51Bdead', '0xA8617881a6914b59000f279e4425F0E8E84BeBa5', ...]
```

You can get Pool Details: Total raised, Details (image, links, etc.), KYC
```python
client.get_pool_details()
>> {'total_raised': 120222334187259780175, 'details': {'a': 'https://photos.pinksale.finance/file/pinksale-logo-upload/1696947582061-36b70f470f30f10fb3055f7c2a32ca88.jpg', 'b': 'https://zhaodavinci.com/', 'd': 'https://twitter.com/Zhao_DaVinci', 'e': 'https://github.com/AnalytixAudit/Solidity/blob/main/20231009_AnalytixAudit_ZhaoDaVinc_VINCI_Audit.pdf', 'f': 'https://t.me/ZhaoDaVinci', 'h': "♠️ Hottest Meta of the Month ♠️\nWhy did CZ tokenize the Mona Lisa? To blend Da Vinci's genius with crypto magic, creating a masterpiece of digital value ♠️ Top Trending ♠️ Audited Contract ♠️ Top Tier Listings ♠️ CMC & CG Fast track ♠️ Top Incubator ♠️ Based Team ♠️ Buy Back & Burn ♠️ 100x Target ♠️", 's': 'https://youtu.be/HYnUI5dDyeo'}, 'kyc': {'a': '', 'b': 'https://app.analytixaudit.com/zhao-da-vinc', 'c': '', 'd': '', 'e': '', 'f': ''}}
```

Also pool settings: "token", "currency", "start_time", "end_time", "soft_cap", "total_selling_tokens", "max_contribution"

```py
client.get_pool_settings()
```

Get current rate returns amount of tokens for 1 bnb.
```py
client.get_current_rate()
```

Get all contributor addresses:
```py
client.get_all_contributors()
```

Get contribution amount of an address:
```py
address = ""
client.get_contribution_of(address)
```


# Changelog

_0.1.0_
  - Support for BSC (BNB) and ETH (ETH)
dp-ai-data-harmonization 1.0.2
Create data quality rules and apply them to datasets.
Requires Python: >=3.8

# Data Harmonization Package

This package provides functionality for file merging and data harmonization using various algorithms and AI models.
It allows you to merge CSV files and harmonize data based on a sample-based approach using GPT-based models.

## Installation

You can install the package from PyPI using pip:

	pip install data-harmonization-ai


## Usage

### DataHarmonizer Class

The `DataHarmonizer` class provides the capability to merge CSV files based on different options.
It supports the following merge options:

- ChatGPT
- GPT4
- Fuzzy Wuzzy
- Rapidfuzz
- Jaro Winkler
- JW Layered with ChatGPT
- JW Layered with GPT4
- FW Layered with GPT4
- Recursive Data Harmonization

Example usage:

from utility import DataHarmonizer

# Create an instance of DataHarmonizer
key='openai-key'
harmonizer = DataHarmonizer(key,'file1.csv', 'file2.csv', 'ChatGPT')

# Merge the files based on the specified option
result = harmonizer.merge_files()

print(result)

### DataHarmonizationWithSuggestion Class

# The DataHarmonizationWithSuggestion class allows you to harmonize data using a sample-based approach.
 It takes a sample file and two data files as input.

Example usage:
from utility import DataHarmonizationWithSuggestion

# Create an instance of DataHarmonizationWithSuggestion

key = 'openai-key'
harmonizer = DataHarmonizationWithSuggestion(key, "sample_harmonized_data.csv", "file1.csv", "file2.csv")

# Harmonize the data based on the sample
	result = harmonizer.harmonize_data()

print(result)
pinksale 0.1.0
The unofficial Python client for the Pinksale.

![](https://raw.githubusercontent.com/hkey0/pinksale-python/main/images/pinksale.jpg)

# pinksale-python

The unofficial Python client for [Pinksale](https://pinksale.finance).

# Functionalty

- A Python wrapper for any presale contract.
- Easy access to the necessary data about the presale.
- Supports BSC and ETH for now.


# Installation 

```
pip install pinksale-python
```

#### Supports
- Binance Smart Chain
    - Supports ETH (BNB)

- Ethereum 
    - Supports ETH (ETH)


# Donation
You can support the project by donating :)\
for ETH/BSC/ARBI/AVAX/POLYGON chains: `0x09a27f3647aD2Fd081e515F9D2d785292Fba38C1`
## Usage/Examples

#### Write functions

To make a contribution, you only need to enter the amount in ether:
```python
from pinksale.pinksale import Pinksale


client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", "your_private_key", provider="https://bsc-dataseed1.ninicoin.io")
tx_receipt = client.contribute(1) # Contribute with 1 BNB
```

Emergency withdraw:
```py
client.emergency_withdraw()
```

You can claim your tokens when pool finalizes:
```py
client.claim()
```

#### View Functions

A simple call example for view functions. Contract address is your presale address.
```python
from pinksale.pinksale import Pinksale


client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", provider="https://bsc-dataseed1.ninicoin.io")
contributors = client.get_all_contributors()
>> ['0x0080b399E21475a7ca6d6cf9081C983BE51Bdead', '0xA8617881a6914b59000f279e4425F0E8E84BeBa5', ...]
```

You can get Pool Details: Total raised, Details (image, links, etc.), KYC
```python
client.get_pool_details()
>> {'total_raised': 120222334187259780175, 'details': {'a': 'https://photos.pinksale.finance/file/pinksale-logo-upload/1696947582061-36b70f470f30f10fb3055f7c2a32ca88.jpg', 'b': 'https://zhaodavinci.com/', 'd': 'https://twitter.com/Zhao_DaVinci', 'e': 'https://github.com/AnalytixAudit/Solidity/blob/main/20231009_AnalytixAudit_ZhaoDaVinc_VINCI_Audit.pdf', 'f': 'https://t.me/ZhaoDaVinci', 'h': "♠️ Hottest Meta of the Month ♠️\nWhy did CZ tokenize the Mona Lisa? To blend Da Vinci's genius with crypto magic, creating a masterpiece of digital value ♠️ Top Trending ♠️ Audited Contract ♠️ Top Tier Listings ♠️ CMC & CG Fast track ♠️ Top Incubator ♠️ Based Team ♠️ Buy Back & Burn ♠️ 100x Target ♠️", 's': 'https://youtu.be/HYnUI5dDyeo'}, 'kyc': {'a': '', 'b': 'https://app.analytixaudit.com/zhao-da-vinc', 'c': '', 'd': '', 'e': '', 'f': ''}}
```

Also pool settings: "token", "currency", "start_time", "end_time", "soft_cap", "total_selling_tokens", "max_contribution"

```py
client.get_pool_settings()
```

Get current rate returns amount of tokens for 1 bnb.
```py
client.get_current_rate()
```

Get all contributor addresses:
```py
client.get_all_contributors()
```

Get contribution amount of an address:
```py
address = ""
client.get_contribution_of(address)
```


# Changelog

_0.1.0_
  - Support for BSC (BNB) and ETH (ETH)
prindent 1.0.1
Print with auto indentation
Requires Python: >=3.7

# prindent
Python module to print with automatic indentation

Sometimes it is useful to print with indentation to better visualize the data. This is particularly true when multiple `for` loops and `if` statements are nested. `prindent` can automatically indent everything for you.

### Usage

```python
from prindent import prindent

prindent('first loop')
for i in range(2):
    prindent('i:', i)
    prindent('second loop')
    for j in range(2):
        prindent('j:', j)
        if j == 1:
            prindent('j=1')

# first loop
#     i: 0
#     second loop
#         j: 0
#         j: 1
#             j=1
#     i: 1
#     second loop
#         j: 0
#         j: 1
#             j=1
```

`prindent` supports custom indentation strings:
```python
if True:
    if True:
        for i in range(2):
            prindent('Custom indent', indent='---> ')

# ---> ---> ---> Custom indent
# ---> ---> ---> Custom indent
```

`prindent` handles multiple lines:
```python
if True:
    prindent('String\nwith\nnewline')

#     String
#     with
#     newline
```

`prindent` accepts multiple `args` and `kwargs` just like `print()`:
```python
if True:
    prindent('first', 'second', end='$')

#     first second$
```