Skip to main content

Random generator

Project description

Random generator

Main

Unique

import random_generator
print(random_generator.unique_string(10))

String

import random_generator

print(random_generator.string(15))

Number

import random_generator

print(random_generator.number(15))

Financial

Credit card number

from random_generator.financial import credit_card
print("Visa:", credit_card('Visa'))
print("MasterCard:", credit_card('MasterCard'))
print("American Express:", credit_card('American Express'))

Iban generator

from random_generator.financial import iban

print(iban('PL'))
print(iban('DE'))

Network

IP generator

from random_generator.network import ip

print(ip()) # *.*.*.*
print(ip('192.168.*.*'))

Mac address generator

from random_generator.network import mac_address

print(mac_address()) # *:*:*:*:*:*
print(mac_address('e2:*:*:*:*:*'))

Date

Date generator (Y-m-d)

from random_generator.date import date

print(date())
print(date('1980-01-01', 'Today')) # From, To

Poland

NIP

Polish NIP generator

import random_generator.poland

print(random_generator.poland.nip())

PESEL

Polish PESEL generator

import random_generator.poland

print(random_generator.poland.pesel())

Germany

Vat number

German vat number generator

import random_generator.germany

print(random_generator.germany.vat())

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

random_generator-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

random_generator-1.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file random_generator-1.0.1.tar.gz.

File metadata

  • Download URL: random_generator-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for random_generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9aaa58b8d34d4e5675d1930955d6880fea5ae508708957da6102a7d01c004f92
MD5 e315c4e615c36cc7fe6f15e428e36f6e
BLAKE2b-256 567078b675bd2cf9ad2edfdedeaec109d738d629363ef90009975bed017605dc

See more details on using hashes here.

File details

Details for the file random_generator-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for random_generator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a079173db3c4054bcac02c0ae23df40ab6ecd8f295a8c577fbbfc4a410689cf3
MD5 483f315776821f13c18944e59dbbea26
BLAKE2b-256 2ceaa878015e74ffdbaf86fbd0e623eb1a5f3f87c2c930257ee31eef544dbe73

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