Performance and quality analytics on Hive Posts.
Project description
scrutineer
Hive Post performance and quality analytics.
Installation
$ pip install hive-scrutineer
Supported Python versions 3.10+.
Blockchain Support
Limited support to Hive Blockchain HF27.
Basic usage
from scrutineer import Scrutineer
analyzer = Scrutineer()
analyzer.set_weights()
analysis = analyzer.analyze("author", "post-permlink")
Customizations
import json
from nektar import Waggle
from scrutineer import Scrutineer
hive = Waggle("username")
analyzer = Scrutineer(minimum_score=10, max_emojis=0, deep=True, full=False)
analyzer.set_weights(title=5, body=6, emojis=4, images=2, tagging=3, tags=1)
for blog in hive.blogs(limit=5)
analysis = analyzer.analyze(blog)
print(json.dumps(analysis, indent=2))
Keywords
import json
from nektar import Waggle
from scrutineer import get_keywords, get_bigrams
hive = Waggle("username")
for blog in hive.blogs(limit=5)
keywords = get_keywords(blog["body"])
print("\nget_keywords" + json.dumps(keywords))
keywords = get_bigrams(blog["body"])
print("\nget_bigrams:" + json.dumps(keywords))
Performance
In version 1.3.0
, we've migrated to langdetect
to speed up Scrutineer.analyze()
by more than 300x versus version 1.2.*
!
MIN: 0.02782490011304617
AVG: 0.13722777900053187
MAX: 4.033556599984877
We've also seen a 70% import speed increase, in the said profiling.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hive-scrutineer-1.3.18.tar.gz
.
File metadata
- Download URL: hive-scrutineer-1.3.18.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754f6c695f0b9e35f5a629ddddec8b6c1e38b7cce2e6e1d1d30af2524c3a710d |
|
MD5 | 1b4eb6055a583e3a86d2e128c0bc64ee |
|
BLAKE2b-256 | ad9a72975df7c945b99ba9e9f1c6eb6a1e432d892972576ece4c6be7d0cbcd4b |
File details
Details for the file hive_scrutineer-1.3.18-py3-none-any.whl
.
File metadata
- Download URL: hive_scrutineer-1.3.18-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc922b77163cab951e62a93a06e8a6be24d29f928ca740ec08d23b5a21a44a0 |
|
MD5 | 6a18223e8cae3fb1b5b0b12f4563b2d1 |
|
BLAKE2b-256 | 7a58e2e84daf0dea22b745ab2ab3a579686d8d61c75b19df3664c5c02289e60a |