You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

pypi-simple

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pypi-simple - pypi Package Compare versions

Comparing version
1.1.0
to
1.2.0
+4
-0
CHANGELOG.md

@@ -0,1 +1,5 @@

v1.2.0 (2023-09-23)
-------------------
- Update pydantic to v2.0
v1.1.0 (2023-02-19)

@@ -2,0 +6,0 @@ -------------------

@@ -6,2 +6,7 @@ .. currentmodule:: pypi_simple

v1.2.0 (2023-09-23)
-------------------
- Update pydantic to v2.0
v1.1.0 (2023-02-19)

@@ -8,0 +13,0 @@ -------------------

Metadata-Version: 2.1
Name: pypi-simple
Version: 1.1.0
Version: 1.2.0
Summary: PyPI Simple Repository API client library

@@ -29,4 +29,11 @@ Home-page: https://github.com/jwodder/pypi-simple

Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: beautifulsoup4~=4.5
Requires-Dist: mailbits~=0.2
Requires-Dist: packaging>=20
Requires-Dist: pydantic~=2.0
Requires-Dist: requests~=2.20
Requires-Dist: typing_extensions; python_version < "3.8"
Provides-Extra: tqdm
License-File: LICENSE
Requires-Dist: tqdm; extra == "tqdm"

@@ -33,0 +40,0 @@ .. image:: http://www.repostatus.org/badges/latest/active.svg

+1
-1

@@ -48,3 +48,3 @@ [metadata]

packaging >= 20
pydantic ~= 1.7
pydantic ~= 2.0
requests ~= 2.20

@@ -51,0 +51,0 @@ typing_extensions; python_version < "3.8"

Metadata-Version: 2.1
Name: pypi-simple
Version: 1.1.0
Version: 1.2.0
Summary: PyPI Simple Repository API client library

@@ -29,4 +29,11 @@ Home-page: https://github.com/jwodder/pypi-simple

Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: beautifulsoup4~=4.5
Requires-Dist: mailbits~=0.2
Requires-Dist: packaging>=20
Requires-Dist: pydantic~=2.0
Requires-Dist: requests~=2.20
Requires-Dist: typing_extensions; python_version < "3.8"
Provides-Extra: tqdm
License-File: LICENSE
Requires-Dist: tqdm; extra == "tqdm"

@@ -33,0 +40,0 @@ .. image:: http://www.repostatus.org/badges/latest/active.svg

beautifulsoup4~=4.5
mailbits~=0.2
packaging>=20
pydantic~=1.7
pydantic~=2.0
requests~=2.20

@@ -6,0 +6,0 @@

@@ -17,3 +17,3 @@ """

__version__ = "1.1.0"
__version__ = "1.2.0"
__author__ = "John Thorvald Wodder II"

@@ -20,0 +20,0 @@ __author_email__ = "pypi-simple@varonathe.org"

@@ -189,3 +189,3 @@ from __future__ import annotations

"""
return cls.from_file(File.parse_obj(data), project_hint, base_url)
return cls.from_file(File.model_validate(data), project_hint, base_url)

@@ -307,3 +307,3 @@ @classmethod

"""
project = Project.parse_obj(data)
project = Project.model_validate(data)
check_repo_version(project.meta.api_version)

@@ -418,3 +418,3 @@ return ProjectPage(

"""
plist = ProjectList.parse_obj(data)
plist = ProjectList.model_validate(data)
check_repo_version(plist.meta.api_version)

@@ -421,0 +421,0 @@ return IndexPage(

from __future__ import annotations
from datetime import datetime
from typing import Dict, List, Optional, Union
from pydantic import BaseModel, Field, StrictBool
from typing import Any, Dict, List, Optional, Union
from pydantic import BaseModel, Field, StrictBool, field_validator

@@ -15,4 +15,12 @@

@field_validator("last_serial", mode="before")
@classmethod
def _strify_serial_int(cls, value: Any) -> Any:
if isinstance(value, int):
return str(value)
else:
return value
class File(BaseModel):
class File(BaseModel, alias_generator=shishkebab):
filename: str

@@ -28,5 +36,2 @@ url: str

class Config:
alias_generator = shishkebab
@property

@@ -33,0 +38,0 @@ def is_yanked(self) -> bool:

@@ -39,2 +39,6 @@ [tox]

ignore::bs4.builder.XMLParsedAsHTMLWarning
# <https://github.com/yaml/pyyaml/issues/688>
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
# <https://github.com/urllib3/urllib3/issues/3020>
ignore:urllib3 v2.0 only supports OpenSSL

@@ -41,0 +45,0 @@ [coverage:run]