All Projects → malisit → Kolpa

malisit / Kolpa

Licence: mit
A fake data generator written in and for Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Kolpa

Sherlock
Natural-language event parser for Javascript
Stars: ✭ 393 (-39.07%)
Mutual labels:  datetime
Yauaa
Yet Another UserAgent Analyzer
Stars: ✭ 472 (-26.82%)
Mutual labels:  user-agent
Browser.php
A PHP Class to detect a user's Browser. This encapsulation provides a breakdown of the browser and the version of the browser using the browser's user-agent string. This is not a guaranteed solution but provides an overall accurate way to detect what browser a user is using.
Stars: ✭ 546 (-15.35%)
Mutual labels:  user-agent
Mockneat
MockNeat is a Java 8+ library that facilitates the generation of arbitrary data for your applications.
Stars: ✭ 410 (-36.43%)
Mutual labels:  random-generation
Dateutils
nifty command line date and time utilities; fast date calculations and conversion in the shell
Stars: ✭ 458 (-28.99%)
Mutual labels:  datetime
User Agents
A JavaScript library for generating random user agents with data that's updated daily.
Stars: ✭ 485 (-24.81%)
Mutual labels:  user-agent
Agent
👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
Stars: ✭ 3,891 (+503.26%)
Mutual labels:  user-agent
Ua Parser Js
UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.
Stars: ✭ 6,421 (+895.5%)
Mutual labels:  user-agent
Pendulum
Python datetimes made easy
Stars: ✭ 4,639 (+619.22%)
Mutual labels:  datetime
Calendar Links
Generate add to calendar links for Google, iCal and other calendar systems
Stars: ✭ 544 (-15.66%)
Mutual labels:  datetime
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (-33.49%)
Mutual labels:  datetime
Curl
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features
Stars: ✭ 22,875 (+3446.51%)
Mutual labels:  user-agent
Eigengrau S Essential Establishment Generator
A town generator that is suitable for out of the box play in any fantasy TTRPG setting.
Stars: ✭ 523 (-18.91%)
Mutual labels:  random-generation
Datefinder
Find dates inside text using Python and get back datetime objects
Stars: ✭ 397 (-38.45%)
Mutual labels:  datetime
Carbon
A simple, semantic and developer-friendly golang package for datetime
Stars: ✭ 565 (-12.4%)
Mutual labels:  datetime
Date Io
Abstraction over common javascript date management libraries
Stars: ✭ 382 (-40.78%)
Mutual labels:  datetime
Timeago.js
🕗 ⌛ timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.
Stars: ✭ 4,670 (+624.03%)
Mutual labels:  datetime
Period
PHP's time range API
Stars: ✭ 616 (-4.5%)
Mutual labels:  datetime
User agent
HTTP User Agent parser for the Go programming language.
Stars: ✭ 578 (-10.39%)
Mutual labels:  user-agent
Angular Moment Picker
Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
Stars: ✭ 536 (-16.9%)
Mutual labels:  datetime

kolpa Build Status Godoc license

kolpa is a fake data generator written in and for Go.
It's capable of generating fake data for following instances for now,

  • Name
  • Address
  • Phone Number
  • Email Address
  • Gender
  • Payment Card
  • Lorem Ipsum Text
  • Color
  • Datetime
  • User Agent

Installation

run go get github.com/malisit/kolpa on your command line.

Usage

package main

import (
	"fmt"
	"github.com/malisit/kolpa"
	"time"
)

func main() {
	k := kolpa.C() // Initiate kolpa
	
	fmt.Println(k.FirstName()) // Prints John
	fmt.Println(k.Address()) // Prints 729 Richmond Springs Suite 949, Luisborough, VT 85700-5554
	fmt.Println(k.UserAgent()) // Prints Mozilla/5.0 (compatible; MSIE 5.0; Windows 98; Win 9x 4.90; Trident/4.0)
	fmt.Println(k.Color()) // Prints Lime #00FF00
	fmt.Println(k.DateTimeAfter(time.Date(2015, 1, 0, 0, 0, 0, 0, time.UTC))) // Prints 2015-09-08 15:34:29 +0300 EEST
	fmt.Println(k.Email()) // Prints [email protected]
	fmt.Println(k.Phone()) // Prints +55-44-63311072
	fmt.Println(k.Gender()) // Prints male
	fmt.Println(k.PaymentCard()) // Prints 4083453410931987
	fmt.Println(k.LoremSentence()) // Prints "Provident nobis nostrum blanditiis voluptatem animi rerum harum."

}

List of all possible functions can be seen on godoc.

You can set language when initiating kolpa.

k := kolpa.C("tr_TR")

Language can be setted afterwards as well.

k.SetLanguage("tr_TR")
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].