Skip to main content

Formerly project was formgear.

https://api.travis-ci.org/xen/hopak.png?branch=master

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.5.1:

  • setup.py dependency changed to setuptools form distutils

0.5:

  • Python 3 support

0.4.2:

  • urgent fix for non saving model instances

0.4.1:

  • fix release, added hopak.ds to package

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.

Release files for hopak 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hopak 0.5.1
File Size Uploaded
hopak-0.5.1.tar.gz 16.9 kB Details

Release files / hopak-0.5.1.tar.gz

Download URL hopak-0.5.1.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
38414f3c77cad2d00799af3037dd1250f2ae2ed4abf5815d9d8576776a13e161
BLAKE2b-256 checksum
How to use checksums
8fd1b95288c6798e1d3b70a5cacd3b0eca1681e24a9ea45ad9483045cd40b55e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file

0.5

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page