Faker-nonprofit is a provider for the Faker library, extending its capabilities to generate fake nonprofit-specific data such as organization names, EINs, and other related information. It is currently at version 1.0.0 and has a flexible release cadence, typically releasing new versions as features or bug fixes are introduced.
pip install faker-nonprofitVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the NonprofitProvider, register it with the Faker instance, and then generate various pieces of fake nonprofit data.
Always use `Faker.add_provider(NonprofitProvider)` or `fake = Faker(); fake.add_provider(NonprofitProvider)` before attempting to use the provider's methods.
Import `NonprofitProvider` specifically from `faker_nonprofit.provider`: `from faker_nonprofit.provider import NonprofitProvider`.
Consult the library's documentation or source code for a list of all available methods (e.g., `nonprofit_name`, `nonprofit_ein`, `nonprofit_city`).