Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2794 > unrolled thread
| Started by | Terry Carroll <carroll@tjc.com> |
|---|---|
| First post | 2018-03-23 17:55 -0400 |
| Last post | 2018-03-23 17:55 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python.announce
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
ANN: Plumage 1.3.0; access trademark status info from USPTO Terry Carroll <carroll@tjc.com> - 2018-03-23 17:55 -0400
| From | Terry Carroll <carroll@tjc.com> |
|---|---|
| Date | 2018-03-23 17:55 -0400 |
| Subject | ANN: Plumage 1.3.0; access trademark status info from USPTO |
| Message-ID | <mailman.255.1521893547.1867.python-announce-list@python.org> |
I am pleased to announce Plumage (Plumage-py) 1.3.0 ("Delius"). This is
the first Plumage release to support Python 3.
Plumage is a module to obtain trademark status and information from the
United States Patent & Trademark Office's (USPTO's) Trademark Status &
Document Retrieval (TSDR) system. It takes as input either a trademark
registration number or application serial number, fetches the
corresponding XML data from the PTO's TSDR website, and returns a
dictionary of data associated with the specified TSDR entry.
Example:
from Plumage import plumage
t = plumage.TSDRReq()
t.getTSDRInfo("2564831", "r") # get info on reg. no 2,564,831
tsdrdata=t.TSDRData
if tsdrdata.TSDRMapIsValid:
print("Application serial no: ", tsdrdata.TSDRSingle["ApplicationNumber"])
print("Trademark text: ", tsdrdata.TSDRSingle["MarkVerbalElementText"])
print("Application filing date: ", tsdrdata.TSDRSingle["ApplicationDate"])
print("Registration no: ", tsdrdata.TSDRSingle["RegistrationNumber"])
# Owner info is in most recent (0th) entry in ApplicantList
applicant_list = tsdrdata.TSDRMulti["ApplicantList"]
current_owner_info = applicant_list[0]
print("Owner:", current_owner_info["ApplicantName"])
Will print:
Application serial no: 75181334
Trademark text: MONTY PYTHON'S FLYING CIRCUS
Application filing date: 1996-10-15-04:00
Registration no: 2564831
Owner: Python (Monty) Pictures Ltd.
Multiple trademark applications or registrations can be successively
queried. for example:
t = plumage.TSDRReq()
application_numbers = ["76535603", "75854426", "86142154", "78790815", "75533975"]
for application_number in application_numbers:
result = t.getTSDRInfo(application_number, "s")
print(t.TSDRData.TSDRSingle["MarkVerbalElementText"])
Will display:
NO BUDDY
ESPEX
ZA
SPANISH
INQUISITION
New in this release:
* Support for Python 3
Code: https://github.com/codingatty/Plumage-py/releases/tag/V1.3.0
Docs: https://github.com/codingatty/Plumage/wiki/Plumage-Home
License: Apache Software License V2
--
Terry Carroll
carroll@tjc.com
Back to top | Article view | comp.lang.python.announce
csiph-web