Skip to main content

NGO Hub

GitHub contributors GitHub last commit License: MPL 2.0

The ngohub package facilitates the integration of Python projects with ngohub.ro

A Simple Example | Feedback | License | About Code for Romania

A Simple Example

from ngohub import NGOHub

# Create a new instance of the NGOHub class
hub = NGOHub(api_base_url="https://api.ngohub.ro")
if hub.is_healthy():
    print("The API is healthy")
else:
    print("The API is not healthy")

Development

Local development

  1. Clone the repository
  2. Create a virtual environment using python 3.12 or higher and activate it
    python3 -m venv venv && source venv/bin/activate
    
  3. Install the dependencies
    pip install -r requirements/dev.txt
    

And you're ready to go.

Running the tests

To run the tests, we use tox, to check for different environments and run multiple checks and configurations.

To run the tests, run the following command:

tox

Updating the requirements

To update the requirements, you can run the following command:

tox -e update-requirements

Creating a new release

  1. Update the version in the pyproject.toml file
  2. Create a new tag with the version and push it
  3. Update the CHANGELOG.md file with the new changes

The GitHub Actions will take care of the rest.

Feedback

  • Request a new feature on GitHub.
  • Vote for popular feature requests.
  • File a bug in GitHub Issues.
  • Email us with other feedback contact@code4.ro

License

This project is licensed under the MPL 2.0 License – see the LICENSE file for details

About Code for Romania

Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of around 2.000 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at contact@code4.ro.

Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread across 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.

Release files for NGOHub 0.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 NGOHub 0.1.0
File Size Uploaded
ngohub-0.1.0.tar.gz 16.4 kB Details

Built distribution (wheel)

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

Total release size: 36.4 kB

Release files / ngohub-0.1.0.tar.gz

Download URL ngohub-0.1.0.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5dc81a98cdd40759ce214d64ea069d4f758fd5afaeb43e107e340968aa99a14b
BLAKE2b-256 checksum
How to use checksums
0b0e8c6c35a0cc60ba233cae17d69c2227d24fc6d1b893787bfbb71010c0bc77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.9

Release files / NGOHub-0.1.0-py3-none-any.whl

Download URL NGOHub-0.1.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5432f3894dab9b798305a759fe2de2e2460bbf36b0178b829a61b6c0054b2561
BLAKE2b-256 checksum
How to use checksums
59b501a41046087c551274bd99915e1deba1062e620179e0c6ee98066b2c93b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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