xync-schema 0.6.36.dev4__tar.gz → 0.6.37__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.
Files changed (22) hide show
  1. xync_schema-0.6.37/PKG-INFO +204 -0
  2. xync_schema-0.6.37/README.md +188 -0
  3. xync_schema-0.6.37/xync_schema.egg-info/PKG-INFO +204 -0
  4. xync_schema-0.6.36.dev4/PKG-INFO +0 -47
  5. xync_schema-0.6.36.dev4/README.md +0 -31
  6. xync_schema-0.6.36.dev4/xync_schema.egg-info/PKG-INFO +0 -47
  7. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/.env.sample +0 -0
  8. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/.gitignore +0 -0
  9. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/.pre-commit-config.yaml +0 -0
  10. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/makefile +0 -0
  11. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/pyproject.toml +0 -0
  12. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/setup.cfg +0 -0
  13. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/tests/__init__.py +0 -0
  14. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/tests/test_db.py +0 -0
  15. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema/__init__.py +0 -0
  16. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema/enums.py +0 -0
  17. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema/models.py +0 -0
  18. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema/pydantic.py +0 -0
  19. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema.egg-info/SOURCES.txt +0 -0
  20. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema.egg-info/dependency_links.txt +0 -0
  21. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema.egg-info/requires.txt +0 -0
  22. {xync_schema-0.6.36.dev4 → xync_schema-0.6.37}/xync_schema.egg-info/top_level.txt +0 -0
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.1
2
+ Name: xync-schema
3
+ Version: 0.6.37
4
+ Summary: XyncNet project database model schema
5
+ Author-email: Mike Artemiev <mixartemev@gmail.com>
6
+ License: EULA
7
+ Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
+ Project-URL: Repository, https://gitlab.com/xync/back/schema
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: xtg-auth
12
+ Provides-Extra: dev
13
+ Requires-Dist: build; extra == "dev"
14
+ Requires-Dist: pytest-asyncio; extra == "dev"
15
+ Requires-Dist: twine; extra == "dev"
16
+
17
+ ## INSTALL
18
+ ```bash
19
+ # Create python virtual environment
20
+ python3 -m venv venv
21
+ # Activate this environment
22
+ source venv/bin/activate
23
+ # Install dependencies
24
+ pip install -r requirements.dev.txt
25
+
26
+ # Create pg db
27
+ createdb --U username -W dbname
28
+ ## set password for db user
29
+
30
+ # Copy .env file from sample template
31
+ cp .env.sample .env
32
+ ## set your pg creds in .env file
33
+ ```
34
+
35
+ ## TEST
36
+ ```bash
37
+ pytest
38
+ ```
39
+
40
+
41
+ ### pre-commit
42
+ You can done `commit` only after `pytest` will done success.
43
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
+ ```shell
45
+ #!/bin/sh
46
+ pytest
47
+ ```
48
+
49
+ ### Relations
50
+ ```mermaid
51
+ classDiagram
52
+ direction BT
53
+ class Agent {
54
+ timestamp(0) with time zone created_at
55
+ timestamp(0) with time zone updated_at
56
+ integer exid
57
+ jsonb auth
58
+ smallint ex_id
59
+ bigint user_id
60
+ integer id
61
+ }
62
+ class Asset {
63
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
64
+ double precision free
65
+ double precision freeze
66
+ double precision lock
67
+ double precision target
68
+ integer agent_id
69
+ smallint coin_id
70
+ integer id
71
+ }
72
+ class Coin {
73
+ varchar(15) ticker
74
+ double precision rate
75
+ boolean is_fiat
76
+ smallint id
77
+ }
78
+ class CoinEx {
79
+ varchar(31) exid
80
+ boolean p2p
81
+ smallint coin_id
82
+ smallint ex_id
83
+ integer id
84
+ }
85
+ class Country {
86
+ integer code
87
+ varchar(3) short
88
+ varchar(63) name
89
+ smallint cur_id
90
+ smallint id
91
+ }
92
+ class Cur {
93
+ varchar(3) ticker
94
+ double precision rate
95
+ varchar(63) country
96
+ smallint id
97
+ }
98
+ class CurEx {
99
+ varchar(31) exid
100
+ boolean p2p
101
+ smallint cur_id
102
+ smallint ex_id
103
+ integer id
104
+ }
105
+ class CurExCountry {
106
+ integer curexs
107
+ smallint country_id
108
+ }
109
+ class Ex {
110
+ varchar(31) name
111
+ varchar(63) host /* With no protocol 'https://' */
112
+ varchar(63) host_p2p /* With no protocol 'https://' */
113
+ varchar(63) url_login /* With no protocol 'https://' */
114
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
115
+ varchar(511) logo
116
+ smallint id
117
+ }
118
+ class Fiat {
119
+ varchar(127) detail
120
+ varchar(127) name
121
+ double precision amount
122
+ double precision target
123
+ smallint country_id
124
+ integer pmcur_id
125
+ bigint user_id
126
+ integer id
127
+ }
128
+ class FiatEx {
129
+ integer exid
130
+ smallint ex_id
131
+ integer fiat_id
132
+ integer id
133
+ }
134
+ class Limit {
135
+ integer amount
136
+ integer unit
137
+ integer level
138
+ boolean income
139
+ bigint added_by_id
140
+ integer pmcur_id
141
+ integer id
142
+ }
143
+ class Pm {
144
+ varchar(63) name
145
+ smallint rank
146
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
147
+ varchar(127) logo
148
+ boolean multiAllow
149
+ integer id
150
+ }
151
+ class PmCur {
152
+ smallint cur_id
153
+ integer pm_id
154
+ integer id
155
+ }
156
+ class PmCurEx {
157
+ boolean blocked
158
+ smallint ex_id
159
+ integer pmcur_id
160
+ integer id
161
+ }
162
+ class PmEx {
163
+ varchar(31) exid
164
+ smallint ex_id
165
+ integer pm_id
166
+ integer id
167
+ }
168
+ class User {
169
+ timestamp(0) with time zone created_at
170
+ timestamp(0) with time zone updated_at
171
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
172
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
173
+ varchar(95) username
174
+ bigint ref_id
175
+ bigint id
176
+ }
177
+
178
+ Agent --> Ex : ex_id-id
179
+ Agent --> User : user_id-id
180
+ Asset --> Agent : agent_id-id
181
+ Asset --> Coin : coin_id-id
182
+ CoinEx --> Coin : coin_id-id
183
+ CoinEx --> Ex : ex_id-id
184
+ Country --> Cur : cur_id-id
185
+ CurEx --> Cur : cur_id-id
186
+ CurEx --> Ex : ex_id-id
187
+ CurExCountry --> Country : country_id-id
188
+ CurExCountry --> CurEx : curexs-id
189
+ Fiat --> Country : country_id-id
190
+ Fiat --> PmCur : pmcur_id-id
191
+ Fiat --> User : user_id-id
192
+ FiatEx --> Ex : ex_id-id
193
+ FiatEx --> Fiat : fiat_id-id
194
+ Limit --> PmCur : pmcur_id-id
195
+ Limit --> User : added_by_id-id
196
+ PmCur --> Cur : cur_id-id
197
+ PmCur --> Pm : pm_id-id
198
+ PmCurEx --> Ex : ex_id-id
199
+ PmCurEx --> PmCur : pmcur_id-id
200
+ PmEx --> Ex : ex_id-id
201
+ PmEx --> Pm : pm_id-id
202
+ User --> User : ref_id-id
203
+
204
+ ```
@@ -0,0 +1,188 @@
1
+ ## INSTALL
2
+ ```bash
3
+ # Create python virtual environment
4
+ python3 -m venv venv
5
+ # Activate this environment
6
+ source venv/bin/activate
7
+ # Install dependencies
8
+ pip install -r requirements.dev.txt
9
+
10
+ # Create pg db
11
+ createdb --U username -W dbname
12
+ ## set password for db user
13
+
14
+ # Copy .env file from sample template
15
+ cp .env.sample .env
16
+ ## set your pg creds in .env file
17
+ ```
18
+
19
+ ## TEST
20
+ ```bash
21
+ pytest
22
+ ```
23
+
24
+
25
+ ### pre-commit
26
+ You can done `commit` only after `pytest` will done success.
27
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
28
+ ```shell
29
+ #!/bin/sh
30
+ pytest
31
+ ```
32
+
33
+ ### Relations
34
+ ```mermaid
35
+ classDiagram
36
+ direction BT
37
+ class Agent {
38
+ timestamp(0) with time zone created_at
39
+ timestamp(0) with time zone updated_at
40
+ integer exid
41
+ jsonb auth
42
+ smallint ex_id
43
+ bigint user_id
44
+ integer id
45
+ }
46
+ class Asset {
47
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
48
+ double precision free
49
+ double precision freeze
50
+ double precision lock
51
+ double precision target
52
+ integer agent_id
53
+ smallint coin_id
54
+ integer id
55
+ }
56
+ class Coin {
57
+ varchar(15) ticker
58
+ double precision rate
59
+ boolean is_fiat
60
+ smallint id
61
+ }
62
+ class CoinEx {
63
+ varchar(31) exid
64
+ boolean p2p
65
+ smallint coin_id
66
+ smallint ex_id
67
+ integer id
68
+ }
69
+ class Country {
70
+ integer code
71
+ varchar(3) short
72
+ varchar(63) name
73
+ smallint cur_id
74
+ smallint id
75
+ }
76
+ class Cur {
77
+ varchar(3) ticker
78
+ double precision rate
79
+ varchar(63) country
80
+ smallint id
81
+ }
82
+ class CurEx {
83
+ varchar(31) exid
84
+ boolean p2p
85
+ smallint cur_id
86
+ smallint ex_id
87
+ integer id
88
+ }
89
+ class CurExCountry {
90
+ integer curexs
91
+ smallint country_id
92
+ }
93
+ class Ex {
94
+ varchar(31) name
95
+ varchar(63) host /* With no protocol 'https://' */
96
+ varchar(63) host_p2p /* With no protocol 'https://' */
97
+ varchar(63) url_login /* With no protocol 'https://' */
98
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
99
+ varchar(511) logo
100
+ smallint id
101
+ }
102
+ class Fiat {
103
+ varchar(127) detail
104
+ varchar(127) name
105
+ double precision amount
106
+ double precision target
107
+ smallint country_id
108
+ integer pmcur_id
109
+ bigint user_id
110
+ integer id
111
+ }
112
+ class FiatEx {
113
+ integer exid
114
+ smallint ex_id
115
+ integer fiat_id
116
+ integer id
117
+ }
118
+ class Limit {
119
+ integer amount
120
+ integer unit
121
+ integer level
122
+ boolean income
123
+ bigint added_by_id
124
+ integer pmcur_id
125
+ integer id
126
+ }
127
+ class Pm {
128
+ varchar(63) name
129
+ smallint rank
130
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
131
+ varchar(127) logo
132
+ boolean multiAllow
133
+ integer id
134
+ }
135
+ class PmCur {
136
+ smallint cur_id
137
+ integer pm_id
138
+ integer id
139
+ }
140
+ class PmCurEx {
141
+ boolean blocked
142
+ smallint ex_id
143
+ integer pmcur_id
144
+ integer id
145
+ }
146
+ class PmEx {
147
+ varchar(31) exid
148
+ smallint ex_id
149
+ integer pm_id
150
+ integer id
151
+ }
152
+ class User {
153
+ timestamp(0) with time zone created_at
154
+ timestamp(0) with time zone updated_at
155
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
156
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
157
+ varchar(95) username
158
+ bigint ref_id
159
+ bigint id
160
+ }
161
+
162
+ Agent --> Ex : ex_id-id
163
+ Agent --> User : user_id-id
164
+ Asset --> Agent : agent_id-id
165
+ Asset --> Coin : coin_id-id
166
+ CoinEx --> Coin : coin_id-id
167
+ CoinEx --> Ex : ex_id-id
168
+ Country --> Cur : cur_id-id
169
+ CurEx --> Cur : cur_id-id
170
+ CurEx --> Ex : ex_id-id
171
+ CurExCountry --> Country : country_id-id
172
+ CurExCountry --> CurEx : curexs-id
173
+ Fiat --> Country : country_id-id
174
+ Fiat --> PmCur : pmcur_id-id
175
+ Fiat --> User : user_id-id
176
+ FiatEx --> Ex : ex_id-id
177
+ FiatEx --> Fiat : fiat_id-id
178
+ Limit --> PmCur : pmcur_id-id
179
+ Limit --> User : added_by_id-id
180
+ PmCur --> Cur : cur_id-id
181
+ PmCur --> Pm : pm_id-id
182
+ PmCurEx --> Ex : ex_id-id
183
+ PmCurEx --> PmCur : pmcur_id-id
184
+ PmEx --> Ex : ex_id-id
185
+ PmEx --> Pm : pm_id-id
186
+ User --> User : ref_id-id
187
+
188
+ ```
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.1
2
+ Name: xync-schema
3
+ Version: 0.6.37
4
+ Summary: XyncNet project database model schema
5
+ Author-email: Mike Artemiev <mixartemev@gmail.com>
6
+ License: EULA
7
+ Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
+ Project-URL: Repository, https://gitlab.com/xync/back/schema
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: xtg-auth
12
+ Provides-Extra: dev
13
+ Requires-Dist: build; extra == "dev"
14
+ Requires-Dist: pytest-asyncio; extra == "dev"
15
+ Requires-Dist: twine; extra == "dev"
16
+
17
+ ## INSTALL
18
+ ```bash
19
+ # Create python virtual environment
20
+ python3 -m venv venv
21
+ # Activate this environment
22
+ source venv/bin/activate
23
+ # Install dependencies
24
+ pip install -r requirements.dev.txt
25
+
26
+ # Create pg db
27
+ createdb --U username -W dbname
28
+ ## set password for db user
29
+
30
+ # Copy .env file from sample template
31
+ cp .env.sample .env
32
+ ## set your pg creds in .env file
33
+ ```
34
+
35
+ ## TEST
36
+ ```bash
37
+ pytest
38
+ ```
39
+
40
+
41
+ ### pre-commit
42
+ You can done `commit` only after `pytest` will done success.
43
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
+ ```shell
45
+ #!/bin/sh
46
+ pytest
47
+ ```
48
+
49
+ ### Relations
50
+ ```mermaid
51
+ classDiagram
52
+ direction BT
53
+ class Agent {
54
+ timestamp(0) with time zone created_at
55
+ timestamp(0) with time zone updated_at
56
+ integer exid
57
+ jsonb auth
58
+ smallint ex_id
59
+ bigint user_id
60
+ integer id
61
+ }
62
+ class Asset {
63
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
64
+ double precision free
65
+ double precision freeze
66
+ double precision lock
67
+ double precision target
68
+ integer agent_id
69
+ smallint coin_id
70
+ integer id
71
+ }
72
+ class Coin {
73
+ varchar(15) ticker
74
+ double precision rate
75
+ boolean is_fiat
76
+ smallint id
77
+ }
78
+ class CoinEx {
79
+ varchar(31) exid
80
+ boolean p2p
81
+ smallint coin_id
82
+ smallint ex_id
83
+ integer id
84
+ }
85
+ class Country {
86
+ integer code
87
+ varchar(3) short
88
+ varchar(63) name
89
+ smallint cur_id
90
+ smallint id
91
+ }
92
+ class Cur {
93
+ varchar(3) ticker
94
+ double precision rate
95
+ varchar(63) country
96
+ smallint id
97
+ }
98
+ class CurEx {
99
+ varchar(31) exid
100
+ boolean p2p
101
+ smallint cur_id
102
+ smallint ex_id
103
+ integer id
104
+ }
105
+ class CurExCountry {
106
+ integer curexs
107
+ smallint country_id
108
+ }
109
+ class Ex {
110
+ varchar(31) name
111
+ varchar(63) host /* With no protocol 'https://' */
112
+ varchar(63) host_p2p /* With no protocol 'https://' */
113
+ varchar(63) url_login /* With no protocol 'https://' */
114
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
115
+ varchar(511) logo
116
+ smallint id
117
+ }
118
+ class Fiat {
119
+ varchar(127) detail
120
+ varchar(127) name
121
+ double precision amount
122
+ double precision target
123
+ smallint country_id
124
+ integer pmcur_id
125
+ bigint user_id
126
+ integer id
127
+ }
128
+ class FiatEx {
129
+ integer exid
130
+ smallint ex_id
131
+ integer fiat_id
132
+ integer id
133
+ }
134
+ class Limit {
135
+ integer amount
136
+ integer unit
137
+ integer level
138
+ boolean income
139
+ bigint added_by_id
140
+ integer pmcur_id
141
+ integer id
142
+ }
143
+ class Pm {
144
+ varchar(63) name
145
+ smallint rank
146
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
147
+ varchar(127) logo
148
+ boolean multiAllow
149
+ integer id
150
+ }
151
+ class PmCur {
152
+ smallint cur_id
153
+ integer pm_id
154
+ integer id
155
+ }
156
+ class PmCurEx {
157
+ boolean blocked
158
+ smallint ex_id
159
+ integer pmcur_id
160
+ integer id
161
+ }
162
+ class PmEx {
163
+ varchar(31) exid
164
+ smallint ex_id
165
+ integer pm_id
166
+ integer id
167
+ }
168
+ class User {
169
+ timestamp(0) with time zone created_at
170
+ timestamp(0) with time zone updated_at
171
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
172
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
173
+ varchar(95) username
174
+ bigint ref_id
175
+ bigint id
176
+ }
177
+
178
+ Agent --> Ex : ex_id-id
179
+ Agent --> User : user_id-id
180
+ Asset --> Agent : agent_id-id
181
+ Asset --> Coin : coin_id-id
182
+ CoinEx --> Coin : coin_id-id
183
+ CoinEx --> Ex : ex_id-id
184
+ Country --> Cur : cur_id-id
185
+ CurEx --> Cur : cur_id-id
186
+ CurEx --> Ex : ex_id-id
187
+ CurExCountry --> Country : country_id-id
188
+ CurExCountry --> CurEx : curexs-id
189
+ Fiat --> Country : country_id-id
190
+ Fiat --> PmCur : pmcur_id-id
191
+ Fiat --> User : user_id-id
192
+ FiatEx --> Ex : ex_id-id
193
+ FiatEx --> Fiat : fiat_id-id
194
+ Limit --> PmCur : pmcur_id-id
195
+ Limit --> User : added_by_id-id
196
+ PmCur --> Cur : cur_id-id
197
+ PmCur --> Pm : pm_id-id
198
+ PmCurEx --> Ex : ex_id-id
199
+ PmCurEx --> PmCur : pmcur_id-id
200
+ PmEx --> Ex : ex_id-id
201
+ PmEx --> Pm : pm_id-id
202
+ User --> User : ref_id-id
203
+
204
+ ```
@@ -1,47 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xync-schema
3
- Version: 0.6.36.dev4
4
- Summary: XyncNet project database model schema
5
- Author-email: Mike Artemiev <mixartemev@gmail.com>
6
- License: EULA
7
- Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
- Project-URL: Repository, https://gitlab.com/xync/back/schema
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: xtg-auth
12
- Provides-Extra: dev
13
- Requires-Dist: build; extra == "dev"
14
- Requires-Dist: pytest-asyncio; extra == "dev"
15
- Requires-Dist: twine; extra == "dev"
16
-
17
- ## INSTALL
18
- ```bash
19
- # Create python virtual environment
20
- python3 -m venv venv
21
- # Activate this environment
22
- source venv/bin/activate
23
- # Install dependencies
24
- pip install -r requirements.dev.txt
25
-
26
- # Create pg db
27
- createdb --U username -W dbname
28
- ## set password for db user
29
-
30
- # Copy .env file from sample template
31
- cp .env.sample .env
32
- ## set your pg creds in .env file
33
- ```
34
-
35
- ## TEST
36
- ```bash
37
- pytest
38
- ```
39
-
40
-
41
- ### pre-commit
42
- You can done `commit` only after `pytest` will done success.
43
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
- ```shell
45
- #!/bin/sh
46
- pytest
47
- ```
@@ -1,31 +0,0 @@
1
- ## INSTALL
2
- ```bash
3
- # Create python virtual environment
4
- python3 -m venv venv
5
- # Activate this environment
6
- source venv/bin/activate
7
- # Install dependencies
8
- pip install -r requirements.dev.txt
9
-
10
- # Create pg db
11
- createdb --U username -W dbname
12
- ## set password for db user
13
-
14
- # Copy .env file from sample template
15
- cp .env.sample .env
16
- ## set your pg creds in .env file
17
- ```
18
-
19
- ## TEST
20
- ```bash
21
- pytest
22
- ```
23
-
24
-
25
- ### pre-commit
26
- You can done `commit` only after `pytest` will done success.
27
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
28
- ```shell
29
- #!/bin/sh
30
- pytest
31
- ```
@@ -1,47 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xync-schema
3
- Version: 0.6.36.dev4
4
- Summary: XyncNet project database model schema
5
- Author-email: Mike Artemiev <mixartemev@gmail.com>
6
- License: EULA
7
- Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
- Project-URL: Repository, https://gitlab.com/xync/back/schema
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: xtg-auth
12
- Provides-Extra: dev
13
- Requires-Dist: build; extra == "dev"
14
- Requires-Dist: pytest-asyncio; extra == "dev"
15
- Requires-Dist: twine; extra == "dev"
16
-
17
- ## INSTALL
18
- ```bash
19
- # Create python virtual environment
20
- python3 -m venv venv
21
- # Activate this environment
22
- source venv/bin/activate
23
- # Install dependencies
24
- pip install -r requirements.dev.txt
25
-
26
- # Create pg db
27
- createdb --U username -W dbname
28
- ## set password for db user
29
-
30
- # Copy .env file from sample template
31
- cp .env.sample .env
32
- ## set your pg creds in .env file
33
- ```
34
-
35
- ## TEST
36
- ```bash
37
- pytest
38
- ```
39
-
40
-
41
- ### pre-commit
42
- You can done `commit` only after `pytest` will done success.
43
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
- ```shell
45
- #!/bin/sh
46
- pytest
47
- ```
File without changes