-
Notifications
You must be signed in to change notification settings - Fork 4
Requirements and installation
Plumage-py requires Python 3. It was coded using Python 3.8.6 (at least 3.6 required); later releases of Python 3 will probably also work. As of version 1.4.0, Python 2 is no longer supported.
For XML support, Plumage-py uses the lxml
Python module, which must be installed prior to using Plumage-py. Plumage was developed and tested with lxml V4.6.2, although I expect that most earlier releases (any release supporting XSLT) will also work. lxml
is available at http://lxml.de/; installation instrctions are at https://lxml.de/installation.html .
Plumage-dotnet requires the the Microsoft .NET Framework 4.5.3 or later. 4.5.3 was the first release of the .NET framework to support the ZIP file format in which the PTO delivers its TSDR data. The current release of the .NET framework is available at http://www.microsoft.com/net .
To install Plumage-py:
-
Install
lxml
(see "Requirements", above) if not already installed. -
Download the Plumage-py code. For convenience, you can download a
.zip
file of the most current release from the Plumage-py releases page. -
Unzip the file. You will find a directory named
Plumage
containing five files:__init__.py
plumage.py
ST66.xsl
ST96.xsl
Plumage-XSLT-metadata.json
-
Copy the
Plumage
directory to a directory in your PYTHONPATH. For testing purposes, you may wish to create the directory as a subdirectory in the same location as your test application. For general use, you will probably want to place it in theLibs
/site-packages
directory.
To install Plumage-dotnet from source:
- In Visual Studio, create a Library project named
Plumage
. - Add the files
TSDRReq.cs
,ST66.xsl
,ST96.xsl
andPlumage-XSLT-metadata.json
. - In Visual Studio, open
TSDRReq.cs
and add the filesST66.xsl
,ST96.xsl
, andPlumage-XSLT-metadata.json
as resources; save. - Compile.
Use the resulting DLL as you would any other.
If you do not wish to compile from source, you can download a .dll
file of the most current release from the Plumage-dotnet releases page. Unzip the zip file and copy the Plumage.dll
file to the location needed.