Ficto is a Python package that allows you to effortlessly generate realistic dummy data in CSV or JSON format. With Ficto, you can create datasets with various column types by simply specifying them in a YAML configuration file.
To install Ficto, use the following pip
command:
pip install ficto
Generate a dataset by providing a YAML configuration file, the number of rows, and the desired file format. For example, to generate a CSV file with 100 rows using a configuration file named config.yaml, run the following command:
ficto -d config.yaml -n 100 -f csv
- Flexible Configuration: Customize your dataset by defining columns and their types in a YAML file.
- Multiple Formats: Generate datasets in either CSV or JSON format.
- Easy Installation: Install Ficto effortlessly with a single pip command.
- Realistic Demo Data: Create realistic data for testing purpose.
- Command-Line Interface (CLI): User-friendly CLI for quick and simple data generation.
- Create Configuration File: Create a YAML file (e.g., config.yaml) specifying the columns and their types.
You can find a template here containing all the types of column you can add to your dataset. To know more about each value type, kindly read the documentation.
- Generate Data: Use the Ficto CLI to generate data based on your configuration.
ficto -d config.yaml -n 100 -f csv
This command generates a CSV file inside a newly created data
folder with 100 rows of demo data based on your data configuration file (i.e.config.yaml
).
For more details and advanced usage, refer to the Ficto Documentation.
We welcome contributions to Ficto! If you'd like to contribute, please follow these steps:
-
Fork the Repository: Click the "Fork" button on the top right corner of this repository.
-
Clone Your Fork: Clone the repository to your local machine.
git clone https://github.com/taeefnajib/ficto.git
- Create a Branch: Create a new branch for your changes.
git checkout -b feature/new-feature
-
Make Changes: Make your desired changes in the code.
-
Commit Changes: Commit your changes with a descriptive commit message.
git commit -m "Add new feature"
- Push Changes: Push your changes to your fork.
git push origin feature/new-feature
-
Create Pull Request: Create a pull request on the original repository to propose your changes.
-
Feedback and Review: Participate in the discussion and address any feedback provided.
-
Merge: Once your changes are approved, they will be merged into the main branch.
This project is licensed under the MIT License