Package: pyplunet
PyPlunetModern Python client for interacting with the Plunet SOAP 3.0 API.About The ProjectModern Python client for interacting with the Plunet SOAP API, without having to deal with any of the soapiness.Ready to use out of the box, you can jump directly into the business logic.Pip install, import and start working. It really is as easy as that!Implements all services and methods as per Plunet 9.11 (the latest version of ApiDocs available)Fully typed for validation and code completion supportFully documented methods with complete content of the Plunet JavaDocs.(back to top)New in 0.9.1Updated readmeFixed typoNew in 0.9.0Added methods and fields up to Plunet 9.11Added missing status and type enumsNew in 0.8.0Decided to remove the retrying clientImproved flexibility for enums, which now accept both integers and strings that are possible to cast as intsBuilt Withzeeppydanticplunetapi(back to top)Getting StartedInstallationInstall via pippipinstallpyplunetOr clone the repogitclonehttps://github.com/kuhnemann/pyplunet.git(back to top)UsageInstall using pip like so:pipinstallpyplunetInitialize the client with the base URL of your Plunet instance, authenticate and start doing whatever you aim to do.frompyplunetimportPlunetClientplunet_client=PlunetClient(base_url="YOUR_URL")plunet_client.login(username=username,password=password)order_result=plunet_client.order.get_order_object(order_id=1234)Complex types and enums are included. Convenient when searching or creating entities:fromdatetimeimportdatetime,timedelta

frompyplunetimportPlunetClient
frompyplunet.modelsimportOrderIN,SearchFilter_Resource
frompyplunet.enumsimportResourceType,ResourceStatus,WorkingStatusplunet_client=PlunetClient(base_url="YOUR_URL")plunet_client.login(username=username,password=password)# prepare the searchfiltersf_resource=SearchFilter_Resource(contact_resourceID=-1,languageCode="EN",resourceType=ResourceType.PROJECT_MANAGER,resourceStatus=ResourceStatus.ACTIVE,workingStatus=WorkingStatus.INTERNAL)# get the resultpms_result=plunet_client.resource.search(search_filter_resource=sf_resource)# prepare the OrderIN object. Fields are typed and corresponds to definition from XSD.order_in=OrderIN(currency="SEK",customerContactID=1,customerID=3,deliveryDeadline=datetime.now()+timedelta(days=7),orderDate=datetime.now(),orderID=-1,projectManagerID=11,projectManagerMemo="Some memo!",projectName="Project has a name",rate=-1,referenceNumber="This is the reference number",subject="This is the subject!")order_integer_result=plunet_client.order.insert2(order_in=order_in)order_id=order_integer_result.data(back to top)See theopen issuesfor a full list of proposed features (and known
issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also
simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSEfor more information.(back to top)ContactHenrik Kühnemann -@hkuhnemann-hello@yellownape.seProject Link:https://github.com/kuhnemann/pyplunet(back to top)(back to top)