Skip to main content

Some functions for Python

Project description

pyxtend

Functions to be more productive in Python.

struct

struct is for examining objects to understand their contents.

Usage

from pyxtend import struct
struct(obj)
struct(obj, examples=True)

Example 1

A simple list of integers

Input: [1, 2, 3, 4, 5]
Output (without examples): {'list': ['int', 'int', 'int', '...5 total']}
Output (with examples): {'list': [1, 2, 3, '...5 total']}

Example 2

A list of lists

Input: [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Output (without examples): {'list': [{'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}]}
Output (with examples): {'list': [[1, 2, 3], [4, 5, 6], [7, 8, 9]]}

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

pyxtend-0.5.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

pyxtend-0.5.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyxtend-0.5.0.tar.gz.

File metadata

  • Download URL: pyxtend-0.5.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pyxtend-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4ff8e7d206d1878d453f1df9bdfb0d2c8b393b71ff25b34dd152c71a8775759d
MD5 ec7b7a588826cf0047cc61c39e919126
BLAKE2b-256 189d69b83e9ae7939c7cb3cbfcd749a5dd990a473edf27670d9abedfd72fb5a8

See more details on using hashes here.

File details

Details for the file pyxtend-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyxtend-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pyxtend-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef14645fbc9064114da59e1653b568f6fa653487ab7c853d4c179ad15cc594b
MD5 d6608437b189169dcecbd4e1ae8c7a00
BLAKE2b-256 ce0605ff8dc7ee7768ebc2854c9d5707ee703d650ea90fa17bb489d904076f85

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