File: PKG-INFO

package info (click to toggle)
storm 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: python: 22,677; ansic: 1,648; makefile: 53
file content (231 lines) | stat: -rw-r--r-- 8,298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
Metadata-Version: 2.4
Name: storm
Version: 1.1
Summary: Storm is an object-relational mapper (ORM) for Python developed at Canonical.
Home-page: https://storm.canonical.com
Download-URL: https://launchpad.net/storm/+download
Author: Gustavo Niemeyer
Author-email: gustavo@niemeyer.net
Maintainer: Storm Developers
Maintainer-email: storm@lists.canonical.com
License: LGPL
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Database
Classifier: Topic :: Database :: Front-Ends
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: packaging>=14.1
Provides-Extra: doc
Requires-Dist: fixtures; extra == "doc"
Requires-Dist: sphinx; extra == "doc"
Requires-Dist: sphinx-epytext; extra == "doc"
Provides-Extra: test
Requires-Dist: fixtures>=1.3.0; extra == "test"
Requires-Dist: mysqlclient; extra == "test"
Requires-Dist: pgbouncer>=0.0.7; extra == "test"
Requires-Dist: postgresfixture; extra == "test"
Requires-Dist: psycopg2>=2.3.0; extra == "test"
Requires-Dist: testresources>=0.2.4; extra == "test"
Requires-Dist: testtools>=0.9.8; extra == "test"
Requires-Dist: timeline>=0.0.2; extra == "test"
Requires-Dist: transaction>=1.0.0; extra == "test"
Requires-Dist: Twisted>=10.0.0; extra == "test"
Requires-Dist: zope.component>=3.8.0; extra == "test"
Requires-Dist: zope.configuration; extra == "test"
Requires-Dist: zope.interface>=4.0.0; extra == "test"
Requires-Dist: zope.security>=3.7.2; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

Storm is an Object Relational Mapper for Python developed at
Canonical.  API docs, a manual, and a tutorial are available from:

https://storm.canonical.com/


Introduction
============

The project was in development for more than a year for use in
Canonical projects such as Launchpad and Landscape before being
released as free software on July 9th, 2007.

Design:

 * Clean and lightweight API offers a short learning curve and
   long-term maintainability.
 * Storm is developed in a test-driven manner. An untested line of
   code is considered a bug.
 * Storm needs no special class constructors, nor imperative base
   classes.
 * Storm is well designed (different classes have very clear
   boundaries, with small and clean public APIs).
 * Designed from day one to work both with thin relational
   databases, such as SQLite, and big iron systems like PostgreSQL
   and MySQL.
 * Storm is easy to debug, since its code is written with a KISS
   principle, and thus is easy to understand.
 * Designed from day one to work both at the low end, with trivial
   small databases, and the high end, with applications accessing
   billion row tables and committing to multiple database backends.
 * It's very easy to write and support backends for Storm (current
   backends have around 100 lines of code).

Features:

 * Storm is fast.
 * Storm lets you efficiently access and update large datasets by
   allowing you to formulate complex queries spanning multiple
   tables using Python.
 * Storm allows you to fallback to SQL if needed (or if you just
   prefer), allowing you to mix "old school" code and ORM code
 * Storm handles composed primary keys with ease (no need for
   surrogate keys).
 * Storm doesn't do schema management, and as a result you're free
   to manage the schema as wanted, and creating classes that work
   with Storm is clean and simple.
 * Storm works very well connecting to several databases and using
   the same Python types (or different ones) with all of them.
 * Storm can handle obj.attr = <A SQL expression> assignments, when
   that's really needed (the expression is executed at INSERT/UPDATE
   time).
 * Storm handles relationships between objects even before they were
   added to a database.
 * Storm works well with existing database schemas.
 * Storm will flush changes to the database automatically when
   needed, so that queries made affect recently modified objects.


License
=======

Copyright (C) 2006-2020 Canonical, Ltd.  All contributions must have
copyright assigned to Canonical.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA

On Ubuntu systems, the complete text of the GNU Lesser General
Public Version 2.1 License is in /usr/share/common-licenses/LGPL-2.1


Developing Storm
================

SHORT VERSION:  If you are running ubuntu, or probably debian, the
following should work.  If not, and for reference, the long version
is below.

 $ dev/ubuntu-deps
 $ echo "$PWD/** rwk," | sudo tee /etc/apparmor.d/local/usr.sbin.mysqld >/dev/null
 $ sudo aa-enforce /usr/sbin/mysqld
 $ make develop
 $ make check

LONG VERSION:

The following instructions describe the procedure for setting up a
development environment and running the test suite.

Installing dependencies
-----------------------

The following instructions assume that you're using Ubuntu.  The same procedure
will probably work without changes on a Debian system and with minimal changes
on a non-Debian-based linux distribution.  In order to run the test suite, and
exercise all supported backends, you will need to install MySQL and
PostgreSQL, along with the related Python database drivers:

 $ sudo apt-get install \
       mysql-server \
       postgresql pgbouncer \
       build-essential

These will take a few minutes to download.

The Python dependencies for running tests can be installed with apt-get:

 $ apt-get install \
       python3-fixtures \
       python3-pgbouncer \
       python3-psycopg2 \
       python3-testresources \
       python3-timeline \
       python3-transaction \
       python3-twisted \
       python3-zope.component \
       python3-zope.security

Alternatively, dependencies can be downloaded as eggs into the current
directory with:

 $ make develop

This ensures that all dependencies are available, downloading from
PyPI as appropriate.

Database setup
--------------

Most database setup is done automatically by the test suite.  However,
Ubuntu's default MySQL packaging ships an AppArmor profile that prevents it
from writing to a local data directory.  To allow the test suite to do this,
you will need to grant it access, which is most easily done by adding a line
such as this to /etc/apparmor.d/local/usr.sbin.mysqld:

  /path/to/storm/** rwk,

Then reload the profile:

  $ sudo aa-enforce /usr/sbin/mysqld

Running the tests
-----------------

Finally, its time to run the tests!  Go into the base directory of
the storm branch you want to test, and run:

 $ make check

They'll take a while to run.  All tests should pass: failures mean
there's a problem with your environment or a bug in Storm.