Skip to main content

SocialHub

PyPI PyPI - Python Version

Simple API client for SocialHub's API.

Development

Setup

  1. clone the repo
$ git clone git@github.com:Uberspace/socialhub.git
$ cd socialhub
$ python3 -m venv venv
$ source venv/bin/activate
  1. install dependencies and commit-hooks
$ make devsetup
pip install -r requirements.txt -r requirements.dev.txt
Collecting requests==2.23.* (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
(...)
  Running setup.py install for pyyaml ... done
  Running setup.py install for distlib ... done
  Running setup.py install for wrapt ... done
Successfully installed appdirs-1.4.3 aspy.yaml-1.3.0 (...)
pre-commit install --overwrite --install-hooks
pre-commit installed at .git/hooks/pre-commit

Testing

We're using py.test. You can run all of the tests on all supported python releases using make test. If you don't have that much time, try make quicktest, which runs py.test directly.

API Requests

The tests make use of vcrpy, which records all requests to the SocialHub APIs into the socialhub/cassette directory. As long as you don't add any, this enables you to run the existing tests without having access to these (private) APIs.

To delete the recorded data and get fresh version, run the following command. Inspect the resuling cassettes for secret leaks.

$ make recordvcr

Releasing a new version

Assuming you have been handed the required credentials, a new version can be released as follows.

  1. adapt the version in setup.py, according to semver_.
  2. commit this change as Version 1.2.3
  3. tag the resulting commit as v1.2.3
  4. push the new tag as well as the master branch
  5. update the package on PyPI:
$ make build
$ make upload

Disclaimer

This API client is not developed, endorsed or validated by SocialHub or its developer maloon GmbH. The name "SocialHub" is owned by maloon GmbH, not by the authors of this library.

Metadata

Release files for socialhub 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socialhub 1.1.0
File Size Uploaded
socialhub-1.1.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for socialhub 1.1.0
File Interpreter ABI Platform
socialhub-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / socialhub-1.1.0.tar.gz

Download URL socialhub-1.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e13c124a7f59cf3d282c3b0485c551f1f85096e5ac42ee6b6e054e61af58d994
BLAKE2b-256 checksum
How to use checksums
e70c2f054db5e2739f4181b6ec048fd32442347270ddc8485052aa1a01c7d467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.8.3 requests/2.28.1 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.7

Release files / socialhub-1.1.0-py3-none-any.whl

Download URL socialhub-1.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9348615ef405545f1e060fa031b58b7c29406076089b5baab28694c79e0a8ffb
BLAKE2b-256 checksum
How to use checksums
3774709d03e56fb6b1fa0933d86838c5c5d32fec5593f4f4192905a25b8e5e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.8.3 requests/2.28.1 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page