Skip to main content

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

swimlane-faker-0.0.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

swimlane_faker-0.0.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file swimlane-faker-0.0.3.tar.gz.

File metadata

  • Download URL: swimlane-faker-0.0.3.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

Hashes for swimlane-faker-0.0.3.tar.gz
Algorithm Hash digest
SHA256 66a3c89ffd3061099638f8238bcf168155bdc734484e51b321f38007970103c5
MD5 7eeaf2b68742ff47ffd662d6e82143f6
BLAKE2b-256 a36edac48b4b85024772bc00a29298e7b1565fefe405d8c2b0c55504cf0e55cb

See more details on using hashes here.

File details

Details for the file swimlane_faker-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: swimlane_faker-0.0.3-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

Hashes for swimlane_faker-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee6f886167ea1a510725f39fa0c7d6db0acc1a5d1e71a77622a4d09965198e0
MD5 2469c6794ee04bf9dfba76a47904f593
BLAKE2b-256 3cbd7955a422bbd4b116880be938cae72a80f69074e22bb7741f669d9295cb4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page