Skip to main content

hopak framework base package

Project description

Formely project name was formgear.

https://secure.travis-ci.org/xen/hopak.png

Main idea behind hopak allow iteratively create data models in easy readable form and use them as part of your websites. At this moment only MongoDB is allowed.

Imagine what happends when you plan to create new site (for yourself or client). You doing several steps and one important is make raw draft of what content you will publish and relation between different types of content. Usually it implies you bootstrap your framework, step over several stages of creating scaffold and only then write models code. In the worst case you write SQL.

But we are living in 21 century, have decoded DNA, pushing frontier into space, digging into core of the atoms and listening dubstep! Why we must to write all that crap? Why computers cann’t just do all this stuff?

So that is why we invent hopak. Because we want computers to do that they supposed to do.

hopak is only part of this effort, but there are already some results. So, example how to make simple model. We use YAML because it is very human readable. Minimal file:

# user.yaml
title: User
description: >
  This is user model.

fields:
  - name: name
  - name: email
  - name: site
  - name: about

This file is enough to use it as model in your python code:

# models.py
from hopak.models import Model
class User(Model):
    __yaml__ = 'user.yaml'

hopak is only a library for bigger framework, if you decide to use the whole stack then you will get site with admin section including list, edit, add, search, delete sections for each models.

Changes

0.4:

  • renamed from formgear to hopak

0.3.5:

  • added independed data sources, but atm still have only mongodb datasource

0.3.4:

  • Started this log.

More

Links:

More documentation is approaching.

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

hopak-0.4.tar.gz (15.3 kB view details)

Uploaded Source

File details

Details for the file hopak-0.4.tar.gz.

File metadata

  • Download URL: hopak-0.4.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hopak-0.4.tar.gz
Algorithm Hash digest
SHA256 c36291d54623087aaaef7594ab65d7fee13e12f317c0c6505fd82991593c24f7
MD5 6c3ce8d68692543507689d76e8c9b016
BLAKE2b-256 3dc9d92096a864085912212cafe5ac5c387765c4de174f32f8d54cf0ce707f63

See more details on using hashes here.

Provenance

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