yhttp-dbmanager 5.0.1__tar.gz → 6.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yhttp_dbmanager-5.0.1/yhttp_dbmanager.egg-info → yhttp_dbmanager-6.0.2}/PKG-INFO +121 -3
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/README.md +108 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/setup.py +1 -1
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/tests/test_cli.py +1 -1
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/tests/test_install.py +1 -1
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp/ext/dbmanager/__init__.py +1 -1
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp/ext/dbmanager/install.py +0 -2
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2/yhttp_dbmanager.egg-info}/PKG-INFO +121 -3
- yhttp_dbmanager-6.0.2/yhttp_dbmanager.egg-info/requires.txt +2 -0
- yhttp_dbmanager-5.0.1/yhttp_dbmanager.egg-info/requires.txt +0 -2
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/LICENSE +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/setup.cfg +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/tests/test_dbmanager.py +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/tests/test_dburi.py +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp/ext/dbmanager/cli.py +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp/ext/dbmanager/dbmanager.py +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp/ext/dbmanager/uri.py +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp_dbmanager.egg-info/SOURCES.txt +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp_dbmanager.egg-info/dependency_links.txt +0 -0
- {yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp_dbmanager.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: yhttp-dbmanager
|
|
3
|
-
Version:
|
|
3
|
+
Version: 6.0.2
|
|
4
4
|
Summary: Database manager command line interface and API for yhttp.
|
|
5
5
|
Home-page: http://github.com/yhttp/yhttp-dbmanager
|
|
6
6
|
Author: Vahid Mardani
|
|
@@ -22,14 +22,132 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
22
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: yhttp<7
|
|
25
|
+
Requires-Dist: yhttp<8,>=7.0.1
|
|
26
26
|
Requires-Dist: psycopg2
|
|
27
|
+
Dynamic: author
|
|
28
|
+
Dynamic: author-email
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: requires-dist
|
|
36
|
+
Dynamic: summary
|
|
27
37
|
|
|
28
38
|
# yhttp-dbmanager
|
|
29
39
|
|
|
30
40
|
A `yhttp` extension to create and remove database(s) using command line and
|
|
31
41
|
API.
|
|
32
42
|
|
|
43
|
+
|
|
44
|
+
## Quickstart
|
|
45
|
+
|
|
46
|
+
### Dependencies
|
|
47
|
+
Install `postgresql` brefore use of this project.
|
|
48
|
+
```bash
|
|
49
|
+
apt install postgresql
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Prepare
|
|
53
|
+
|
|
54
|
+
Create and grant the `postgresql` role with `createdb` permission to
|
|
55
|
+
authenticate the current `unix` user within `postgresql` using the peer
|
|
56
|
+
authentication.
|
|
57
|
+
```bash
|
|
58
|
+
echo "CREATE USER ${USER} WITH CREATEDB" | sudo -u postgres psql
|
|
59
|
+
# Or
|
|
60
|
+
echo "ALTER USER ${USER} CREATEDB" | sudo -u postgres psql
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Usage
|
|
64
|
+
|
|
65
|
+
Import and install the extension inside the `roolup.py`:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
# foo/version.py
|
|
69
|
+
__version__ = '0.1.'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
# foo/rollup.py
|
|
75
|
+
from yhttp.core import Application
|
|
76
|
+
from yhttp.ext import dbmanager
|
|
77
|
+
|
|
78
|
+
from .version import __version__
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
app = Application(__version__, 'foo')
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# builtin settings
|
|
85
|
+
app.settings.merge('''
|
|
86
|
+
db:
|
|
87
|
+
url: postgres://:@/ticketing
|
|
88
|
+
```)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# install extensions
|
|
92
|
+
dbmanager.install(app)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# http handlers
|
|
96
|
+
from . import handlers
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
# foo/__init__.py
|
|
102
|
+
from .version import __version__
|
|
103
|
+
from .rollup import app
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
# setup.py
|
|
109
|
+
import re
|
|
110
|
+
from os.path import join, dirname
|
|
111
|
+
|
|
112
|
+
from setuptools import setup, find_packages
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# reading package version (same way the sqlalchemy does)
|
|
116
|
+
with open(join(dirname(__file__), 'foo/version.py')) as v_file:
|
|
117
|
+
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S).\
|
|
118
|
+
match(v_file.read()).group(1)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
dependencies = [
|
|
122
|
+
'yhttp >= 7.0.1, < 8'
|
|
123
|
+
'yhttp-dbmanager >= 5.0.1, < 6'
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
setup(
|
|
128
|
+
name='foo',
|
|
129
|
+
version=package_version,
|
|
130
|
+
install_requires=dependencies,
|
|
131
|
+
packages=find_packages(
|
|
132
|
+
where='.',
|
|
133
|
+
exclude=['tests']
|
|
134
|
+
),
|
|
135
|
+
entry_points={
|
|
136
|
+
'console_scripts': [
|
|
137
|
+
'foo = foo:app.climain'
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
After installing the extension these command line interfaces will be available
|
|
145
|
+
as as subcommand of your application command line interface:
|
|
146
|
+
```bash
|
|
147
|
+
foo db --help
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
|
|
33
151
|
## Contribution
|
|
34
152
|
|
|
35
153
|
### Dependencies
|
|
@@ -3,6 +3,114 @@
|
|
|
3
3
|
A `yhttp` extension to create and remove database(s) using command line and
|
|
4
4
|
API.
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
## Quickstart
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
Install `postgresql` brefore use of this project.
|
|
11
|
+
```bash
|
|
12
|
+
apt install postgresql
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Prepare
|
|
16
|
+
|
|
17
|
+
Create and grant the `postgresql` role with `createdb` permission to
|
|
18
|
+
authenticate the current `unix` user within `postgresql` using the peer
|
|
19
|
+
authentication.
|
|
20
|
+
```bash
|
|
21
|
+
echo "CREATE USER ${USER} WITH CREATEDB" | sudo -u postgres psql
|
|
22
|
+
# Or
|
|
23
|
+
echo "ALTER USER ${USER} CREATEDB" | sudo -u postgres psql
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Usage
|
|
27
|
+
|
|
28
|
+
Import and install the extension inside the `roolup.py`:
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
# foo/version.py
|
|
32
|
+
__version__ = '0.1.'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
# foo/rollup.py
|
|
38
|
+
from yhttp.core import Application
|
|
39
|
+
from yhttp.ext import dbmanager
|
|
40
|
+
|
|
41
|
+
from .version import __version__
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
app = Application(__version__, 'foo')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# builtin settings
|
|
48
|
+
app.settings.merge('''
|
|
49
|
+
db:
|
|
50
|
+
url: postgres://:@/ticketing
|
|
51
|
+
```)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# install extensions
|
|
55
|
+
dbmanager.install(app)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# http handlers
|
|
59
|
+
from . import handlers
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
# foo/__init__.py
|
|
65
|
+
from .version import __version__
|
|
66
|
+
from .rollup import app
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
# setup.py
|
|
72
|
+
import re
|
|
73
|
+
from os.path import join, dirname
|
|
74
|
+
|
|
75
|
+
from setuptools import setup, find_packages
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# reading package version (same way the sqlalchemy does)
|
|
79
|
+
with open(join(dirname(__file__), 'foo/version.py')) as v_file:
|
|
80
|
+
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S).\
|
|
81
|
+
match(v_file.read()).group(1)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
dependencies = [
|
|
85
|
+
'yhttp >= 7.0.1, < 8'
|
|
86
|
+
'yhttp-dbmanager >= 5.0.1, < 6'
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
setup(
|
|
91
|
+
name='foo',
|
|
92
|
+
version=package_version,
|
|
93
|
+
install_requires=dependencies,
|
|
94
|
+
packages=find_packages(
|
|
95
|
+
where='.',
|
|
96
|
+
exclude=['tests']
|
|
97
|
+
),
|
|
98
|
+
entry_points={
|
|
99
|
+
'console_scripts': [
|
|
100
|
+
'foo = foo:app.climain'
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
After installing the extension these command line interfaces will be available
|
|
108
|
+
as as subcommand of your application command line interface:
|
|
109
|
+
```bash
|
|
110
|
+
foo db --help
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
|
|
6
114
|
## Contribution
|
|
7
115
|
|
|
8
116
|
### Dependencies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: yhttp-dbmanager
|
|
3
|
-
Version:
|
|
3
|
+
Version: 6.0.2
|
|
4
4
|
Summary: Database manager command line interface and API for yhttp.
|
|
5
5
|
Home-page: http://github.com/yhttp/yhttp-dbmanager
|
|
6
6
|
Author: Vahid Mardani
|
|
@@ -22,14 +22,132 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
22
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: yhttp<7
|
|
25
|
+
Requires-Dist: yhttp<8,>=7.0.1
|
|
26
26
|
Requires-Dist: psycopg2
|
|
27
|
+
Dynamic: author
|
|
28
|
+
Dynamic: author-email
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: home-page
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: requires-dist
|
|
36
|
+
Dynamic: summary
|
|
27
37
|
|
|
28
38
|
# yhttp-dbmanager
|
|
29
39
|
|
|
30
40
|
A `yhttp` extension to create and remove database(s) using command line and
|
|
31
41
|
API.
|
|
32
42
|
|
|
43
|
+
|
|
44
|
+
## Quickstart
|
|
45
|
+
|
|
46
|
+
### Dependencies
|
|
47
|
+
Install `postgresql` brefore use of this project.
|
|
48
|
+
```bash
|
|
49
|
+
apt install postgresql
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Prepare
|
|
53
|
+
|
|
54
|
+
Create and grant the `postgresql` role with `createdb` permission to
|
|
55
|
+
authenticate the current `unix` user within `postgresql` using the peer
|
|
56
|
+
authentication.
|
|
57
|
+
```bash
|
|
58
|
+
echo "CREATE USER ${USER} WITH CREATEDB" | sudo -u postgres psql
|
|
59
|
+
# Or
|
|
60
|
+
echo "ALTER USER ${USER} CREATEDB" | sudo -u postgres psql
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Usage
|
|
64
|
+
|
|
65
|
+
Import and install the extension inside the `roolup.py`:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
# foo/version.py
|
|
69
|
+
__version__ = '0.1.'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
# foo/rollup.py
|
|
75
|
+
from yhttp.core import Application
|
|
76
|
+
from yhttp.ext import dbmanager
|
|
77
|
+
|
|
78
|
+
from .version import __version__
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
app = Application(__version__, 'foo')
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# builtin settings
|
|
85
|
+
app.settings.merge('''
|
|
86
|
+
db:
|
|
87
|
+
url: postgres://:@/ticketing
|
|
88
|
+
```)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# install extensions
|
|
92
|
+
dbmanager.install(app)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# http handlers
|
|
96
|
+
from . import handlers
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
# foo/__init__.py
|
|
102
|
+
from .version import __version__
|
|
103
|
+
from .rollup import app
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
# setup.py
|
|
109
|
+
import re
|
|
110
|
+
from os.path import join, dirname
|
|
111
|
+
|
|
112
|
+
from setuptools import setup, find_packages
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# reading package version (same way the sqlalchemy does)
|
|
116
|
+
with open(join(dirname(__file__), 'foo/version.py')) as v_file:
|
|
117
|
+
package_version = re.compile('.*__version__ = \'(.*?)\'', re.S).\
|
|
118
|
+
match(v_file.read()).group(1)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
dependencies = [
|
|
122
|
+
'yhttp >= 7.0.1, < 8'
|
|
123
|
+
'yhttp-dbmanager >= 5.0.1, < 6'
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
setup(
|
|
128
|
+
name='foo',
|
|
129
|
+
version=package_version,
|
|
130
|
+
install_requires=dependencies,
|
|
131
|
+
packages=find_packages(
|
|
132
|
+
where='.',
|
|
133
|
+
exclude=['tests']
|
|
134
|
+
),
|
|
135
|
+
entry_points={
|
|
136
|
+
'console_scripts': [
|
|
137
|
+
'foo = foo:app.climain'
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
After installing the extension these command line interfaces will be available
|
|
145
|
+
as as subcommand of your application command line interface:
|
|
146
|
+
```bash
|
|
147
|
+
foo db --help
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
|
|
33
151
|
## Contribution
|
|
34
152
|
|
|
35
153
|
### Dependencies
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yhttp_dbmanager-5.0.1 → yhttp_dbmanager-6.0.2}/yhttp_dbmanager.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|