The ngohub
package facilitates the integration of Python projects with ngohub.ro
A Simple Example | Feedback | License | About Code for Romania
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")
- Clone the repository
- Create a virtual environment using python 3.12 or higher and activate it
python3 -m venv venv && source venv/bin/activate
- Install the dependencies
pip install -r requirements/dev.txt
And you're ready to go.
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
To update the requirements, you can run the following command:
tox -e update-requirements
- Update the version in the
pyproject.toml
file - Create a new tag with the version and push it
- Update the
CHANGELOG.md
file with the new changes
The GitHub Actions will take care of the rest.
- Request a new feature on GitHub.
- Vote for popular feature requests.
- File a bug in GitHub Issues.
- Email us with other feedback [email protected]
This project is licensed under the MPL 2.0 License – see the LICENSE file for details
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 [email protected].
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.