Plugin to generate the lorem ipsum for django model
Project description
Djipsum
====================================
Plugin to generate the lorem ipsum for django model
.. image:: http://i.imgur.com/8vg0KoC.png
Install
------------
Djipsum is available directly from `PyPI`_:
::
$ pip install djipsum
***).** And don't forget to add ``djipsum`` to your ``INSTALLED_APPS`` setting (without migrations).
Requirement
------------
* ``Django>=1.10.1``
Usage
------------
::
usage: manage.py djipsum [-h] [-dv]
[--app APP] [--model MODEL] [--max MAX]
To generate awesome lorem ipsum for your model class!
optional arguments:
-h, --help show this help message and exit
-dv, --djipsum_version
Show djipsum version and exit.
--app APP The APP name.
--model MODEL The Model Class name.
--max int(MAX) Maximum generate lorem ipsum.
Example
------------
::
# Default 10 objects
$ ./manage.py djipsum --app testapp --model TestField
# Custom Maximum objects
$ ./manage.py djipsum --app testapp --model TestField --max=5
Supported Fields
------------
::
{
'ForeignKey': <User: admin>,
'FileField': 'file.zip',
'IntegerField': -1712115729,
'TextField': "Conveniently facilitate best-of-breed experiences via integrated web-readiness.",
'SmallIntegerField': 13176,
'BigIntegerField': 8202207420457970878,
'BinaryField': b'djipsum is awesome',
'UUIDField': 'bbec46c4bace5426908f386c76ea50ed',
'URLField': 'https://djangoproject.com',
'GenericIPAddressField': '66.249.65.54',
'DateField': '2016-10-12',
'DateTimeField': '2016-10-12 17:35:15.934491',
'TimeField': '2016-10-12',
'DecimalField': 10.7,
'DurationField': datetime.timedelta(1),
'PositiveIntegerField': 1459670713,
'NullBooleanField': None,
'SlugField': 'unique-slug-e9029f1edd5b45379f99d190f156a35f',
'BooleanField': True,
'FloatField': 0.69,
'EmailField': 'test@site.com',
'PositiveSmallIntegerField': 18723,
'CharField': 'Phosfluorescently productize accurate products',
'ImageField': 'sampleimage.png'
}
License
------------
- `MIT`_
.. _PyPI: https://pypi-hypernode.com/pypi/djipsum
.. _MIT: https://github.com/agusmakmun/djipsum/blob/master/LICENSE
====================================
Plugin to generate the lorem ipsum for django model
.. image:: http://i.imgur.com/8vg0KoC.png
Install
------------
Djipsum is available directly from `PyPI`_:
::
$ pip install djipsum
***).** And don't forget to add ``djipsum`` to your ``INSTALLED_APPS`` setting (without migrations).
Requirement
------------
* ``Django>=1.10.1``
Usage
------------
::
usage: manage.py djipsum [-h] [-dv]
[--app APP] [--model MODEL] [--max MAX]
To generate awesome lorem ipsum for your model class!
optional arguments:
-h, --help show this help message and exit
-dv, --djipsum_version
Show djipsum version and exit.
--app APP The APP name.
--model MODEL The Model Class name.
--max int(MAX) Maximum generate lorem ipsum.
Example
------------
::
# Default 10 objects
$ ./manage.py djipsum --app testapp --model TestField
# Custom Maximum objects
$ ./manage.py djipsum --app testapp --model TestField --max=5
Supported Fields
------------
::
{
'ForeignKey': <User: admin>,
'FileField': 'file.zip',
'IntegerField': -1712115729,
'TextField': "Conveniently facilitate best-of-breed experiences via integrated web-readiness.",
'SmallIntegerField': 13176,
'BigIntegerField': 8202207420457970878,
'BinaryField': b'djipsum is awesome',
'UUIDField': 'bbec46c4bace5426908f386c76ea50ed',
'URLField': 'https://djangoproject.com',
'GenericIPAddressField': '66.249.65.54',
'DateField': '2016-10-12',
'DateTimeField': '2016-10-12 17:35:15.934491',
'TimeField': '2016-10-12',
'DecimalField': 10.7,
'DurationField': datetime.timedelta(1),
'PositiveIntegerField': 1459670713,
'NullBooleanField': None,
'SlugField': 'unique-slug-e9029f1edd5b45379f99d190f156a35f',
'BooleanField': True,
'FloatField': 0.69,
'EmailField': 'test@site.com',
'PositiveSmallIntegerField': 18723,
'CharField': 'Phosfluorescently productize accurate products',
'ImageField': 'sampleimage.png'
}
License
------------
- `MIT`_
.. _PyPI: https://pypi-hypernode.com/pypi/djipsum
.. _MIT: https://github.com/agusmakmun/djipsum/blob/master/LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
djipsum-1.0.4.zip
(16.6 kB
view details)
djipsum-1.0.4.tar.gz
(9.6 kB
view details)
File details
Details for the file djipsum-1.0.4.zip
.
File metadata
- Download URL: djipsum-1.0.4.zip
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47eaf8e922495591c0731992c9f66fcc7afa347d99f03ce0fa23aece8a1cc5f |
|
MD5 | d741d1e7ca209836118938e4ea098566 |
|
BLAKE2b-256 | 87cf894c6fa3a70a2c1d0788dc03a46128b4df061dc62ec379f976f3ef20eacf |
Provenance
File details
Details for the file djipsum-1.0.4.tar.gz
.
File metadata
- Download URL: djipsum-1.0.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c347b956e10d34634e2b200ee2921cb477a3c71d712b37cde11644dadbfc1ffb |
|
MD5 | f254fd96758b35071f56e8335b7aa9bb |
|
BLAKE2b-256 | e626330b6669f17d2d2466a83fd0e09fcd7ed6f32f11d9a50528f77d25121374 |