Arxiv

Latest version: v2.1.0

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

Scan your dependencies

Page 3 of 4

1.2.0

Breaking change.

+ Implements `__eq__` for equality-checking: (64)
+ For `Result`s using `(Result).entry_id`
+ For `Result.Author`s using `(Result.Author).name`
+ For `Result.Link`s using `(Result.Link).href`

Nonbreaking changes:

+ Updates `__repr__` methods to include quotes around string arguments. (64)

1.1.0

Breaking change.

+ Removes `(Result).get_pdf_url()`; use `(Result).pdf_url` (59)
+ `(Result).get_pdf_url()` functionality moved to `(Result)._get_pdf_url()`, which is used to populate `(Result).pdf_url` in the `Result` constructor.
+ Refactors constructors to avoid using feedparser types in constructors (61)
+ `Result.Author.__init__` becomes `Result.Author._from_feed_author`.
+ `Result.Link.__init__` becomes `Result.Link._from_feed_link`.
+ Converts `(Result).updated` and `(Result).published` from `time.struct_time`s to `datetime`s (58)

Nonbreaking:

+ Adds `__str__` and `__repr__` methods to non-enum classes (61).

1.0.2

Nonbreaking change.

+ Add `(Result).doi` and `(Result).journal_ref`, fields that were available before the v1 release.
+ Add `(Result)._raw` for debugging purposes.
+ Improve logging:
+ Quiet logging for retryable errors.
+ Logging for limit and pagination logic.

1.0.1

Nonbreaking change.

+ Call `time.sleep` more conservatively: instead of sleeping for `self.delay_seconds` before every request,
+ Only sleeps if `self.delay_seconds` have not *already* passed (e.g. while processing the previous page), and
+ Only sleeps for the remaining time, rather than the full `self.delay_seconds`.
+ Corrects timestamp type hints.

1.0.0

Breaking changes: **all old interfaces removed.**

+ Major refactor into `Client`, `Search`, and `Result`.
+ Adds custom errors: `ArxivError`, `UnexpectedEmptyPageError`, `HTTPError`.
+ v0.x features without equivalents in v1.x:
+ Non-generator search results; use `list(generator)` instead if needed.
+ Initial `start` values (pagination offset) besides 0.

Minor changes:

+ Add retry logic to mitigate 43.
+ Add docstring-generated documentation.
+ Lint with `flake8` and test in GitHub Actions.
+ Misc. dev tidying.

0.5.4

Nonbreaking change.

+ Fix bug: `_prune_result` was a no-op.
+ Update README.md documentation.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.