semvec/pypi-packages huggingface dataset:
firefish.py 0.0.2
A python wrapper for firefish/calckey
Requires Python: >=3

# firefish.py

Simple python wrapper for the Firefish API.

## Getting started

You're going to want to install requests and python-dotenv in order for this to work.

You can either install this with pypi by doing `pip install firefish.py` or by building it yourself.

I'm running this with 3.11.3, which is (i think) the latest Python3 version and it should work with all versions of Python3. I haven't tested it though

Once you install firefish.py, create a .env file with the following:

```
TOKEN=<your firefish api token>
INSTANCE=<the firefish instance associated with your api token>
```

Don't include the < > keys when typing them in, and format your instance as "subdomain.domain.com".
lethallava.land is a pretty decent public Firefish instance if you don't already have an account on an instance.

Additionally, keep in mind that this *might* work on Misskey as well. You can try, but keep in mind I haven't tested Misskey out for myself yet.

## Examples

Simple posting bot: 

```
import firefish
firefish.createnote('example', 'null')
```
LordXen 2023.7.23
Python XenForo Api Lib für Posten
Requires Python: >=3.10

Python XenForo Api
==================

! PRE-VERSION !

Python Lib für die XenForo api

=======
Sample:
=======

.. code-block:: python

  from LordXen import XenForo

  forum_url = input('URL ? ')
  api_key = input('API_KEY ? ')

  x = XenForo(url=forum_url, api_key=api_key)

  xen_thread_800 = x.get_thread(800)
  s = xen_thread_800.exists()
  if s:
      print("Thread with id 800 exist")
  else:
      print("Thread with id 800 not exist")


  # get node
  xen_node = x.get_node(209)

  # create new thread
  new_xen_thread = xen_node.create_thread('Test', message="LOL", tags='test')

  # edit thread
  s = new_xen_thread.edit(add_tags=['hello', 'world'], remove_tags=['test'])
  if s:
      print(f"Thread with id {new_xen_thread.thread_id} edited!")

  # post to thread
  s = new_xen_thread.create_post('Hallo Test')
  if s:
      print(f"Created post for {new_xen_thread.thread_id}")


Output:
*******

.. code-block::

  Thread with id 800 exist
  Thread with id 17291 edited!
  Created post for 17291


*by LordBex*
jsodb 1.6.0
simple json database lib
Requires Python: >=3.7

# jsodb
Mine database realization that uses .json files.

### How to work with it?
Instalation:
`python3 -m pip install jsodb`

Basic funcs:
```py
import jdb
getkeyval("key") # returns key val
addkey(key=val) # adds keys to json
changekey("key", val) # changes key to new val
createjson("/path/to/file" """without .json""") # new .json file (without decorator)
addtokey("key", int) # key += int
subfromkey("key", int) # key -= int
addmultikey("key", key=val, key2=val2) # new multi key {key: {"key": "val", "key2", "val2"}}
@json("/path/to/file") # main decorator
```

To use all that functions you need function with decorator, json file will be: opened, edited, saved.

Basic usage:
```py
@json("profile.json")
def func():
	print(getkeyval(balance)) ### 1
	changekey(balance, 10) ### {balance=10}
	addkey(deposit=100) ### {balance=10, deposit=100}
	print(f"{getkeyval(balance)}\n{getkeyval(deposit)}")
	"""
	10
	100
	"""

func() ### changes applied
```