a tools for ami
Project description
1 how to use
if __name__ == "__main__":
AmimanagerDB = "your manager connection here"
G2CN_str = "your business db"
loader = DbLoader()
dv = loader.load(AmimanagerDB,"1",G2CN_str)
dv.addQueryField("Actual_receive_point","Cat4_name","Cust_ship_to_name")
Order_date = DvFilter("Order_date").GREATER_THAN('2019-01-01')
Cust_no = DvFilter("Cust_no").Equal_to("wu~~~~")
Order_date.AND(Cust_no)
dv.addFilter("Disp_order_date").Equal_to("2019-01-01").AND(Order_date)
print(dv.filter.text)
print(dv.query(top=-1,temp_table_name="-1"))
2.how to load from xml
factory = XMLFactory("./test.xml")
dvm = factory.Build()
3.how to generate a xml from a dvid
# self.AmimanagerDB == connection string
tools = dv2xml.dv2xml(self.AmimanagerDB,1)
tools.run("./test.xml")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netsdldv-0.0.7.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
netsdldv-0.0.7-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file netsdldv-0.0.7.tar.gz.
File metadata
- Download URL: netsdldv-0.0.7.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
269b7655facf1bb071079f7758cda8e552e50e66b54efa2dd245964957a61127
|
|
| MD5 |
09f053120761f72f087f222fa378d3f9
|
|
| BLAKE2b-256 |
3dd8324bf8665f9fd6e240362d89a1415bdb902005d85f6254741a4bfa313ee3
|
File details
Details for the file netsdldv-0.0.7-py3-none-any.whl.
File metadata
- Download URL: netsdldv-0.0.7-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4310071b7738e8005f9207c44b54dbf3a905a2e9a8d9b819b3b334b0d45ba29
|
|
| MD5 |
614b58af0cd24f3058860f1040134188
|
|
| BLAKE2b-256 |
6efc7a081c3b2f36e96f93a22aeb5ceb25602da381dc70f5f0a07aaaf0d008d4
|