Skip to main content

NGO Hub

GitHub contributors GitHub last commit License: MPL 2.0

The anaf package provides tools for working with the Romanian National Agency of Fiscal Administration (ANAF) API endpoints.

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

A Simple Example

from anaf import CultEntitiesRegister

test_registration_number = "12345678"
register = CultEntitiesRegister()
if register.contains(test_registration_number):
    print("The organization is present in the register")
else:
    print("The organization is absent from the register")

Development

Local development

  1. Clone the repository
  2. Create a virtual environment using python 3.13 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 ANAF 0.0.1

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

Source distribution (sdist)

Source distribution for ANAF 0.0.1
File Size Uploaded
anaf-0.0.1.tar.gz 9.2 kB Details

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / anaf-0.0.1.tar.gz

Download URL anaf-0.0.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a33e6e5535a1e0b1e3d1c25a7fa85470909c0b8c82156b5fbe5ba8e8c38b7361
BLAKE2b-256 checksum
How to use checksums
42cb5e85edba6c14c2305e4f3b60192a16fb956abac45eca5bf0ba9621d395eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / anaf-0.0.1-py3-none-any.whl

Download URL anaf-0.0.1-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4007c94830b7f6366f2e58d3819c5d9e5e5896b5ba105e4e064b728924549f88
BLAKE2b-256 checksum
How to use checksums
6f296e43accdaff731d4befae9edb37673900abc0b5fa397c5aa9fbc1a189518
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

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