Skip to main content

A mystical collection of powerful utility functions for everyday coding wizardry

Project description

Incantations

Incantations is a mystical collection of powerful utility functions for everyday coding wizardry. It provides a set of commonly used functions to simplify your Python spells and enchantments.

Installation

You can install Incantations using pip:

pip install incantations

Usage

Here are some examples of how to use the magical functions provided by Incantations:

unique

Remove duplicate elements from an iterable while preserving order:

from incantations import unique

original_list = [1, 2, 2, 3, 1, 4]
unique_list = unique(original_list)
print(unique_list)  # Output: [1, 2, 3, 4]

chunkify

Yield successive chunks from an iterable of a specified size:

from incantations import chunkify

numbers = range(10)
for chunk in chunkify(numbers, 3):
    print(chunk)

# Output:
# [0, 1, 2]
# [3, 4, 5]
# [6, 7, 8]
# [9]

Contributing

Contributions to Incantations are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

Happy coding, and may your spells be ever powerful! 🧙‍♂️✨

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

incantations-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

incantations-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file incantations-0.0.1.tar.gz.

File metadata

  • Download URL: incantations-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for incantations-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1a4cdaa11ef70080bf56df407ec616ebc783115d9e478ea3d8d9b83b90905ace
MD5 22d633d1664a434e4b63bff7f10668aa
BLAKE2b-256 a7e79b6e8abbfbcf13c749e977c475977e5e2c3940f002f61a8b37692172b2f7

See more details on using hashes here.

File details

Details for the file incantations-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for incantations-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cc31d2f31ff97131a5a3ca7e0eb340cae61ab659b5df3d6bcd9feebba30038
MD5 56425f97355936c859e0e937d489756d
BLAKE2b-256 b7dfbf03523365d22b271b080b58363b6e3e38effe8ba6732ec0ff08906e0330

See more details on using hashes here.

Supported by

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