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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distributions

swimlane_faker-0.0.2-py3.7.egg (10.5 kB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: swimlane-faker-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2f4c1f09c922d89fe7eb1fbd06ef59d2b9090bb717dcfbba204fff0446095de9
MD5 e715d78a6a74a23dc8098b41e1a0f080
BLAKE2b-256 c9cfcbbbe70d2f7c42229ac8b85d741eda4ea21f079c483b97f70cc732bfae1f

See more details on using hashes here.

File details

Details for the file swimlane_faker-0.0.2-py3.7.egg.

File metadata

  • Download URL: swimlane_faker-0.0.2-py3.7.egg
  • Upload date:
  • Size: 10.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.2-py3.7.egg
Algorithm Hash digest
SHA256 db5fd05410991da9ac71a437b998fad8041be764ea84829b9224140c2fb86f28
MD5 03d297413cf114218fede95101d7d79c
BLAKE2b-256 7638875d3b57f21ae2ba96ea6f2f917b67b7d7534e15099821700f31b2f8d631

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swimlane_faker-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d09e35807c1f93d79217d49c40e71613c458e31bb9d00ebb58092edb46161be0
MD5 a003e993a26c6eacf64a8cb3b26e140e
BLAKE2b-256 a39c7e20a13b0d51f00ceb2893e930e7db6923a1deacee47277d681637cc6c08

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