semvec/pypi-packages huggingface dataset:
rtnf 1.0.0
Royal Thai Navy string format manipulation tools
License: MIT
Requires Python: >=3.8
Keywords: rtnf royal thai navy string format

<div align="center">
<img src="https://raw.githubusercontent.com/anuwatavis/royal-thai-navy-string-format/main/docs/cover.png"/>
</div>

# RTNF (Royal Thai Navy String Format)
RTNF is a Python package that provides functions to convert datetime objects to the datetime and time formats used by the Royal Thai Navy.

# Installation
You can install RTNF using pip:
```bash
pip install rtnf
```

# Usage
```python
from datetime import datetime
from rtnf import to_rnt_date, to_rnt_time

# Convert datetime to Royal Thai Navy date format
current_datetime = datetime.now()
rnt_date = to_rnt_date(current_datetime)
print(rnt_date)  # Output: DDMMYYYY

# Convert datetime to Royal Thai Navy time format
current_datetime = datetime.now()
rnt_time = to_rnt_time(current_datetime)
print(rnt_time)  # Output: HHMM
```

# Contributing
Contributions to RTNF are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the GitHub repository.

# License
RTNF is licensed under the MIT License.
permaswap 0.1.3
Python wrappers for permaswap
License: MIT

# permaswap.py
python sdk for permaswap

# install

```python
pip install permaswap
```

# usage

1. perpare everpay account

```python
import everpay
api_server = 'https://api-dev.everpay.io'

# eth account
pk = ''
signer = everpay.ETHSigner(pk)

# or ar account
#signer = everpay.ARSigner('arweave-keyfile-xxx.json')
account = everpay.Account(api_server, signer)
```

2. init permaswap

```python
router_host = 'wss://router0-dev.permaswap.network/'
swap = permaswap.Swap(router_host, account)
```

3. query order

```python
import permaswap
# get_order('token_in', 'token_out', 'amount_in')
# sell 1 tar for tusdc
order = swap.get_order('tAR', 'tUSDC', 10**12)
print(order)
```

4. place order

```python
result = swap.place_order(order)
print(result)
```