nomemory / Mockneat
Licence: apache-2.0
MockNeat is a Java 8+ library that facilitates the generation of arbitrary data for your applications.
Stars: ✭ 410
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Mockneat
Faker.js
generate massive amounts of realistic fake data in Node.js and the browser
Stars: ✭ 34,329 (+8272.93%)
Mutual labels: faker, mocking
Generatedata
A powerful, feature-rich, random test data generator.
Stars: ✭ 1,883 (+359.27%)
Mutual labels: random-generation, data-generation
Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: ✭ 213 (-48.05%)
Mutual labels: faker, mocking
jRand
A Java library to generate random data for all sorts of things. Java random data faker
Stars: ✭ 27 (-93.41%)
Mutual labels: faker, random-generation
Just Dashboard
📊 📋 Dashboards using YAML or JSON files
Stars: ✭ 1,511 (+268.54%)
Mutual labels: csv, big-data
Pydbgen
Random dataframe and database table generator
Stars: ✭ 191 (-53.41%)
Mutual labels: random-generation, data-generation
dummy
Run mock server based off an API contract with one command
Stars: ✭ 170 (-58.54%)
Mutual labels: faker, mocking
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (-82.93%)
Mutual labels: faker, mocking
datamaker
Data generator command-line tool and library. Create JSON, CSV, XML data from templates.
Stars: ✭ 23 (-94.39%)
Mutual labels: csv, data-generation
Visidata
A terminal spreadsheet multitool for discovering and arranging data
Stars: ✭ 4,606 (+1023.41%)
Mutual labels: csv
Bigdl
Building Large-Scale AI Applications for Distributed Big Data
Stars: ✭ 3,813 (+830%)
Mutual labels: big-data
Specs
Technical specifications and guidelines for implementing Frictionless Data.
Stars: ✭ 403 (-1.71%)
Mutual labels: csv
Datamodel Code Generator
Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
Stars: ✭ 393 (-4.15%)
Mutual labels: csv
Choetl
ETL Framework for .NET / c# (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
Stars: ✭ 372 (-9.27%)
Mutual labels: csv
Easy localization
Easy and Fast internationalizing your Flutter Apps
Stars: ✭ 407 (-0.73%)
Mutual labels: csv

Mockneat
is an arbitrary data-generator open-source library written in Java.
It provides a simple but powerful (fluent) API that enables developers to create json, xml, csv and sql data programatically.
It can also act as a powerful Random substitute or a mocking library.
Official Documentation: www.mockneat.com
Official Tutorial: www.mockneat.com
If you want to use mockneat to mock REST APIs checkout my other project: serverneat.
Installing
>= 0.4.4
Maven:
<dependency>
<groupId>net.andreinc</groupId>
<artifactId>mockneat</artifactId>
<version>0.4.7</version>
</dependency>
Gradle:
implementation 'net.andreinc:mockneat:0.4.7'
<= 0.4.2
Maven:
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.andreinc.mockneat</groupId>
<artifactId>mockneat</artifactId>
<version>0.4.2</version>
</dependency>
</dependencies>
Gradle:
repositories {
jcenter()
}
dependencies {
compile 'net.andreinc.mockneat:mockneat:0.4.2'
}
Example - A random dice roll
List<String> somePeople = names().full().list(10).get();
fmt("#{person} rolled: #{roll1} #{roll2}")
.param("person", seq(somePeople))
.param("roll1", ints().rangeClosed(1, 6))
.param("roll2", ints().rangeClosed(1, 6))
.accumulate(10, "\n")
.consume(System.out::println);
System.out.println("\nWho wins ?\n");
(possible) Output:
Sal Clouden rolled: 3 3
Cinthia Myrum rolled: 1 5
Wyatt Imber rolled: 5 1
Fidel Quist rolled: 2 2
Brandon Scrape rolled: 6 4
Arlene Cesare rolled: 6 4
Brandie Sumsion rolled: 3 4
Norris Tunby rolled: 3 5
Kareem Willoughby rolled: 1 5
Zoraida Finnerty rolled: 1 6
Who wins ?
Example - A simple CSV
System.out.println("First Name, Last Name, Email, Site, IP, Credit Card, Date");
csvs()
.column(names().first())
.column(names().last())
.column(emails().domain("mockneat.com"))
.column(urls().domains(POPULAR))
.column(ipv4s().types(CLASS_B, CLASS_C_NONPRIVATE))
.column(creditCards().types(AMERICAN_EXPRESS, VISA_16))
.column(localDates().thisYear())
.separator(" ; ")
.accumulate(25, "\n")
.consume(System.out::println);
(possible) Output:
Lorrie ; Urquilla ; [email protected] ; http://www.sugaredherlinda.com ; 172.150.99.65 ; 4991053014393849 ; 2019-05-25
Tabitha ; Copsey ; [email protected] ; http://www.arightcarnify.io ; 166.192.196.15 ; 4143903215740668 ; 2019-07-13
Laurine ; Patrylak ; [email protected] ; http://www.ninthbanc.gov ; 187.28.250.76 ; 4450754596171263 ; 2019-09-10
Starla ; Peiper ; [email protected] ; http://www.eathlessen.edu ; 202.189.115.252 ; 4470988734574428 ; 2019-02-18
Lakiesha ; Zevenbergen ; [email protected] ; http://www.unbendingeyes.edu ; 204.112.195.47 ; 4040555724781858 ; 2019-11-12
... and so on
Special thanks to the contributors:
- https://github.com/mariotrucco
- https://hatchful.shopify.com/ (for creating the logo)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].