Metadata-Version: 2.1
Name: hive-nektar
Version: 0.9.2
Summary: Nektar, a Python package to access Hive API.
Home-page: https://github.com/rmaniego/nektar
Author: Rodney Maniego Jr.
Author-email: rodney.maniegojr@gmail.com
License: MIT
Download-URL: https://github.com/rmaniego/nektar/archive/v1.0.tar.gz
Keywords: nektar,hive,blockchain,api
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

![](/resources/banner.png)

# nektar
nektar allows communication to the Hive blockchain using the Hive API.

## Official Release
**nektar** can now be used on your Python projects through PyPi by running pip command on a Python-ready environment.

`pip install hive-nektar --upgrade`

Current version is 0.9.\*, but more updates are coming soon.

This is compatible with Python 3.9 or later.

## WARNINGS:
 - This package is still under development, some future breakage is inevatable.
 - Some AppBase API methods are still under development and subject to change.
 - Do NOT copy your private keys in your codes!

## Features
**1.** Lightweight package for small Hive dApps or projects. <br>
**2.** Readily available methods using the `nektar.Waggle()` class. <br>
**3.** Highly costumizable via `appbase` module. <br>

## Nektar Module
**Basic Usage**
```python
from nektar import Waggle

username = ""
hive = Waggle(username)
hive.append_wif("5*")

communities = hive.communities(limit=1000, sorting="subs")
for community in communities:
    print(community["name"] + "\t" + community["title"])


communities = {}
sortings = ["new", "rank", "subs"]
for sorting in sortings:
    for community in hive.communities(limit=1000, sorting=sorting):
        communities.update({community["name"]: community})

author = ""
permlink = ""
weight = 10000

hive.vote(author, permlink, weight, synchronous=True, strict=False)
```

## AppBase Module
**Basic Usage**
```python
from appbase import AppBase

hive = AppBase(username)
hive.append_wif("5*")

props = hive.api("database").get_dynamic_global_properties({})

username = "nektar"
account = hive.api("condenser").get_accounts([[self.username]])

```

