Giter Club home page Giter Club logo

fake-cli's Introduction

Fake-CLI

About

The fake-cli project is a powerful utility for generating structured text format test data. It's especially useful for developers who require randomized data for testing or data analysis. This project leverages the power of fake-rs, a popular randomized data generation library.

Usage

To use the fake-cli utility, you will need to define a `fake_definition_json` like the example below:

{
  "example_word": {
    "fake_type": "word",
    "lang": "JA_JP"
  },
  "example_digit": {
    "fake_type": "digit",
    "lang": "EN"
  },
  "example_sentence": {
    "fake_type": "sentence",
    "lang": "JA_JP",
    "min": 1,
    "max": 5
  }
}

You can then feed this definition to the fake-cli utility through the `--json` switch. The utility will generate random JSON data based on your specifications. For example, given the `fake_definition_json` above, the utility might output:

{
  "example_digit": 4,
  "example_sentence": "qui et maiores.",
  "example_word": "et"
}

fake_type Configuration

The available fake_type's are:

  • Word
  • LastName
  • Words
  • Boolean
  • Digit
  • Sentence
  • NumberWithFormat
  • Array
  • Map
  • Constant

Note: Array and Map and Constant are specific to fake-cli.

The fake_type can be any callable method from fake-rs, and it is ready to use when converted to snake_case.

License

This project is licensed under the terms of the MIT License (or whichever license you have chosen).

fake-cli's People

Contributors

haytty avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.