Skip to main content

Python implementation of IlyasFamily data format

Project description

IlyasFamily Python Implementation

IlyasFamily adalah format pertukaran dan penyimpanan data alternatif, seperti JSON tetapi lebih kaya tipe data.

Ekstensi resmi: .ifamily.

Repositori ini berisi implementasi Python dari spesifikasi IlyasFamily.

Instalasi

pip install ilyasfamily-py

Contoh Pemakaiaan

from ilyasfamily import Node, dump_file, load_file

person = Node("Person", {"Name": "Budi", "Age": 21})
dump_file(person, "person.ifamily")
loaded = load_file("person_family")

print(loaded)

Menguji

Uji dengan pytest atau jalankan manual. Namun kali ini dengan pytest karena untuk uji coba cepat. Anda bisa mengedit kode test/test.py untuk uji coba manual.

  1. Instal pytest
    pip install pytest
    
  2. Jalankan dari root
    pytest
    
    atau jalur spesifik:
    pytest tests/test.py -v
    

Apa bila pytest tidak menemukan package ilyasfamily karena struktur repositori memakai src/ layout.

Instal lokal dahulu

pip install -e .

Lalu coba lagi

pytest tests/test.py -v

Lisensi

Apache-2.0

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

ilyasfamily-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

ilyasfamily-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilyasfamily-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e12aff7360b564d704d59a8bebe601de8ed74240628f2cdccb5d43acf489e713
MD5 493c09ca41437904ccf8eb96aaa99d9f
BLAKE2b-256 ba8998a68f13a1e610df63ff04a17cf8c99c82720593ca83360cf08c21108d48

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ilyasfamily-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5535e4dc180de8195449a9809d60268bd27ce861e26dbd8cbaecc40ddc8ee4
MD5 c080263c475b0043946d21b92bd88f30
BLAKE2b-256 6a71d82f491c173d6b4008418198909a0993a8ed943a846451389e3b2f8b9efe

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