This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a streamlined Python ORM framework for SLQite3.

It intended to use a file write ORM,

provide some basic functions develop when small or micro projects.

Github: https://github.com/taojy123/nanorm

Author Email: taojy123@163.com

这是一个精简的Python ORM框架。旨在于用一个文件写出ORM,提供开发小型或微型项目时的一些基本功能。

为什么要使用nanorm?

当你的项目足够小,以至于不想与其他的多余库产生依赖关系,但是你又需要使用一些简单的ORM功能(SQLAlchemy对你来说过于庞大),这时你就可以选择Nanorm。它只有一个py文件,直接把它放在你的项目目录下就行,你甚至可以把它嵌入在你的源代码中。

为什么只支持sqlite3?

这个ORM的目的只在于解决一些小微项目的需求,sqlite3对于小微项目来说是很好的选择。因为在Python标准库中就有对sqlite3的支持,不需要像使用mysql时那样另外安装mysqldb库。另一方面,你也不用在你的电脑或服务器上安装数据库服务,大多数windows和unix的操作系统都自带了sqlite3的支持。我们的目的就是精简,极简。

如何使用?

下面是一个最简单的例子,具体的高级功能和用法可参照 test.py 文件中的测试用例:

from nanorm import *

set_db_name(“example.db”)

class User(Model):

name = CharField()

age = IntegerField(default=20)

sex = BooleanField()

s1 = User()

s1.name = “Joe”

s1.age = 45

s1.sex = True

s1.save()

joe = User.get(age=45)

print joe

Release History

Release History

1.8.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.8.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.8

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.6.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nanorm-1.8.2.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Apr 9, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting