Skip to main content

Python and Django Project Utils Package

Project description

Sparky Utils

Utility Package for Python and Django Projects

Reduce your code repetition using fine grained utility package for python and Django projects

Installation

pip install sparky-utils

View all available utility modules

import sparky_utils
print(sparky_utils.list_modules())
['decorators', 'exceptions', 'list_modules', 'response']

User decorator

from sparky_utils import str_meta


"""
 will add __str__ method the returns name property if has and id if not and Meta class
 def __str__(self):
    return self.name or self.id

class Meta:
    verbose_name = model_name
    verbose_name_plural = model_name + 's'
"""
@str_meta 
class FoodCategory(models.Model):
    name = models.CharField(max_length=100)

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

sparky_utils-1.0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

sparky_utils-1.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sparky_utils-1.0.3.tar.gz.

File metadata

  • Download URL: sparky_utils-1.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for sparky_utils-1.0.3.tar.gz
Algorithm Hash digest
SHA256 435c246e36731e61b2db7dd2b7b9102df57116041e99d9c67ac29c4bf4504b00
MD5 a8da1d0a893f5f67c386096d8ad81f7a
BLAKE2b-256 f24900085ef9e455821f83191ff8f4ce2671a85b32e4bccd194b582506efe84c

See more details on using hashes here.

File details

Details for the file sparky_utils-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sparky_utils-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for sparky_utils-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da580319a55113c1f7be104c6efeefde213196805a3c28d772484ebd053a6ad0
MD5 fefa1a30615837bd72c9b536d3af269c
BLAKE2b-256 55e2b0445de22b4af697bf2a8a7152c899a3e51d07a66b2cc8e1f83873c44241

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