abapFaker
Generates fake data in ABAP, for bootstrapping a database, creating XML documents, stress-testing a persistence layer or anonymising data taken from a production service.
Getting realistic-looking data into a system otherwise means writing it by hand. abapFaker generates it instead: a faker generator holds many generator properties, such as name and address, packaged into providers, and zcl_faker's class constructor takes a locale so the values come back localized. Localized providers ship for German, US English and Brazilian Portuguese, and the constructor falls back to the default en_US locale when a locale has no provider of its own. The report Z_ABAP_FAKER_DEMO shows it running, the list of providers is in the extended docs, and the maintainer credits joke2k/faker for the design.
Facts
Where it sits
Who is behind it
In the atlas: maintains 1, contributes to 5@se38maintainerGabbianiiiiContributes to this
In the atlas: contributes to 1@gabbianiiiiGregor WolfContributes to this
In the atlas: maintains 17, contributes to 59, wrote 2@gregorwolfTom SchmelzerContributes to this
In the atlas: contributes to 7@schmelto3 contributors
Before choosing this
Signals
ActivityQuietNo published releases; repository quiet for 53 months
It publishes no releases, and its repository has been quiet for at least 24 full months. This may be normal for stable software; check whether its current state still fits your use.
What it declares
Every artifact
- Type
- Package
- Origin
- Independently maintained
As a package
- Where it runs
- Inside its host
- Distributed through
- abapGit
Connections
Getting realistic data into a service for development and demos
Download
README
quoted from se38/abapFaker under MIT, readabapFaker is an ABAP package that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.
Design inspired by https://github.com/joke2k/faker.
::
_|_|_|_| _|
_| _|_|_| _| _| _|_| _| _|_|
_|_|_| _| _| _|_| _|_|_|_| _|_|
_| _| _| _| _| _| _|
_| _|_|_| _| _| _|_|_| _|
|docs| |license|
For more details, see the extended docs_.
Installation
This project is supported by ABAPGit Project_. Download ZIP file or integrate this project to him.
Basic Usage
See also demo report Z_ABAP_FAKER_DEMO_.
Providers
Each of the generator properties (like name, address...) are called "fake". A faker generator has many of them, packaged in "providers".
::
DATA(faker) = NEW zcl_faker( ).
cl_demo_output=>display( |{ faker->person->first_name( ) } { faker->person->last_name( ) }| ).
Check the extended docs_ for a list of providers_.
Localization
zcl_faker's class constructor can take a locale as an argument, to return localized data. If no localized provider is found, the constructor falls back to the default en_US locale.
::
METHOD constructor.
_locale = SWITCH #( i_locale
WHEN `` THEN get_locale( )
ELSE i_locale
).
...
You can check available abapFaker locales in the source code, under the providers package. The localization of abapFaker is an ongoing process, for which we need your help. Please don't hesitate to create a localized provider for your own locale and submit a Pull Request (PR).
Included localized providers:
de\_DE <https://abapfaker.readthedocs.io/en/latest/locales/de_DE/index.html>__ - Germanen\_US <https://abapfaker.readthedocs.io/en/latest/locales/en_US/index.html>__ - English (United States)pt\_BR <https://abapfaker.readthedocs.io/en/latest/locales/pt_BR/index.html>__ - Portuguese (Brazil)
License
abapFaker is released under the MIT License. See the bundled LICENSE_ file for details.
.. _extended docs: https://abapfaker.readthedocs.io/en/latest/ .. _ABAPGit Project: https://github.com/larshp/abapGit .. _Z_ABAP_FAKER_DEMO: https://raw.githubusercontent.com/se38/abapFaker/master/src/z_abap_faker_demo.prog.abap .. _providers: https://abapfaker.readthedocs.io/en/latest/ .. _LICENSE: https://github.com/se38/abapFaker/blob/master/LICENSE
.. |docs| image:: https://readthedocs.org/projects/abapfaker/badge/?version=latest :target: https://abapfaker.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://raw.githubusercontent.com/se38/abapfaker/master/LICENSE :alt: Package license
Others providing
Compare all 6 on the Seed data page →- @animb1996/cds-data-drift@animb1996/cds-data-driftCompares the CSV files under a CAP project's db/data with the rows in the database bound as its db service, and reports where the two have diverged without writing to either.independent, capCompares a CAP project's CSV data with its database rowsfrom CAP
- cap-js-mockdatacap-js-mockdataA cds add command that generates CSV seed files into db/data from @Mockdata annotations on your entities, filling each column with values from the Faker module the annotation names.independent, capCSV seed data generated from @Mockdata annotations with Fakerfrom CAP
- @sap/cds-common-content@sap/cds-common-contentISO-standard content for CAP's common definitions — countries, languages, currencies and timezones — so a project does not seed those tables itself.sap official, capISO content for CAP's countries, languages, currencies and timezonesfrom CAP
- @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, capCAP Node.js runtimefrom CAP
- cap-mock-generatorcap-mock-generatorParses the .cds schema and fills db/data with relationally consistent CSV — through an LLM layer where one is configured, or a local engine where none is.independent, capFills db/data with relationally consistent CSV from a .cds schemafrom CAP
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
abaplint
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:se38-abapfaker- JSON
- /artifacts/se38-abapfaker.json
- MCP
- Connecting an agent