pyplunet


Namepyplunet JSON
Version 0.9.1 PyPI version JSON
download
home_page
SummaryClient for the Plunet 3.0 SOAP API.
upload_time2024-02-13 07:23:34
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords plunet api translation localization tms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div id="top"></div>


<!-- PROJECT SHIELDS -->


[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]



<!-- PROJECT LOGO -->


<h3 align="center">PyPlunet</h3>

  <p align="center">
    Modern Python client for interacting with the Plunet SOAP 3.0 API.
    <br />


  </p>



<!-- ABOUT THE PROJECT -->

## About The Project
Modern 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 support
- Fully documented methods with complete content of the Plunet JavaDocs.

<p align="right">(<a href="#top">back to top</a>)</p>

### New in 0.9.1
- Updated readme
- Fixed typo

### New in 0.9.0
- Added methods and fields up to Plunet 9.11
- Added missing status and type enums

### New in 0.8.0
- Decided to remove the retrying client 
- Improved flexibility for enums, which now accept both integers and strings that are possible to cast as ints

### Built With

* [zeep](https://docs.python-zeep.org/en/master/)
* [pydantic](https://docs.pydantic.dev/)
* [plunetapi](https://github.com/kuhnemann/plunetapi/)


<p align="right">(<a href="#top">back to top</a>)</p>



<!-- GETTING STARTED -->

## Getting Started

### Installation


Install via pip

   ```sh
   pip install pyplunet
   ```

Or clone the repo

   ```sh
   git clone https://github.com/kuhnemann/pyplunet.git
   ```

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- USAGE EXAMPLES -->

## Usage

Install using pip like so:

```sh
pip install pyplunet
```

Initialize the client with the base URL of your Plunet instance, authenticate and start doing whatever you aim to do.


```sh
from pyplunet import PlunetClient


plunet_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:

```sh
from datetime import datetime, timedelta

from pyplunet import PlunetClient
from pyplunet.models import OrderIN, SearchFilter_Resource
from pyplunet.enums import ResourceType, ResourceStatus, WorkingStatus


plunet_client = PlunetClient(base_url="YOUR_URL")

plunet_client.login(username=username, password=password)

# prepare the searchfilter
sf_resource = SearchFilter_Resource(
    contact_resourceID=-1,
    languageCode="EN",
    resourceType=ResourceType.PROJECT_MANAGER,
    resourceStatus=ResourceStatus.ACTIVE,
    workingStatus=WorkingStatus.INTERNAL
)
# get the result
pms_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
```


<p align="right">(<a href="#top">back to top</a>)</p>




See the [open issues](https://github.com/kuhnemann/pyplunet/issues) for a full list of proposed features (and known
issues).

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- CONTRIBUTING -->

## Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any
contributions you make are **greatly 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!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- LICENSE -->

## License

Distributed under the MIT License. See `LICENSE` for more information.

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- CONTACT -->

## Contact

Henrik Kühnemann - [@hkuhnemann](https://twitter.com/hkuhnemann) - [hello@yellownape.se](mailto:hello@yellownape.se)

Project Link: [https://github.com/kuhnemann/pyplunet](https://github.com/kuhnemann/pyplunet)

<p align="right">(<a href="#top">back to top</a>)</p>



<p align="right">(<a href="#top">back to top</a>)</p>



<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[contributors-shield]: https://img.shields.io/github/contributors/kuhnemann/pyplunet.svg?style=for-the-badge

[contributors-url]: https://github.com/kuhnemann/pyplunet/graphs/contributors

[forks-shield]: https://img.shields.io/github/forks/kuhnemann/pyplunet.svg?style=for-the-badge

[forks-url]: https://github.com/kuhnemann/pyplunet/network/members

[stars-shield]: https://img.shields.io/github/stars/kuhnemann/pyplunet.svg?style=for-the-badge

[stars-url]: https://github.com/kuhnemann/pyplunet/stargazers

[issues-shield]: https://img.shields.io/github/issues/kuhnemann/pyplunet.svg?style=for-the-badge

[issues-url]: https://github.com/kuhnemann/pyplunet/issues

[license-shield]: https://img.shields.io/github/license/kuhnemann/pyplunet.svg?style=for-the-badge

[license-url]: https://github.com/kuhnemann/pyplunet/blob/main/LICENCE

[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555

[linkedin-url]: https://linkedin.com/in/henrik-kuhnemann

[product-screenshot]: images/screenshot.png

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyplunet",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "plunet,api,translation,localization,tms",
    "author": "",
    "author_email": "Henrik K\u00fchnemann <hello@yellownape.se>",
    "download_url": "https://files.pythonhosted.org/packages/26/41/d094ad2a916845a04a463563eec0835e8650091d693119773f16b0995e37/pyplunet-0.9.1.tar.gz",
    "platform": null,
    "description": "<div id=\"top\"></div>\r\n\r\n\r\n<!-- PROJECT SHIELDS -->\r\n\r\n\r\n[![Forks][forks-shield]][forks-url]\r\n[![Stargazers][stars-shield]][stars-url]\r\n[![Issues][issues-shield]][issues-url]\r\n[![MIT License][license-shield]][license-url]\r\n[![LinkedIn][linkedin-shield]][linkedin-url]\r\n\r\n\r\n\r\n<!-- PROJECT LOGO -->\r\n\r\n\r\n<h3 align=\"center\">PyPlunet</h3>\r\n\r\n  <p align=\"center\">\r\n    Modern Python client for interacting with the Plunet SOAP 3.0 API.\r\n    <br />\r\n\r\n\r\n  </p>\r\n\r\n\r\n\r\n<!-- ABOUT THE PROJECT -->\r\n\r\n## About The Project\r\nModern Python client for interacting with the Plunet SOAP API, without having to deal with any of the soapiness.\r\n\r\nReady to use out of the box, you can jump directly into the business logic. \r\n\r\nPip install, import and start working. It really is as easy as that! \r\n\r\n- Implements all services and methods as per Plunet 9.11 (the latest version of ApiDocs available)\r\n- Fully typed for validation and code completion support\r\n- Fully documented methods with complete content of the Plunet JavaDocs.\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n### New in 0.9.1\r\n- Updated readme\r\n- Fixed typo\r\n\r\n### New in 0.9.0\r\n- Added methods and fields up to Plunet 9.11\r\n- Added missing status and type enums\r\n\r\n### New in 0.8.0\r\n- Decided to remove the retrying client \r\n- Improved flexibility for enums, which now accept both integers and strings that are possible to cast as ints\r\n\r\n### Built With\r\n\r\n* [zeep](https://docs.python-zeep.org/en/master/)\r\n* [pydantic](https://docs.pydantic.dev/)\r\n* [plunetapi](https://github.com/kuhnemann/plunetapi/)\r\n\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- GETTING STARTED -->\r\n\r\n## Getting Started\r\n\r\n### Installation\r\n\r\n\r\nInstall via pip\r\n\r\n   ```sh\r\n   pip install pyplunet\r\n   ```\r\n\r\nOr clone the repo\r\n\r\n   ```sh\r\n   git clone https://github.com/kuhnemann/pyplunet.git\r\n   ```\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- USAGE EXAMPLES -->\r\n\r\n## Usage\r\n\r\nInstall using pip like so:\r\n\r\n```sh\r\npip install pyplunet\r\n```\r\n\r\nInitialize the client with the base URL of your Plunet instance, authenticate and start doing whatever you aim to do.\r\n\r\n\r\n```sh\r\nfrom pyplunet import PlunetClient\r\n\r\n\r\nplunet_client = PlunetClient(base_url=\"YOUR_URL\")\r\n\r\nplunet_client.login(username=username, password=password)\r\n\r\norder_result = plunet_client.order.get_order_object(order_id=1234)\r\n```\r\n\r\n\r\nComplex types and enums are included. Convenient when searching or creating entities:\r\n\r\n```sh\r\nfrom datetime import datetime, timedelta\r\n\r\nfrom pyplunet import PlunetClient\r\nfrom pyplunet.models import OrderIN, SearchFilter_Resource\r\nfrom pyplunet.enums import ResourceType, ResourceStatus, WorkingStatus\r\n\r\n\r\nplunet_client = PlunetClient(base_url=\"YOUR_URL\")\r\n\r\nplunet_client.login(username=username, password=password)\r\n\r\n# prepare the searchfilter\r\nsf_resource = SearchFilter_Resource(\r\n    contact_resourceID=-1,\r\n    languageCode=\"EN\",\r\n    resourceType=ResourceType.PROJECT_MANAGER,\r\n    resourceStatus=ResourceStatus.ACTIVE,\r\n    workingStatus=WorkingStatus.INTERNAL\r\n)\r\n# get the result\r\npms_result = plunet_client.resource.search(search_filter_resource=sf_resource)\r\n\r\n# prepare the OrderIN object. Fields are typed and corresponds to definition from XSD.\r\norder_in = OrderIN(\r\n    currency=\"SEK\",\r\n    customerContactID=1,\r\n    customerID=3,\r\n    deliveryDeadline=datetime.now() + timedelta(days=7),\r\n    orderDate=datetime.now(),\r\n    orderID=-1,\r\n    projectManagerID=11,\r\n    projectManagerMemo=\"Some memo!\",\r\n    projectName=\"Project has a name\",\r\n    rate=-1,\r\n    referenceNumber=\"This is the reference number\",\r\n    subject=\"This is the subject!\"\r\n)\r\norder_integer_result = plunet_client.order.insert2(order_in=order_in)\r\norder_id = order_integer_result.data\r\n```\r\n\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n\r\nSee the [open issues](https://github.com/kuhnemann/pyplunet/issues) for a full list of proposed features (and known\r\nissues).\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- CONTRIBUTING -->\r\n\r\n## Contributing\r\n\r\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any\r\ncontributions you make are **greatly appreciated**.\r\n\r\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also\r\nsimply open an issue with the tag \"enhancement\". Don't forget to give the project a star! Thanks again!\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- LICENSE -->\r\n\r\n## License\r\n\r\nDistributed under the MIT License. See `LICENSE` for more information.\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- CONTACT -->\r\n\r\n## Contact\r\n\r\nHenrik K\u00fchnemann - [@hkuhnemann](https://twitter.com/hkuhnemann) - [hello@yellownape.se](mailto:hello@yellownape.se)\r\n\r\nProject Link: [https://github.com/kuhnemann/pyplunet](https://github.com/kuhnemann/pyplunet)\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\r\n\r\n\r\n\r\n<!-- MARKDOWN LINKS & IMAGES -->\r\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\r\n\r\n[contributors-shield]: https://img.shields.io/github/contributors/kuhnemann/pyplunet.svg?style=for-the-badge\r\n\r\n[contributors-url]: https://github.com/kuhnemann/pyplunet/graphs/contributors\r\n\r\n[forks-shield]: https://img.shields.io/github/forks/kuhnemann/pyplunet.svg?style=for-the-badge\r\n\r\n[forks-url]: https://github.com/kuhnemann/pyplunet/network/members\r\n\r\n[stars-shield]: https://img.shields.io/github/stars/kuhnemann/pyplunet.svg?style=for-the-badge\r\n\r\n[stars-url]: https://github.com/kuhnemann/pyplunet/stargazers\r\n\r\n[issues-shield]: https://img.shields.io/github/issues/kuhnemann/pyplunet.svg?style=for-the-badge\r\n\r\n[issues-url]: https://github.com/kuhnemann/pyplunet/issues\r\n\r\n[license-shield]: https://img.shields.io/github/license/kuhnemann/pyplunet.svg?style=for-the-badge\r\n\r\n[license-url]: https://github.com/kuhnemann/pyplunet/blob/main/LICENCE\r\n\r\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555\r\n\r\n[linkedin-url]: https://linkedin.com/in/henrik-kuhnemann\r\n\r\n[product-screenshot]: images/screenshot.png\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Client for the Plunet 3.0 SOAP API.",
    "version": "0.9.1",
    "project_urls": {
        "Homepage": "https://github.com/kuhnemann/pyplunet"
    },
    "split_keywords": [
        "plunet",
        "api",
        "translation",
        "localization",
        "tms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d2db8fae783651a7ad3037094783e53f583cacbdf0781625f9fa3afea524a38",
                "md5": "12c05fc7ae7b87531792f6cc456c86f4",
                "sha256": "57d9188b71da7d99e10b17bd64d924f2c5a1c97b4933f587cf7156fa6296075e"
            },
            "downloads": -1,
            "filename": "pyplunet-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "12c05fc7ae7b87531792f6cc456c86f4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 97737,
            "upload_time": "2024-02-13T07:23:32",
            "upload_time_iso_8601": "2024-02-13T07:23:32.021973Z",
            "url": "https://files.pythonhosted.org/packages/5d/2d/b8fae783651a7ad3037094783e53f583cacbdf0781625f9fa3afea524a38/pyplunet-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2641d094ad2a916845a04a463563eec0835e8650091d693119773f16b0995e37",
                "md5": "0336099f44e26082435247e38565e4e4",
                "sha256": "11d52f939a08caaf62685bbf90a1d5a8c0b1979d7bb05ad34152449a00d0ee92"
            },
            "downloads": -1,
            "filename": "pyplunet-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0336099f44e26082435247e38565e4e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 121923,
            "upload_time": "2024-02-13T07:23:34",
            "upload_time_iso_8601": "2024-02-13T07:23:34.527406Z",
            "url": "https://files.pythonhosted.org/packages/26/41/d094ad2a916845a04a463563eec0835e8650091d693119773f16b0995e37/pyplunet-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-13 07:23:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kuhnemann",
    "github_project": "pyplunet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyplunet"
}
        
Elapsed time: 0.19847s