Skip to content

chanse-syres/curly-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python script used for testing my_datetime, conv_num, and conv_endian.

Curly Telegram (Python Utility Functions)

This project implements three core Python functions manually (without using helper libraries for parsing/date conversion):

  • conv_num(num_str): Converts a numeric string to int or float (supports optional negative sign and 0x hex).
  • my_datetime(num_sec): Converts seconds since Unix epoch to MM-DD-YYYY.
  • conv_endian(num, endian='big'): Converts an integer to spaced hexadecimal bytes in big- or little-endian form.

Files

  • task.py — Function implementations
  • tests.py — Unit tests using Python unittest

Requirements

  • Python 3.x

Run tests

From the project root:

python -m unittest -v

About

Python utility functions project implementing manual number parsing, Unix timestamp conversion, and endian conversion with unit tests.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages