pyznuny 0.0.6__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyznuny
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: A Python client for interacting with the Znuny ticketing system API.
5
5
  Author-email: Junior Rosa <jr.dasrosas@gmail.com>, Pablo Gascon <pablogasconiel445@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Junior-Rosa/py-znuny
7
7
  Project-URL: Repository, https://github.com/Junior-Rosa/py-znuny
8
8
  Project-URL: Issues, https://github.com/Junior-Rosa/py-znuny/issues
9
+ Project-URL: Documentation, https://pyznuny.readthedocs.io/en/latest/
9
10
  Classifier: Development Status :: 3 - Alpha
10
11
  Classifier: Intended Audience :: Developers
11
12
  Classifier: Operating System :: OS Independent
@@ -77,27 +78,21 @@ PASSWORD=your-password
77
78
  ### Create a ticket
78
79
 
79
80
  ```python
80
- from pyznuny.ticket.models import (
81
- TicketCreateArticle,
82
- TicketCreatePayload,
83
- TicketCreateTicket,
84
- )
85
-
86
- payload = TicketCreatePayload(
87
- Ticket=TicketCreateTicket(
88
- Title="Ticket Title",
89
- Queue="Ticket queue",
90
- State="Ticket state",
91
- Priority="Ticket priority",
92
- CustomerUser="customer@example.com",
93
- ),
94
- Article=TicketCreateArticle(
95
- Subject="Ticket subject",
96
- Body="Ticket body...",
97
- ContentType="text/plain; charset=utf-8",
98
- From_="customer@example.com",
99
- ),
100
- )
81
+ payload = {
82
+ "Ticket": {
83
+ "Title": "Ticket Title",
84
+ "Queue": "Ticket queue",
85
+ "State": "Ticket state",
86
+ "Priority": "Ticket priority",
87
+ "CustomerUser": "customer@example.com",
88
+ },
89
+ "Article": {
90
+ "Subject": "Ticket subject",
91
+ "Body": "Ticket body...",
92
+ "ContentType": "text/plain; charset=utf-8",
93
+ "From": "customer@example.com",
94
+ },
95
+ }
101
96
 
102
97
  response = client.ticket.create(payload=payload)
103
98
  print(response.json())
@@ -137,6 +132,8 @@ response = client.ticket.get(ticket_id=1234)
137
132
  - When `username` and `password` are provided, the client logs in and stores
138
133
  `session_id` automatically.
139
134
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
135
+ - You can send payloads as plain dicts using the same attributes shown in the
136
+ examples.
140
137
 
141
138
  ## License
142
139
 
@@ -51,27 +51,21 @@ PASSWORD=your-password
51
51
  ### Create a ticket
52
52
 
53
53
  ```python
54
- from pyznuny.ticket.models import (
55
- TicketCreateArticle,
56
- TicketCreatePayload,
57
- TicketCreateTicket,
58
- )
59
-
60
- payload = TicketCreatePayload(
61
- Ticket=TicketCreateTicket(
62
- Title="Ticket Title",
63
- Queue="Ticket queue",
64
- State="Ticket state",
65
- Priority="Ticket priority",
66
- CustomerUser="customer@example.com",
67
- ),
68
- Article=TicketCreateArticle(
69
- Subject="Ticket subject",
70
- Body="Ticket body...",
71
- ContentType="text/plain; charset=utf-8",
72
- From_="customer@example.com",
73
- ),
74
- )
54
+ payload = {
55
+ "Ticket": {
56
+ "Title": "Ticket Title",
57
+ "Queue": "Ticket queue",
58
+ "State": "Ticket state",
59
+ "Priority": "Ticket priority",
60
+ "CustomerUser": "customer@example.com",
61
+ },
62
+ "Article": {
63
+ "Subject": "Ticket subject",
64
+ "Body": "Ticket body...",
65
+ "ContentType": "text/plain; charset=utf-8",
66
+ "From": "customer@example.com",
67
+ },
68
+ }
75
69
 
76
70
  response = client.ticket.create(payload=payload)
77
71
  print(response.json())
@@ -111,6 +105,8 @@ response = client.ticket.get(ticket_id=1234)
111
105
  - When `username` and `password` are provided, the client logs in and stores
112
106
  `session_id` automatically.
113
107
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
108
+ - You can send payloads as plain dicts using the same attributes shown in the
109
+ examples.
114
110
 
115
111
  ## License
116
112
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyznuny"
3
- version = "0.0.6"
3
+ version = "0.0.8"
4
4
  description = "A Python client for interacting with the Znuny ticketing system API."
5
5
  authors = [
6
6
  { name = "Junior Rosa", email = "jr.dasrosas@gmail.com" },
@@ -30,6 +30,7 @@ classifiers = [
30
30
  Homepage = "https://github.com/Junior-Rosa/py-znuny"
31
31
  Repository = "https://github.com/Junior-Rosa/py-znuny"
32
32
  Issues = "https://github.com/Junior-Rosa/py-znuny/issues"
33
+ Documentation = "https://pyznuny.readthedocs.io/en/latest/"
33
34
 
34
35
  [dependency-groups]
35
36
  dev = [
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyznuny
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: A Python client for interacting with the Znuny ticketing system API.
5
5
  Author-email: Junior Rosa <jr.dasrosas@gmail.com>, Pablo Gascon <pablogasconiel445@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Junior-Rosa/py-znuny
7
7
  Project-URL: Repository, https://github.com/Junior-Rosa/py-znuny
8
8
  Project-URL: Issues, https://github.com/Junior-Rosa/py-znuny/issues
9
+ Project-URL: Documentation, https://pyznuny.readthedocs.io/en/latest/
9
10
  Classifier: Development Status :: 3 - Alpha
10
11
  Classifier: Intended Audience :: Developers
11
12
  Classifier: Operating System :: OS Independent
@@ -77,27 +78,21 @@ PASSWORD=your-password
77
78
  ### Create a ticket
78
79
 
79
80
  ```python
80
- from pyznuny.ticket.models import (
81
- TicketCreateArticle,
82
- TicketCreatePayload,
83
- TicketCreateTicket,
84
- )
85
-
86
- payload = TicketCreatePayload(
87
- Ticket=TicketCreateTicket(
88
- Title="Ticket Title",
89
- Queue="Ticket queue",
90
- State="Ticket state",
91
- Priority="Ticket priority",
92
- CustomerUser="customer@example.com",
93
- ),
94
- Article=TicketCreateArticle(
95
- Subject="Ticket subject",
96
- Body="Ticket body...",
97
- ContentType="text/plain; charset=utf-8",
98
- From_="customer@example.com",
99
- ),
100
- )
81
+ payload = {
82
+ "Ticket": {
83
+ "Title": "Ticket Title",
84
+ "Queue": "Ticket queue",
85
+ "State": "Ticket state",
86
+ "Priority": "Ticket priority",
87
+ "CustomerUser": "customer@example.com",
88
+ },
89
+ "Article": {
90
+ "Subject": "Ticket subject",
91
+ "Body": "Ticket body...",
92
+ "ContentType": "text/plain; charset=utf-8",
93
+ "From": "customer@example.com",
94
+ },
95
+ }
101
96
 
102
97
  response = client.ticket.create(payload=payload)
103
98
  print(response.json())
@@ -137,6 +132,8 @@ response = client.ticket.get(ticket_id=1234)
137
132
  - When `username` and `password` are provided, the client logs in and stores
138
133
  `session_id` automatically.
139
134
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
135
+ - You can send payloads as plain dicts using the same attributes shown in the
136
+ examples.
140
137
 
141
138
  ## License
142
139
 
File without changes
File without changes
File without changes
File without changes