{ "info": { "author": "Roger Marsh", "author_email": "roger.marsh@solentware.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 7 - Inactive", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Database", "Topic :: Software Development" ], "description": "==========================================\nDPT database API wrappers built using SWIG\n==========================================\n\n.. contents::\n\n\nDescription\n===========\n\nThis package provides Python applications with the database API used by DPT.\n\nDPT is a multi-user database system for Microsoft Windows.\n\nThe Python application can be as simple as a single-threaded process embedding the DPT API.\n\nThe package is available only as a source distribution. It is built with the `MinGW`_ toolchain and `SWIG`_, either on Microsoft Windows or on `Wine`_ on an operating system able to run `Wine`_.\n\nThis version of the package is known to work with MinGW-6.3.0 but not with MinGW-5.3.0, MinGW-4.9.3, or MinGW-4.8.1. Use dpt3.0-dptdb-0.6.5, or later 0.6.n versions, with earlier versions of MinGW if necessary.\n\nSetup will download the DPT API `source`_ and `documentation`_ zip files if an internet connection is available.\n\nThere is no separate documentation for Python.\n\n\nInstallation Instructions\n=========================\n\nMicrosoft Windows\n-----------------\n\n Build dependencies\n\n * `Python`_ 2.6 or later \n * `setuptools`_\n * `SWIG`_ 2.0.8 or later\n * `MinGW Installation Manager`_\n\n Download and install the MinGW Installation Manager.\n\n Follow the `MinGW`_ instructions to install MSYS and at least the MinGW base and gcc-g++ compiler suite.\n\n Download and install SWIG and Python.\n\n Download and install setuptools in Python if not already present.\n\n Use 'regedit' to put the directories containing the MinGW runtime in the path: usually C:\\MinGW\\bin and C:\\MinGW\\lib\\gcc\\mingw32\\6.3.0 where the 6.3.0 is an example of a compiler version. \n\n Install the package by typing\n\n python setup.py install\n\n at the command prompt of an MSYS shell with setup.py in the current directory.\n\n Runtime dependencies\n\n * Python 2.6 or later provided the version (2.6 for example) is the same as the Python used to build dptdb.\n * The MinGW runtime used to build dptdb.\n\nWine\n----\n\n Build dependencies\n\n * `Wine`_ \n * `Python`_ 2.6 or later (both host system and Microsoft Windows versions) \n * `setuptools`_\n * `SWIG`_ 2.0.8 or later\n * `MinGW Installation Manager`_\n * 'GNU make'_ (called gmake on BSD systems, usually make otherwise)\n\n Download and install Wine.\n\n Download and install the MinGW Installation Manager under Wine.\n\n Follow the `MinGW`_ instructions to install at least the MinGW base and gcc-g++ compiler suite. (MSYS is not needed because the host operating system provides those things.)\n\n Download and install Python if not already present. (Your distribution almost certainly provides Python.)\n\n Download and install GNU make if not already present. (Your distribution almost certainly provides GNU make.)\n\n Download and install Microsoft Windows versions of SWIG and Python under Wine.\n\n Download and install setuptools in Python if not already present.\n\n Download and install setuptools in the Python installed under Wine if not already present.\n\n At February 2016 I am not able to install Python 3.4 or Python 3.5 under Wine 1.8 on FreeBSD 10.1 but Python 3.3 is fine. Installation of setuptools, mine is 12.5, on Python 3.3 works if the flavour of Windows reported by Wine is XP. Changing it in an attempt to install Python 3.5 prevented installation of setuptools on Python 3.3.\n\n Use 'wine regedit' to put the directories containing the MinGW runtime in the path: usually C:\\MinGW\\bin and C:\\MinGW\\lib\\gcc\\mingw32\\6.3.0 where the 6.3.0 is an example of a compiler version. \n\n Install the package by typing\n\n python setup.py install\n\n at the command prompt of a shell with setup.py in the current directory.\n\n Runtime dependencies\n\n * Python 2.6 or later provided the version (2.6 for example) is the same as the Python used to build dptdb.\n * The MinGW runtime used to build dptdb.\n\n\nA directory named like dpt3.0_dptdb-0.5-py2.7.egg is put in site-packages by the install command. The name means version 0.5 of dptdb for Python 2.7 wrapping version 3.0 of the DPT API. This directory contains the dptdb and EGG-INFO directories.\n\nThe DPT documentation zip file is in the dptdb directory.\n\n\nSample code\n===========\n\nThe dptdb/test directory contains a simple application which populates a database, using some contrived data, and does some simple data retrievals.\n\nThis can be run on Microsoft Windows by typing\n\n python pydpt-test.py\n\nat the command prompt of a shell with pydpt-test.py in the current directory.\n\nThe equivalent command to run the sample application under Wine is\n\n wine python pydpt-test.py\n\nat the command prompt of a shell with pydpt-test.py in the current directory.\n\nYou may need to use '/python pydpt-test.py' if several versions of Python are installed.\n\n\nThe sample application offers seven options which create databases with different numbers of records. Each record has 6 fields and all fields are indexed.\n\n One option, called normal, adds 246,625 records to a database in a 16 Mb file in about 3.33 minutes with transaction backout enabled.\n\n The shortest option adds 246,625 records to a database in a 16 Mb file in about 0.6 minutes with transaction backout disabled.\n\n The longest option adds 7,892,000 records to a database in a 526 Mb file in about 18.75 minutes with transaction backout disabled.\n\nThe figures are for a 2Gb 667MHz memory, 1.8GHz CPU, solid state drive, Microsoft Windows XP installation.\n\n\nRestrictions\n============\n\ndptdb cannot be built under the emulators/wine port on FreeBSD amd64. If dptdb does not build under the emulators/i386-wine port on FreeBSD amd64 (I beleive it should but have not succeeded doing so), use the emulators/wine port on FreeBSD i386, on either 32bit or 64bit hardware.\n\nWhen used under Wine, very large single-step loads will fail through running out of memory because the test to decide when to complete a chunk of the load and start a new one never says 'do so'. One workaround is to do multi-step loads, potentially a lot slower as explained in `relnotes_V2RX.html`_ from DPT_V3R0_DOCS.ZIP, which was the only way to do this before version 2 release 14 of the DPT API. Another is to split the load into small enough chunks somehow before invoking the single-step process for each chunk.\n\nThe \"Try to force 'multi-chunk' on 32Gb memory\" option does enough index updating, see slowest option under `Sample code`_ for detail, to cause this failure under Wine on a 2Gb memory machine.\n\nThis is known to happen on FreeBSD. It is possible it does not happen on other Operating Systems able to run Wine.\n\n\nNotes\n=====\n\nThis package is built from `DPT_V3R0_DBMS.ZIP`_, a recent DPT API source code distribution, by default.\n\nYou will need the `DPT API documentation`_ to use this package. This is included as `DBAPI.html`_ in DPT_V3R0_DOCS.ZIP.\n\nThe DPT documentation zip file is in a directory named like C:/Python27/Lib/site-packages/dpt3.0_dptdb-0.5-py2.7.egg/dptdb, using the example at the end of `Installation Instructions`_.\n\nThe dptapi.py and _dptapi.pyd modules are built using `SWIG`_ and `MinGW`_ for a particular version of Python. In particular a _dptapi.pyd built for Python 2.6 will work only on Python 2.6 and so on. \n\nThe `DPT API distribution`_ contains independent scripts and instructions to build dptdb mentioning much earlier versions of the build dependencies.\n\nThis package will work only on a Python built for the Microsoft Windows platform.\n\n\n.. _DPT API documentation: http://solentware.co.uk/files/DPT_V3R0_DOCS.ZIP\n.. _documentation: http://solentware.co.uk/files/DPT_V3R0_DOCS.ZIP\n.. _DBAPI.html: http://solentware.co.uk/files/DPT_V3R0_DOCS.ZIP\n.. _relnotes_V2RX.html: http://solentware.co.uk/files/DPT_V3R0_DOCS.ZIP\n.. _DPT_V3R0_DBMS.ZIP: http://solentware.co.uk/files/DPT_V3R0_DBMS.ZIP\n.. _DPT API distribution: http://solentware.co.uk/files/DPT_V3R0_DBMS.ZIP\n.. _source: http://solentware.co.uk/files/DPT_V3R0_DBMS.ZIP\n.. _Python: https://python.org\n.. _setuptools: https://pypi.python.org/pypi/setuptools\n.. _SWIG: http://swig.org\n.. _MinGW: http://mingw.org\n.. _Wine: https://winehq.org\n.. _MinGW Installation Manager: http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download\n.. _GNU make: https://www.gnu.org/software/make/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.solentware.co.uk", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "dpt3.0-dptdb", "package_url": "https://pypi.org/project/dpt3.0-dptdb/", "platform": "Microsoft Windows", "project_url": "https://pypi.org/project/dpt3.0-dptdb/", "project_urls": { "Homepage": "http://www.solentware.co.uk" }, "release_url": "https://pypi.org/project/dpt3.0-dptdb/0.7.0/", "requires_dist": null, "requires_python": "", "summary": "DPT database API wrappers built using SWIG", "version": "0.7.0" }, "last_serial": 4346269, "releases": { "0.6.1": [ { "comment_text": "", "digests": { "md5": "0fa36bd07dca1088c8cca3e5d22c62fd", "sha256": "3239a05c3e8c58b13e008b31dc5562dd3cbeb61342229847bc1d18ed9a564c55" }, "downloads": -1, "filename": "dpt3.0-dptdb-0.6.1.zip", "has_sig": false, "md5_digest": "0fa36bd07dca1088c8cca3e5d22c62fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30473, "upload_time": "2015-02-20T20:46:54", "url": "https://files.pythonhosted.org/packages/ab/a0/5084c7a646c54e8cf8939c5b6af4778a7fac95591390b9ccebf7bd520055/dpt3.0-dptdb-0.6.1.zip" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "9581d036bf952365db95ec979db8feb7", "sha256": "f1b6be665d266d46e23d3cee7c7757795c9b3a5a19ec129f5c9521435c917a34" }, "downloads": -1, "filename": "dpt3.0-dptdb-0.6.4.zip", "has_sig": false, "md5_digest": "9581d036bf952365db95ec979db8feb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33270, "upload_time": "2018-09-29T10:11:46", "url": "https://files.pythonhosted.org/packages/b6/72/d740b8b22edaaee4febfcf778d64a5d7d12f83a789426ee80fa504cbe51d/dpt3.0-dptdb-0.6.4.zip" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "dd4e3e0667415869101e590789331e9c", "sha256": "2b23bfc2cb9631baf518adcd5572ea6e0cafdf3995b8da1954552c22b7c237de" }, "downloads": -1, "filename": "dpt3.0-dptdb-0.7.0.zip", "has_sig": false, "md5_digest": "dd4e3e0667415869101e590789331e9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33801, "upload_time": "2018-10-05T23:46:11", "url": "https://files.pythonhosted.org/packages/fc/5b/d91698df74d08b3272da81eb3b6c8497ee3337831fb2b39edf13b4246185/dpt3.0-dptdb-0.7.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd4e3e0667415869101e590789331e9c", "sha256": "2b23bfc2cb9631baf518adcd5572ea6e0cafdf3995b8da1954552c22b7c237de" }, "downloads": -1, "filename": "dpt3.0-dptdb-0.7.0.zip", "has_sig": false, "md5_digest": "dd4e3e0667415869101e590789331e9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33801, "upload_time": "2018-10-05T23:46:11", "url": "https://files.pythonhosted.org/packages/fc/5b/d91698df74d08b3272da81eb3b6c8497ee3337831fb2b39edf13b4246185/dpt3.0-dptdb-0.7.0.zip" } ] }