-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d28fe6
commit 3ce8c46
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
# usage | ||
|
||
Ofcourse you need to prepare your python environment and install the package dependencies | ||
|
||
```commandline | ||
python3 -m venv myenv | ||
source myenv/bin/activate | ||
pip instal -r ../requirements.txt | ||
``` | ||
|
||
**To generate data for all resources** | ||
|
||
```commandline | ||
python cli.py generate | ||
python faker-cli generate | ||
``` | ||
|
||
**Generate data for a single resource** | ||
|
||
```commandline | ||
python cli.py generate users --count=100 | ||
python faker-cli generate users --count=100 | ||
``` | ||
|
||
**Generate single resource that requires pre-generated data like assignments** | ||
|
||
e.g. When assigning users to organizations, provide individual csvs containing the users and organizations data | ||
|
||
```commandline | ||
python cli.py generate users-orgs --orgs-csv=<orgs-csv-path> --users-csv=<users-csv-path> | ||
python faker-cli generate users-orgs --orgs-csv=<orgs-csv-path> --users-csv=<users-csv-path> | ||
``` | ||
|
||
**Learn more** | ||
|
||
```commandline | ||
python cli.py generate --help | ||
python faker-cli generate --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters