Hive-Nectar 0.0.5 - Community

in Synergy Builders2 days ago (edited)

Needing the Community information came up in something I was already working on, so I had to go back to hive-nectar and start fixing the Communities stuff. It was dated, and expected information in the json_metadata of the post, and was resolved using the old tags api.

from nectar.comment import Comment

# Create an instance of the Comment class with a specific post identifier
post_identifier = "thecrazygm/nectarengine-006-tale-of-no-slash"
post = Comment(post_identifier)
print("Post details are as follows:")
print(f"Post Identifier: {post_identifier}")
print(f"Post Title: {post.title}")
print(f"Post Author: {post.author}")
print(f"Retrieved Community ID: {post.community}")
print(f"Post Community Title: {post.community_title}")

Community Info!

Well, not anymore. The current release has all of this included.

make dist


Special shoutout to @brianoflondon for the pull request that cleaned up the logs and pytypes warnings. (Full typing is in the todo list as well, sometime soon)

https://www.youtube.com/shorts/iRjTxQS8ALk


As aside, someone might notice that I'm using twine to upload to pypi even though uv has done the brunt of the work elsewhere. I just haven't finished setting that part of the project up, but it's definitely in my todo list.

As usual,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

BacklinkerTheCrazyGMad.png