Pycounter

Latest version: v2.1.4

Safety actively analyzes 628918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.14.0

Other

* Wiley seems to be finicky about capitalization of at least the ID attibrute here... following SUSHIStarters' practice and sending with capitals. [Geoffrey Spear]

* Merge pull request 38 from withnale/provide_exceptions. [Geoffrey Spear]

Provide context when sushi exception is generated

* Provide context when sushi exception is generated. [Paul Rhodes]

* Merge pull request 40 from withnale/report_type_support. [Geoffrey Spear]

Added definitions to JR2,JR3,BR3 counter types

* Added definitions to JR2,JR3,BR3 counter types. [Paul Rhodes]

* Merge pull request 39 from withnale/avoid_none_column_errors. [Geoffrey Spear]

Ensure that the encode method doesn't fail if the cell value is None

* Ensure encode does not fail when cell value is None. [Paul Rhodes]

* Update RTD link for their new domain. [Geoffrey Spear]

* BR2: get section type from the report, instead of hardcoding "Chapter" on output... [Geoffrey Spear]

* Merge pull request 33 from chill17/dbsushicodequality. [Geoffrey Spear]

DB Sushi Code Quality

* Removed assertIn in tests for 2.6 compatability. [Ed Hill]

* Change sushi.py to work with DB_METRIC_MAP and configured tests for new output. [Ed Hill]

* Use DB_METRIC_MAP to map metric names from SUSHI to be consistent with the API. [Ed Hill]

* Make ensure_required_metrics work with METRICS and move sort out of method. [Ed Hill]

* Removed hardcoded DB metrics from report.py. [Ed Hill]

* Moved DB1 and DB2 metrics and mapping to constants.py. [Ed Hill]

* Document write_to_file and don't redefine format() builtin accidentally... [Geoffrey Spear]

* Flake8: missing whitespace. [Geoffrey Spear]

* Bump version, eliminate pylint unused variables complaints, prepare for more export formats. [Geoffrey Spear]

* Add module docstrings to the test suite. [Geoffrey Spear]

* Merge pull request 31 from chill17/addingdbtosushi. [Geoffrey Spear]

Add DB1 and DB2 report processing to SUSHI

* Replace set comprehension with generator expression for Py2.6. [Ed Hill]

* Fixed pyflakes formatting issues. [Ed Hill]

* Variable names more explicit and set() call removed from loop. [Ed Hill]

* Added tests and data files for DB reports through SUSHI. [Ed Hill]

TestConvertRawDatabase tests that all information is
correct and in the correct order for a DB report.
Utilizes sushi_simple_db1.xml which is in part based
on formatting from ProQuest SUSHI reports

TestRawDatabaseWithMissingData tests that, on output,
SUSHI data is correct and full even if zero-value fields
were not sent. January is missing data and there are no
records for 'record_view' in the data source. Utilizes
sushi_db1_missing_record_view.xml which is in part based
on formatting from EBSCO SUSHI reports.

* Add method to CounterReport to insert missing metrics. [Ed Hill]

SUSHI protocol does not guarantee fields with zero use
are in a report. If a field has no use for a given
period, it might not show up in the report at all.

If a report is a datbase report, check each database
to ensure it has all metrics and insert them with a 0
for the first month of the reporting period. After all
metrics have been established, sort them so they write
to file in the correct order (sort order will be
maintained after the subsequent title sort)

* Add method to CounterEresource to fill empty months. [Ed Hill]

SUSHI protocol does not require transmission of
fields with zero use. Ensures months with no data
are inserted with a 0, then sorted. Calls from
CounterDatabase.as_generic to accurately write as a
COUNTER compliant report.

* Convert SUSHI metric codes to COUNTER metric names. [Ed Hill]

Provide a mapping from SUSHI codes to COUNTER names
for DB reports. If parsing a pre-formatted COUNTER
report, it will fall back to whatever is already in
the report.

* Added support for DB reports to be collected through SUSHI. [Ed Hill]

DB reports are different because they have multiple metrics
on multiple lines, and SUSHI protocol provides limited
guarantees on how they will be formatted. Catch month values
in a dict with metrics as keys, then send each as a
CounterDatabase object

* Fix documentation a bit. [Geoffrey Spear]

* Giving up on pypy3 ever working (they're still using python 3.2, which we don't support anyway); removing expected failures since 3.6 is working now. [Geoffrey Spear]

0.13.0

Other

* Only pin lxml version on PyPy 2. [Geoffrey Spear]

* Only pin lxml version on PyPy. [Geoffrey Spear]

* Bump version since SUSHI API changes... [Geoffrey Spear]

* Add customer name to SUSHI. [Geoffrey Spear]

* Add requestor name to SUSHI requests; make it possible to specify name and email in the client. [Geoffrey Spear]

* Enables logging output in sushiclient; use a UUID for request ID. [Geoffrey Spear]

* Add "created" attribute to ReportRequest. Fix 30. [Geoffrey Spear]

* Suppress logging and warning output in unit tests... These are expected and there's no point in outputting them... [Geoffrey Spear]

0.12.0

Other

* Bump version for release. [Geoffrey Spear]

* Set title and platform attributes on CounterResource even if they're blank... [Geoffrey Spear]

* Order output reports by title. Fix 28. [Geoffrey Spear]

(Also correct missing line at EOF in last commit)

* Add a test of bad content in CSV, not just Excel (which does more magic conversion behind the scenes before it even hits our code...) [Geoffrey Spear]

* Style/refactor: rename some locals, adjust some docs, to make pycharm inspections happier... [Geoffrey Spear]

* Travis: wrong YAML syntax... [Geoffrey Spear]

* Travis: print coverage report into log (coveralls being down shouldn't make it impossible to view coverage on the web...) [Geoffrey Spear]

* Py2: checking for int objects isn't enough in py2, since these get converted as longs. Use six. [Geoffrey Spear]

* Be more accepting of Excel dates formatted as dates (instead of COUNTER-mandated date format strings), Weirdly formatted date strings, commas in data. [Geoffrey Spear]

( issue 15 )

* Fix typo in docstring. [Geoffrey Spear]

* Some tiny reformatting. [Geoffrey Spear]

* Update copyright dates. [Geoffrey Spear]

* Warning when fallback encoding is used... [Geoffrey Spear]

* Bump version since the API is changing with encoding stuff... [Geoffrey Spear]

* Fall back to 'latin-1' codec (or any specified encoding) when reading files. Fixes issue 26. [Geoffrey Spear]

* Py2: missed this hardcoded utf-8 instead of using self.encoding... [Geoffrey Spear]

* Allow encoding to be specified for separated files. See issue 26. [Geoffrey Spear]

* Fix typo. [Geoffrey Spear]

* Coverage: add SUSHI book with blank value for ISBN fields. [Geoffrey Spear]

* Remove mock that was added then never used. [Geoffrey Spear]

* Merge pull request 27 from chill17/publisher-fix. [Geoffrey Spear]

Removed if condition for setting self.publisher from CounterEresource

* Removed if condition for setting self.publisher from CounterEresource class. [Ed Hill]

ItemPublisher is listed in schema with minOccurs="0"
Not required for every field for valid Counter report
When if condition fails and self.publisher is not set various methods
such as CounterReport.write_tsv throw AttributeError exceptions because
they assume self.publisher.
Causes failure of writing and reading reports from some Counter compliant
vendors.

* Bump version for dev... [Geoffrey Spear]

* SUSHI book report: set ISBN from Online_ISBN field. Fix 25. [Geoffrey Spear]

0.11.1

Other

* Bump version for release. [Geoffrey Spear]

* Catch and ignore AttributeError when trying to iterate over SUSHI ItemIdentifier tags; possibly none will be present. Fix 24. [Geoffrey Spear]

* Add failing test for 24 (missing ItemIdentifiers causing error) [Geoffrey Spear]

0.11.0

Other

* Unpin openpxyl version; possibly pypy bug is fixed? (Issue on bitbucket looks closed, not 100% sure fix was released) [Geoffrey Spear]

* Update README to reflect that not only JR is supported by write_tsv (all report types supported for parsing can be output now); bump version for release. [Geoffrey Spear]

* Coverage: have a new file with 2-digit years since we dropped coverage by insisting BR2 did parse-export roundtrip correctly. [Geoffrey Spear]

* Add support for BR2 output. Fix 9. [Geoffrey Spear]

* Py2.6: no set literal syntax; just use a tuple, it's not slower for such a small test. [Geoffrey Spear]

* Add support for output of DB reports (DB1, DB2); fix some style issues. [Geoffrey Spear]

* Coverage: test file with multiple publishers and platforms (should bring us to 100% coverage) [Geoffrey Spear]

* Coverage: remove ISSNs from 1 SUSHI file to cover bit that deals with missing ISSNs. [Geoffrey Spear]

* Coverage: test creation of blank CounterJournal item. [Geoffrey Spear]

* If all publications have the same publisher, include the publisher name in the totals line. fix 23. [Geoffrey Spear]

* Use correct format for Platform report, even if it's bogus... [Geoffrey Spear]

* Pull report types for regex from constant instead of hardcoding. [Geoffrey Spear]

* Test valid but unsupported report type (Platform Report) [Geoffrey Spear]

* Remove some dead code; no idea if this actually ever did anything. [Geoffrey Spear]

* (coverage): don't cover line asserting it's unreachable. [Geoffrey Spear]

Test unknown file type raises exception.

* (coverage): check that extra blank lines at the end of a file doesn't trip up the parser. [Geoffrey Spear]

* Change some __str__ methods to __repr__ and skip checking coverage for them... [Geoffrey Spear]

* Whoops... this test passes on Windows because of case-insensitive file system; fails on Travis. [Geoffrey Spear]

* Flake8: missed newline at end of file :( [Geoffrey Spear]

* Add support for output of report BR1. [Geoffrey Spear]

* Move hardcoded header column cells to a constant. [Geoffrey Spear]

* Document missing sushiclient options; a bit more code quality stuff. [Geoffrey Spear]

* Tweak BR1 SUSHI response a bit to make it more book-like and for code coverage. [Geoffrey Spear]

* Test SUSHI for book reports (The report could... use some work. Just based it off the JR1 report, and it's probably largely invalid but the parser doesn't care) [Geoffrey Spear]

* More tests for the SUSHI client. [Geoffrey Spear]

* Python 2.6 doesn't have assertIn; skip coverage check for __name__ == "__main__" guard. [Geoffrey Spear]

* Add a simple test of the SUSHI client. [Geoffrey Spear]

0.10.1

Other

* Bump version for tiny test fix, and release this instead. [Geoffrey Spear]

* Python 2.6 doesn't have assertIsNone... [Geoffrey Spear]

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.