No project description provided
Project description
generate-invitation-codes
🐔動機:為了讓全球試用生成試用碼,所以生成長度任意的數量的試用碼
💣地雷:一次就 gpt-4 成功,沒有地雷
這是一個 Python 套件,可以用來生成全球試用的邀請碼。您可以通過命令行界面或將其導入到其他 Python 項目中使用。
安裝
使用以下命令安裝:
python3 -m pip install generate-invitation-codes
命令行界面用法
在命令行中,使用以下命令生成邀請碼:
python3 -m generate_invitation_codes your_email@example.com --num 10 --length 16
以下是命令行參數說明:
your_email@example.com
:需要生成邀請碼的電子郵件地址。--num
,-n
:(可選)要生成的邀請碼數量(預設為 5)。--length
,-l
:(可選)生成的邀請碼的長度(預設為 16,必須是偶數)。
套件用法
在 Python 項目中,您可以將 generate-invitation-codes 套件導入並使用 generate_invitation_codes
函數:
from generate_invitation_codes import generate_invitation_codes
codes = generate_invitation_codes('your_email@example.com', num=10, code_length=16)
以下是函數參數說明:
email
:需要生成邀請碼的電子郵件地址。num
:(可選)要生成的邀請碼數量(預設為 5)。code_length
:(可選)生成的邀請碼的長度(預設為 16,必須是偶數)。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file generate-invitation-codes-1.0.1.tar.gz
.
File metadata
- Download URL: generate-invitation-codes-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a76122fb250bf46bfee29a50a4014bcf5055e9e14a97d83d94b5e03d28bd8b |
|
MD5 | 372888a72b7e3a0694eba1aed19c0864 |
|
BLAKE2b-256 | 8ccb6e2a6e634bb6297912b1632e9dc35cee104b0b685d8336db7205aec6f3b4 |
File details
Details for the file generate_invitation_codes-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: generate_invitation_codes-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1dab920701ffa2e311f3ac8f97a79316c05c2f6af041b8a6543da3548477db4 |
|
MD5 | 0120a8606e6050f195998eb847cc6872 |
|
BLAKE2b-256 | 305cae1b99072ca59e2127e0aa8476b5ccc637bccaab6fd0da5da0164c979b05 |