Skip to main content

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


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.8.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netsdldv-0.0.8-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file netsdldv-0.0.8.tar.gz.

File metadata

  • Download URL: netsdldv-0.0.8.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

Hashes for netsdldv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a936da5774a6fa100bfc0a76f8bc7cf110213b87c70bf07634a589542acd2289
MD5 588b3ca7bc7bc700cc48bcb1fa0d488e
BLAKE2b-256 6572a8ca69f74d29a3c54b9a7cf7ce6255b119351296f0be50a6d660b4c6a199

See more details on using hashes here.

File details

Details for the file netsdldv-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: netsdldv-0.0.8-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

Hashes for netsdldv-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e7713793ea78c3b72429a2e4571a200d1d2c53a8305332d1d7a1972b84900e03
MD5 3719051b4a90b49e26b000054bfd748e
BLAKE2b-256 fb469b5b02501006e2bff1b6fcdf9c3d7f75a9e92061fee6967674989858692e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page