Skip to main content

RayID is a generated code that we use to track logs, posts or events. You can generate your own rayid, but we made your job easier!

Project description

RayID

RayID is a generated code that we use to track logs, posts or events. You can generate your own rayid, but we made your job easier!

In this instructure you will learn about how to use this package in your apps.

Table of content

Languages

I created rayid for JavaScript too.

Installation

How to install RayID? To install this package, use pip or pipenv.

$ pip3 install rayid
# Or
$ pipenv install rayid

Config

So, import the package.

from rayid import RayID

rayid = RayID("digit")

Now create your instance with what kind of rayid you want.

  • digit: Numbers
  • lower: Alphabet in lower case.
  • upper: Alphabet in upper case.
  • all: Combine of all types.

No type means all combined togather.

rayid = RayID("digit")

Methods

Only one method! gen(len).

gen(len)

in gen(len) just say the length.

There is no limit :)

id = rayid.gen(25);
print(id); # 9514992619709220193874433

Examples

Create common instances.

all = RayID("all"); # All values
str = RayID("lower"); # Loercase generator
int = RayID("digit"); # Only int generator

Now use them:

print(all.gen(10)); # Z*jVQ3c:+H
print(str.gen(10)); # ksixvpqohi
print(int.gen(10)); # 4748182066

All done!


Development

If you want to develop the package, it is so simple. just follow steps below.

  • Clone the project
  • Start changing!

Before you start: Remember the base or code are stored in rayid/rayid.py. You need to edit there.

Cloning the project

To clone the project, you need to have git installed. Ok, now clone it same as command below.

$ git clone https:#github.com/BlackIQ/rayid

Changing

To change package or anything, your need a testing environment to use linked package. Just change rayid/rayid.py.

Test

Your test app is linked. Change anything in package and test it in test.py file.

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

rayid-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file rayid-1.0.0.tar.gz.

File metadata

  • Download URL: rayid-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for rayid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dc3cf6a3400d9b0237b17a5b79b5ac5240488f20633c17d46225819c38debb83
MD5 9327b51b199c5fd6fa24d56bf228665e
BLAKE2b-256 39d3bc85a5c249e156cc3eb1283824da3eddc51eae2929ecdd0e809f1caf47f1

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