A Python package to generate fake data from provided input strings for use with Swimlane
Project description
Swimlane Faker
Currently, this repository holds code for generating fake values from a passed in string. This package is called swimlane-faker
swimlane-faker relies of soc-faker to generate it's values as well as pendulum at this time.
Installation
To install this package simply install using pip:
pip3 install swimlane-faker
swimlane-faker syntax
The following items can be faked provided the correct inputs:
from swimlanefaker import SwimlaneFaker
sf = SwimlaneFaker()
import pendulum
# Standard Random Data Generator Options
sf.get('True')
sf.get('[[a|b|c|d]]') in ['a','b','c','d']
sf.get('[[a|b|c|d]]') not in ['x','y','z']
sf.get('[[int:0-100]]') in range(0,100)
# Standard Generated Data Options (datetime)
sf.get('[[datetime:now-2d]]')
sf.get('[[datetime:now-2h]]')
sf.get('[[datetime:now-2m]]')
sf.get('[[datetime:now-2s]]')
sf.get('[[datetime:now+2d]]')
sf.get('[[datetime:now+2h]]')
sf.get('[[datetime:now+2m]]')
sf.get('[[datetime:now+2s]]')
# Pendulum Generated Data Options
sf.get('<<pendulum.now()>>')
sf.get('<<pendulum.now().add(years=1)>>')
sf.get('<<pendulum.now().add(months=1)>>')
sf.get('<<pendulum.now().add(weeks=1)>>')
sf.get('<<pendulum.now().add(days=1)>>')
sf.get('<<pendulum.now().add(hours=1)>>')
sf.get('<<pendulum.now().add(minutes=1)>>')
sf.get('<<pendulum.now().add(seconds=1)>>')
sf.get('<<pendulum.now().add(years=1,months=1,weeks=1,days=1,hours=1,minutes=1,seconds=1)>>')
sf.get('<<pendulum.now().subtract(years=1)>>')
sf.get('<<pendulum.now().subtract(months=1)>>')
sf.get('<<pendulum.now().subtract(weeks=1)>>')
sf.get('<<pendulum.now().subtract(days=1)>>')
sf.get('<<pendulum.now().subtract(hours=1)>>')
sf.get('<<pendulum.now().subtract(minutes=1)>>')
sf.get('<<pendulum.now().subtract(seconds=1)>>')
sf.get('<<pendulum.now().subtract(years=1,months=1,weeks=1,days=1,hours=1,minutes=1,seconds=1)>>')
# SocFaker Generated Data Options
sf.get('<<socfaker.logs.syslog(count=2)>>')
sf.get('<<socfaker.computer.name>>')
sf.get('<<socfaker.computer.disk>>')
sf.get('<<socfaker.computer.memory>>')
sf.get('<<socfaker.computer.platform>>')
sf.get('<<socfaker.computer.mac_address>>')
sf.get('<<socfaker.computer.os>>')
sf.get('<<socfaker.application.name>>')
sf.get('<<socfaker.application.status>>')
sf.get('<<socfaker.application.account_status>>')
sf.get('<<socfaker.application.logon_timestamp>>')
sf.get('<<socfaker.employee.name>>')
sf.get('<<socfaker.employee.first_name>>')
sf.get('<<socfaker.employee.last_name>>')
sf.get('<<socfaker.employee.username>>')
sf.get('<<socfaker.employee.email>>')
sf.get('<<socfaker.employee.gender>>')
sf.get('<<socfaker.employee.account_status>>')
sf.get('<<socfaker.employee.ssn>>')
sf.get('<<socfaker.employee.dob>>')
sf.get('<<socfaker.employee.photo>>')
sf.get('<<socfaker.employee.user_id>>')
sf.get('<<socfaker.employee.phone_number>>')
sf.get('<<socfaker.employee.logon_timestamp>>')
sf.get('<<socfaker.employee.language>>')
sf.get('<<socfaker.employee.title>>')
sf.get('<<socfaker.employee.department>>')
sf.get('<<socfaker.file.filename>>')
sf.get('<<socfaker.file.size>>')
sf.get('<<socfaker.file.timestamp>>')
sf.get('<<socfaker.file.hashes>>')
sf.get('<<socfaker.file.md5>>')
sf.get('<<socfaker.file.sha1>>')
sf.get('<<socfaker.file.sha256>>')
sf.get('<<socfaker.file.full_path>>')
sf.get("<<socfaker.file.signed>>")
sf.get("<<socfaker.file.signature>>")
sf.get("<<socfaker.file.signature_status>>")
sf.get("<<socfaker.logs.windows.eventlog(count=1)>>")
sf.get("<<socfaker.logs.windows.sysmon(count=2)>>")
sf.get("<<socfaker.network.ipv4>>")
sf.get("<<socfaker.network.ipv6>>")
sf.get("<<socfaker.network.get_cidr_range('192.168.1.0/24')>>")
sf.get("<<socfaker.network.hostname>>")
sf.get("<<socfaker.network.netbios>>")
sf.get("<<socfaker.network.mac>>")
sf.get("<<socfaker.network.protocol>>")
sf.get("<<socfaker.organization.name>>")
sf.get("<<socfaker.organization.division>>")
sf.get("<<socfaker.organization.title>>")
sf.get("<<socfaker.products.azure.vm.details>>")
sf.get("<<socfaker.products.azure.vm.metrics>>")
sf.get("<<socfaker.products.azure.vm.metrics.average>>")
sf.get("<<socfaker.products.azure.vm.metrics.graphs>>")
sf.get("<<socfaker.products.azure.vm.topology>>")
sf.get("<<socfaker.products.elastic.hits(count=1)>>")
sf.get("<<socfaker.products.qualysguard.scan(count=1)>>")
sf.get("<<socfaker.products.servicenow.search()>>")
sf.get("<<socfaker.user_agent>>")
sf.get("<<socfaker.vulnerability().host>>")
sf.get("<<socfaker.vulnerability().scan>>")
sf.get("<<socfaker.vulnerability().data>>")
sf.get("<<socfaker.vulnerability().critical>>")
sf.get("<<socfaker.vulnerability().high>>")
sf.get("<<socfaker.vulnerability().medium>>")
sf.get("<<socfaker.vulnerability().low>>")
sf.get("<<socfaker.vulnerability().informational>>")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swimlane-faker-0.2.0.tar.gz.
File metadata
- Download URL: swimlane-faker-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
015095744e29fea984c76c0d5adb4b31b539da836af911c8e1b1321d153c054d
|
|
| MD5 |
16b6a5ed7254a918aa754471738e82f9
|
|
| BLAKE2b-256 |
7c490791f2dc41377f6d8d4dcb9df07619da69769230a08bbe6f4a70a30f48d1
|
File details
Details for the file swimlane_faker-0.2.0-py3-none-any.whl.
File metadata
- Download URL: swimlane_faker-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c200287421ba67f144f1ccb13616527709f87769dc64b11c053a2a757217657d
|
|
| MD5 |
b3d04cd15d3b393aa5783003a320823c
|
|
| BLAKE2b-256 |
68f9fb7c7fcfd265b4e1bc9f20c01aff22bf9f688f88af231001aed982928c66
|
File details
Details for the file swimlane_faker-0.2.0-py2-none-any.whl.
File metadata
- Download URL: swimlane_faker-0.2.0-py2-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1acc5b1a56ce3a5639dbd9e0e3206858853db9e0e470a9df85172459baef2961
|
|
| MD5 |
eb435f28492d3f00970354c81bd1439c
|
|
| BLAKE2b-256 |
13e48bcb8c1792feae8f5c741dbdd94e7fd7797eee25d09ee2a0079239380b2c
|