Skip to main content

Definition of models used for python-gitmodel

Project description

Unicore Gitmodels
=================

Definition of models used for python-gitmodel

Installation
------------

::

$ pip install unicore-gitmodels



Usage
-----

::

# models.py

from unicore_gitmodels.models import GitPageModel, GitCategoryModel

ws = Workspace('/path/to/repo/.git')
GitPage = ws.register_model(GitPageModel)
GitCategory = ws.register_model(GitCategoryModel)

::

# views.py

page = GitPage(title='a title', slug='a-title', content='some sample content')
page.save(True, message="sample git commit")
Authors
=======

Praekelt Foundation
-------------------

* Milton Madanda
Changelog
=========

1.0.1
-----
#. Ensure all files included in pypi package

1.0.0
-----
#. Initial version from unicore-cms/unicore-cms-django

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

unicore-gitmodels-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file unicore-gitmodels-1.0.1.tar.gz.

File metadata

File hashes

Hashes for unicore-gitmodels-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f7cd7ba5bdfbbbf5d91fa418e37e16eb4733ff2fa0272c33cf0dbb574defa21a
MD5 48d67a14dd6ce43e68af302fa1d9637a
BLAKE2b-256 5bb0a313b44d864a23a1d23e0eeba5065f34411d3d86bce7f31df84cd239541f

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