Skip to main content

Small collection of daily utilities for developers: string helpers, friendly datetime utils, file helpers (auto backup/create) and a tiny env manager. created by Atikin Verse.

Project description

🛠️ Atikin-Utils

PyPI version Python versions License: MIT

Atikin-Utils is a lightweight collection of everyday developer utilities — string formatting shortcuts, friendly datetime helpers, file handling (auto create + backup), .env manager, logging, config, network helpers, CLI utilities, security helpers, decorators, and async helpers.

Built by Atikin Verse for developers who love speed, simplicity, and productivity 🚀.


✨ Features

  • 🔤 String Helpers → snake_case, camelCase, kebab-case, slugify, truncate, safe_format
  • Date & Time → now, today_str, format_datetime, timestamps, humanize_timedelta
  • 📂 File Handling → auto_create, auto_backup (with rotation), atomic writes, ensure_dir
  • ⚙️ Environment Manager → simple .env loader, get/set variables, type casting, persist back to file
  • 📝 Logging → log_info, log_error, log_warn
  • Config Loader → load JSON/YAML configs with defaults
  • 🌐 Network Helpers → get_json
  • 💻 CLI Utilities → success, error, warn
  • 🔒 Security Helpers → gen_token, sha256
  • ⏱️ Decorators → timeit, retry
  • Async Helpers → run_async
  • Zero dependencies → only Python standard library (except optional: requests, rich, pyyaml)

📦 Installation

Install via PyPI:

pip install atikin-utils

Or install locally for development:

git clone https://github.com/atikinverse/atikin-utils.git
cd atikin-utils
python -m venv .venv
# Windows PowerShell
.venv\Scripts\Activate.ps1
# Linux / Mac
source .venv/bin/activate
pip install -e .

🚀 Usage

🔤 String Helpers

from atikin_utils import snake_case, camel_case, kebab_case, slugify, safe_format

print(snake_case("Hello World Example"))   # hello_world_example
print(camel_case("hello_world example"))   # HelloWorldExample
print(kebab_case("Hello World_Test"))      # hello-world-test
print(slugify("Hello, World!"))            # hello-world
print(safe_format("Hi {name} {x}", name="Jamshed"))  # Hi Jamshed {x}

⏰ Date & Time

from atikin_utils import now, today_str, format_datetime, humanize_timedelta
from datetime import timedelta

print(now())                        # current datetime
print(today_str())                  # "2025-09-02"
print(format_datetime(now()))       # "2025-09-02 20:30:45"
print(humanize_timedelta(timedelta(days=2)))  # "2 days"

📂 File Helpers

from atikin_utils import auto_create, auto_backup

file = auto_create("data.txt", "hello world")
backup = auto_backup("data.txt")
print("Backup created:", backup)

⚙️ Env Manager

from atikin_utils import Env

env = Env(".env")
env.load()

print(env.get("SECRET_KEY", default="not-set"))
env.set("NEW_KEY", "value", persist=True)

📝 Logging + Config + Paths

from atikin_utils import log_info, log_error, load_config, ensure_dir_path

log_info("Server started")
log_error("An error occurred")

cfg = load_config("config.json", defaults={"port":8000})
print(cfg)

ensure_dir_path("logs/")

🌐 Network + CLI + Security

from atikin_utils import get_json, success, gen_token, sha256

data = get_json("https://api.github.com")
success("Fetched GitHub API!")
print(gen_token(16))      # e.g., "aX8bG72kPz9QwLmR"
print(sha256("hello"))    # SHA-256 hash

⏱️ Decorators + Async Helpers

from atikin_utils import timeit, retry, run_async
import asyncio

@timeit
@retry(tries=3)
def fetch_data():
    print("Fetching data...")
    return 42

print(fetch_data())

async def main():
    result = await run_async(fetch_data)
    print("Async result:", result)

asyncio.run(main())

📜 License

This project is licensed under the MIT License. Copyright © 2025 Atikin Verse


🌐 Follow Us

Platform Username
Facebook atikinverse
Instagram atikinverse
LinkedIn atikinverse
X/Twitter atikinverse
Threads atikinverse
Pinterest atikinverse
Quora atikinverse
Reddit atikinverse
Tumblr atikinverse
Snapchat atikinverse
Skype atikinverse
GitHub atikinverse

Made with ❤️ by the **Atikin Data** 🚀

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

atikin_utils-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atikin_utils-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file atikin_utils-0.1.0.tar.gz.

File metadata

  • Download URL: atikin_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for atikin_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83a4305da396b82beaa8daeb1cc15f782383944c775327ca5e6cce3b9360edec
MD5 c0ba11c191b9211f58cca2e7e9d2ad78
BLAKE2b-256 77472db1dcef37f881c7cf36686e462a99676201c7d3b7f1ab4aaf6ec4d471f9

See more details on using hashes here.

File details

Details for the file atikin_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: atikin_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for atikin_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d4ea21253e10ea2c86cceef1de8f79b316b277cbf518a09f2b5bf3ccf7d08d7
MD5 2265d3b090deb064132d3edcf24b5cda
BLAKE2b-256 0e24782b02edb7af6c54a06108d7fea7cade63bd09a12f902a5d1c8d827f24d7

See more details on using hashes here.

Supported by

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