semvec/pypi-packages huggingface dataset:
jianshou-client 1.0.1
Jianshou Client APIs
Requires Python: >=3

# jianshou-client
Jianshou Client APIs

```bash
# Install a virtual environment
pipenv shell
```
# Install the dependencies in setup.py
`pipenv install -e .`

## Installation
```bash
pip install jianshou-client
```

## Usage
Import the package
```python
from jianshou import JianshouClient
```

Create an instance of `jianshou-client`
```python
from dotenv import load_dotenv
from jianshou import JianshouClient
# Create a `.env` file to load environmental variables
load_dotenv()

# Use the environmental variables or read them from inputs
JIANSHOU_EMAIL = os.environ.get('JIANSHOU_EMAIL') or input("Jianshou email: ")
JIANSHOU_PASSWD = os.environ.get('JIANSHOU_PASSWD') or input("Jianshou password: ")
jianshou_client = JianshouClient(JIANSHOU_EMAIL, JIANSHOU_PASSWD)
```

Upload an item for sale
```python
item = jianshou_client.upload(name="new item", intro='testing', content="testing")
hashid = item.hashid
```

Delete an item
```python
hashid = "123456"
item = jianshou_client.delete(hashid)
```

Update item base info and pay info
```python
hashid = "123456"
updated_item = jianshou_client.update_baseinfo(hashid, new_name="new_item_updated", new_intro="intro_updated")
updated_item = jianshou_client.update_payinfo(hashid, new_price=111, new_stock=111, new_content="hello")
```

Generate a html snippet to be embeded in base info content or pay info content
```python
# A paragraph of text followed by external links and images.
html_snippet = gen_typical_html_snippet(
	"one paragraph", 
	other_links=["https://www.google.com"],
	image_links=["https://yourdomain.com/path/to/directlink/photo.jpg"]
)
```
python-thepeer 1.1.0
Python Wrapper for thePeer payment infrastructure.
Keywords: python,thepeer,payment,sdk

# ThePeer Python Sdk
python SDK for ThePeer payment infrastructure


# Reference Official Documentation
https://docs.thepeer.co/

# Instantiate ThePeer api object
```python
from ThePeer.client import Client

client = Client(api_key="YOUR PRIVATE KEY")

"""
returns all indexed users for your business
"""
client.get_users()


"""
Index/create users
data = {"name" : "", "identifier" : "", "email" : ""} 
"""
client.create_user(data=data)


"""
Update indexed user
the method requires two arguments, the user's ReferenceId and the user's new identifier
referenceId = ""
data = {"identifier" : ""}
"""
client.update_user(referenceId, data=data)


"""
Delete indexed user
this methods allows you to delete an indexed user on your business profile
referenceId = ""
"""
client.delete_user(referenceId)

# Transactions

"""
returns all the details of a particuar transaction
transactionId = ""
"""
client.get_transaction(transactionId)


"""
This method refunds a specific transaction back to its origin (business & user of that business)
it requires two arguments by default transactionId and refund details, alternatively, you can
pass in only the transactionId and we'd use the default refund data i.e data = {"reason": "possible fraud"}
"""
client.refund_transaction(transactionId)


"""
This returns all linked accounts associated with a user, It returns the user's account details along with he business the account resides on.
pass in the linkId to identify and get user's links
"""
client.get_user_links(linkId)


"""
Similarly the method returns a linked account details by passing its ID.
"""
client.get_user_link(linkId)


"""
This method enables you to charge your user's linked account
where data = {
    "amount": ,
    "remark": ""
}
"""
client.charge(linkId, data)


"""
This method allows you simulate receiving money

data = {
  "amount": ,
  "currency": "",
  "user_reference": ""
}

"""

```