├── .github └── workflows │ ├── ci.yml │ └── publish_to_pypi.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── poetry.lock ├── poetry.toml ├── pyproject.toml ├── rss_parser ├── __init__.py ├── _parser.py ├── custom_decorators.py ├── models │ ├── __init__.py │ ├── atom │ │ ├── __init__.py │ │ ├── atom.py │ │ ├── entry.py │ │ ├── feed.py │ │ ├── person.py │ │ └── source.py │ ├── rss │ │ ├── __init__.py │ │ ├── channel.py │ │ ├── image.py │ │ ├── item.py │ │ ├── rss.py │ │ └── text_input.py │ ├── types │ │ ├── __init__.py │ │ ├── date.py │ │ ├── only_list.py │ │ └── tag.py │ └── utils.py ├── py.typed └── pydantic_proxy.py └── tests ├── __init__.py ├── conftest.py ├── samples ├── apology_line │ ├── data.xml │ └── result.pkl ├── atom │ ├── data.xml │ └── result.pkl ├── generic_atom_feed │ ├── data.xml │ └── result.pkl ├── github-49 │ ├── data.xml │ └── result.pkl ├── rss_2 │ ├── data.xml │ └── result.pkl ├── rss_2_no_category_attr │ ├── data.xml │ └── result.pkl └── rss_2_with_1_item │ ├── data.xml │ └── result.pkl └── test_parsing.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Lint and test 2 | 3 | on: 4 | schedule: 5 | - cron: "0 0 1 * *" 6 | push: 7 | paths-ignore: 8 | - ".gitignore" 9 | - "README.md" 10 | pull_request: 11 | 12 | jobs: 13 | test: 14 | strategy: 15 | max-parallel: 6 16 | matrix: 17 | os: [ "ubuntu-latest", "windows-latest", "macos-latest" ] 18 | python-version: [ "3.9", "3.10", "3.11", "3.12" ] 19 | 20 | runs-on: ${{ matrix.os }} 21 | 22 | steps: 23 | - uses: actions/checkout@v3 24 | 25 | - name: Install poetry 26 | run: pipx install poetry 27 | 28 | - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} 29 | id: setup-python 30 | uses: actions/setup-python@v4 31 | with: 32 | python-version: ${{ matrix.python-version }} 33 | cache-dependency-path: pyproject.toml 34 | cache: poetry 35 | 36 | - name: Install dependencies 37 | if: steps.setup-python.outputs.cache-hit != 'true' 38 | run: poetry install 39 | 40 | - name: Lint code with black 41 | run: poetry run black --check . 42 | 43 | - name: Lint code with ruff 44 | run: poetry run ruff check . 45 | 46 | - name: Test code with pytest 47 | run: poetry run pytest --doctest-modules 48 | -------------------------------------------------------------------------------- /.github/workflows/publish_to_pypi.yml: -------------------------------------------------------------------------------- 1 | name: Publish to PyPI 2 | 3 | on: 4 | push: 5 | tags: 6 | - "v*" 7 | # TODO: Only on CI success 8 | 9 | jobs: 10 | build-and-test-publish: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@master 14 | - name: Build and publish to pypi 15 | uses: JRubics/poetry-publish@v1.9 16 | with: 17 | pypi_token: ${{ secrets.pypi_password }} 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | #pipenv 3 | Pipfile 4 | Pipfile.lock 5 | *.sh 6 | 7 | #PyCharm 8 | .idea 9 | 10 | # Byte-compiled / optimized / DLL files 11 | __pycache__/ 12 | *.py[cod] 13 | *$py.class 14 | 15 | # C extensions 16 | *.so 17 | 18 | # Distribution / packaging 19 | .Python 20 | build/ 21 | develop-eggs/ 22 | dist/ 23 | downloads/ 24 | eggs/ 25 | .eggs/ 26 | lib/ 27 | lib64/ 28 | parts/ 29 | sdist/ 30 | var/ 31 | wheels/ 32 | *.egg-info/ 33 | .installed.cfg 34 | *.egg 35 | MANIFEST 36 | 37 | # PyInstaller 38 | # Usually these files are written by a python script from a template 39 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 40 | *.manifest 41 | *.spec 42 | 43 | # Installer logs 44 | pip-log.txt 45 | pip-delete-this-directory.txt 46 | 47 | # Unit test / coverage reports 48 | htmlcov/ 49 | .tox/ 50 | .coverage 51 | .coverage.* 52 | .cache 53 | nosetests.xml 54 | coverage.xml 55 | *.cover 56 | .hypothesis/ 57 | .pytest_cache/ 58 | 59 | # Translations 60 | *.mo 61 | *.pot 62 | 63 | # Django stuff: 64 | *.log 65 | local_settings.py 66 | db.sqlite3 67 | 68 | # Flask stuff: 69 | instance/ 70 | .webassets-cache 71 | 72 | # Scrapy stuff: 73 | .scrapy 74 | 75 | # Sphinx documentation 76 | docs/_build/ 77 | 78 | # PyBuilder 79 | target/ 80 | 81 | # Jupyter Notebook 82 | .ipynb_checkpoints 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # celery beat schedule file 88 | celerybeat-schedule 89 | 90 | # SageMath parsed files 91 | *.sage.py 92 | 93 | # Environments 94 | .env 95 | .venv 96 | env/ 97 | venv/ 98 | ENV/ 99 | env.bak/ 100 | venv.bak/ 101 | 102 | # Spyder project settings 103 | .spyderproject 104 | .spyproject 105 | 106 | # Rope project settings 107 | .ropeproject 108 | 109 | # mkdocs documentation 110 | /site 111 | 112 | # mypy 113 | .mypy_cache/ 114 | 115 | .rss-parser 116 | .ruff_cache 117 | .python-version 118 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | repos: 2 | # Use pre-commit repo, v3.4.0 3 | - repo: https://github.com/pre-commit/pre-commit-hooks 4 | rev: "v3.4.0" 5 | hooks: 6 | # Check for files that contain merge conflict strings. 7 | - id: check-merge-conflict 8 | stages: [ commit, push ] 9 | # Simply check whether files parse as valid python. 10 | - id: check-ast 11 | stages: [ commit ] 12 | 13 | # Use locally installed hooks 14 | - repo: local 15 | 16 | hooks: 17 | - id: black-format-staged 18 | name: black 19 | entry: poetry 20 | args: 21 | - run 22 | - black 23 | language: system 24 | types: [ python ] 25 | stages: [ commit ] 26 | 27 | - id: ruff-check-global 28 | name: ruff 29 | entry: poetry 30 | args: 31 | - run 32 | - ruff 33 | - check 34 | language: system 35 | types: [ python ] 36 | stages: [ commit, push ] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rss parser 2 | 3 | [![Downloads](https://pepy.tech/badge/rss-parser)](https://pepy.tech/project/rss-parser) 4 | [![Downloads](https://pepy.tech/badge/rss-parser/month)](https://pepy.tech/project/rss-parser) 5 | [![Downloads](https://pepy.tech/badge/rss-parser/week)](https://pepy.tech/project/rss-parser) 6 | 7 | [![PyPI version](https://img.shields.io/pypi/v/rss-parser)](https://pypi.org/project/rss-parser) 8 | [![Python versions](https://img.shields.io/pypi/pyversions/rss-parser)](https://pypi.org/project/rss-parser) 9 | [![Wheel status](https://img.shields.io/pypi/wheel/rss-parser)](https://pypi.org/project/rss-parser) 10 | [![License](https://img.shields.io/pypi/l/rss-parser?color=success)](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) 11 | 12 | ![Docs](https://github.com/dhvcc/rss-parser/actions/workflows/pages/pages-build-deployment/badge.svg) 13 | ![CI](https://github.com/dhvcc/rss-parser/actions/workflows/ci.yml/badge.svg?branch=master) 14 | ![PyPi publish](https://github.com/dhvcc/rss-parser/actions/workflows/publish_to_pypi.yml/badge.svg) 15 | 16 | ## About 17 | 18 | `rss-parser` is typed python RSS/Atom parsing module built using [pydantic](https://github.com/pydantic/pydantic) and [xmltodict](https://github.com/martinblech/xmltodict) 19 | 20 | ## Installation 21 | 22 | ```bash 23 | pip install rss-parser 24 | ``` 25 | 26 | or 27 | 28 | ```bash 29 | git clone https://github.com/dhvcc/rss-parser.git 30 | cd rss-parser 31 | poetry build 32 | pip install dist/*.whl 33 | ``` 34 | 35 | ## V1 -> V2 migration 36 | - `Parser` class was renamed to `RSSParser` 37 | - Models for RSS-specific schemas were moved from `rss_parser.models` to `rss_parser.models.rss`. Generic types are not touched 38 | - Date parsing was changed a bit, now uses pydantic's `validator` instead of `email.utils`, so the code will produce datetimes better, where it was defaulting to `str` before 39 | 40 | ## Usage 41 | 42 | ### Quickstart 43 | 44 | **NOTE: For parsing Atom, use `AtomParser`** 45 | 46 | ```python 47 | from rss_parser import RSSParser 48 | from requests import get # noqa 49 | 50 | rss_url = "https://rss.art19.com/apology-line" 51 | response = get(rss_url) 52 | 53 | rss = RSSParser.parse(response.text) 54 | 55 | # Print out rss meta data 56 | print("Language", rss.channel.language) 57 | print("RSS", rss.version) 58 | 59 | # Iteratively print feed items 60 | for item in rss.channel.items: 61 | print(item.title) 62 | print(item.description[:50]) 63 | 64 | # Language en 65 | # RSS 2.0 66 | # Wondery Presents - Flipping The Bird: Elon vs Twitter 67 | #

When Elon Musk posted a video of himself arrivi 68 | # Introducing: The Apology Line 69 | #

If you could call a number and say you’re sorry 70 | ``` 71 | 72 | Here we can see that description is still somehow has

- this is beacause it's placed as [CDATA](https://www.w3resource.com/xml/CDATA-sections.php) like so 73 | 74 | ``` 75 | If you could call ...

]]> 76 | ``` 77 | 78 | ### Overriding schema 79 | 80 | If you want to customize the schema or provide a custom one - use `schema` keyword argument of the parser 81 | 82 | ```python 83 | from rss_parser import RSSParser 84 | from rss_parser.models import XMLBaseModel 85 | from rss_parser.models.rss import RSS 86 | from rss_parser.models.types import Tag 87 | 88 | 89 | class CustomSchema(RSS, XMLBaseModel): 90 | channel: None = None # Removing previous channel field 91 | custom: Tag[str] 92 | 93 | 94 | with open("tests/samples/custom.xml") as f: 95 | data = f.read() 96 | 97 | rss = RSSParser.parse(data, schema=CustomSchema) 98 | 99 | print("RSS", rss.version) 100 | print("Custom", rss.custom) 101 | 102 | # RSS 2.0 103 | # Custom Custom tag data 104 | ``` 105 | 106 | ### xmltodict 107 | 108 | This library uses [xmltodict](https://github.com/martinblech/xmltodict) to parse XML data. You can see the detailed documentation [here](https://github.com/martinblech/xmltodict#xmltodict) 109 | 110 | The basic thing you should know is that your data is processed into dictionaries 111 | 112 | For example, this data 113 | 114 | ```xml 115 | content 116 | ``` 117 | 118 | will result in the following 119 | 120 | ```python 121 | { 122 | "tag": "content" 123 | } 124 | ``` 125 | 126 | *But*, when handling attributes, the content of the tag will be also a dictionary 127 | 128 | ```xml 129 | data 130 | ``` 131 | 132 | Turns into 133 | 134 | ```python 135 | { 136 | "tag": { 137 | "@attr": "1", 138 | "@data-value": "data", 139 | "#text": "content" 140 | } 141 | } 142 | ``` 143 | 144 | Multiple children of a tag will be put into a list 145 | 146 | ```xml 147 |
148 | content 149 | content2 150 |
151 | ``` 152 | 153 | Results in a list 154 | 155 | ```python 156 | [ 157 | { "tag": "content" }, 158 | { "tag": "content" }, 159 | ] 160 | ``` 161 | 162 | If you don't want to deal with those conditions and parse something **always** as a list - 163 | please, use `rss_parser.models.types.only_list.OnlyList` like we did in `Channel` 164 | ```python 165 | from typing import Optional 166 | 167 | from rss_parser.models.rss.item import Item 168 | from rss_parser.models.types.only_list import OnlyList 169 | from rss_parser.models.types.tag import Tag 170 | from rss_parser.pydantic_proxy import import_v1_pydantic 171 | 172 | pydantic = import_v1_pydantic() 173 | ... 174 | 175 | 176 | class OptionalChannelElementsMixin(...): 177 | ... 178 | items: Optional[OnlyList[Tag[Item]]] = pydantic.Field(alias="item", default=[]) 179 | ``` 180 | 181 | ### Tag field 182 | 183 | This is a generic field that handles tags as raw data or a dictonary returned with attributes 184 | 185 | Example 186 | 187 | ```python 188 | from rss_parser.models import XMLBaseModel 189 | from rss_parser.models.types.tag import Tag 190 | 191 | 192 | class Model(XMLBaseModel): 193 | width: Tag[int] 194 | category: Tag[str] 195 | 196 | 197 | m = Model( 198 | width=48, 199 | category={"@someAttribute": "https://example.com", "#text": "valid string"}, 200 | ) 201 | 202 | # Content value is an integer, as per the generic type 203 | assert m.width.content == 48 204 | 205 | assert type(m.width), type(m.width.content) == (Tag[int], int) 206 | 207 | # The attributes are empty by default 208 | assert m.width.attributes == {} # But are populated when provided. 209 | 210 | # Note that the @ symbol is trimmed from the beggining and name is convert to snake_case 211 | assert m.category.attributes == {'some_attribute': 'https://example.com'} 212 | ``` 213 | 214 | ## Contributing 215 | 216 | Pull requests are welcome. For major changes, please open an issue first 217 | to discuss what you would like to change. 218 | 219 | Install dependencies with `poetry install` (`pip install poetry`) 220 | 221 | `pre-commit` usage is highly recommended. To install hooks run 222 | 223 | ```bash 224 | poetry run pre-commit install -t=pre-commit -t=pre-push 225 | ``` 226 | 227 | ## License 228 | 229 | [GPLv3](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) 230 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. 2 | 3 | [[package]] 4 | name = "annotated-types" 5 | version = "0.6.0" 6 | description = "Reusable constraint types to use with typing.Annotated" 7 | optional = false 8 | python-versions = ">=3.8" 9 | files = [ 10 | {file = "annotated_types-0.6.0-py3-none-any.whl", hash = "sha256:0641064de18ba7a25dee8f96403ebc39113d0cb953a01429249d5c7564666a43"}, 11 | {file = "annotated_types-0.6.0.tar.gz", hash = "sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"}, 12 | ] 13 | 14 | [[package]] 15 | name = "appnope" 16 | version = "0.1.3" 17 | description = "Disable App Nap on macOS >= 10.9" 18 | optional = false 19 | python-versions = "*" 20 | files = [ 21 | {file = "appnope-0.1.3-py2.py3-none-any.whl", hash = "sha256:265a455292d0bd8a72453494fa24df5a11eb18373a60c7c0430889f22548605e"}, 22 | {file = "appnope-0.1.3.tar.gz", hash = "sha256:02bd91c4de869fbb1e1c50aafc4098827a7a54ab2f39d9dcba6c9547ed920e24"}, 23 | ] 24 | 25 | [[package]] 26 | name = "asttokens" 27 | version = "2.4.0" 28 | description = "Annotate AST trees with source code positions" 29 | optional = false 30 | python-versions = "*" 31 | files = [ 32 | {file = "asttokens-2.4.0-py2.py3-none-any.whl", hash = "sha256:cf8fc9e61a86461aa9fb161a14a0841a03c405fa829ac6b202670b3495d2ce69"}, 33 | {file = "asttokens-2.4.0.tar.gz", hash = "sha256:2e0171b991b2c959acc6c49318049236844a5da1d65ba2672c4880c1c894834e"}, 34 | ] 35 | 36 | [package.dependencies] 37 | six = ">=1.12.0" 38 | 39 | [package.extras] 40 | test = ["astroid", "pytest"] 41 | 42 | [[package]] 43 | name = "backcall" 44 | version = "0.2.0" 45 | description = "Specifications for callback functions passed in to an API" 46 | optional = false 47 | python-versions = "*" 48 | files = [ 49 | {file = "backcall-0.2.0-py2.py3-none-any.whl", hash = "sha256:fbbce6a29f263178a1f7915c1940bde0ec2b2a967566fe1c65c1dfb7422bd255"}, 50 | {file = "backcall-0.2.0.tar.gz", hash = "sha256:5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"}, 51 | ] 52 | 53 | [[package]] 54 | name = "black" 55 | version = "22.12.0" 56 | description = "The uncompromising code formatter." 57 | optional = false 58 | python-versions = ">=3.7" 59 | files = [ 60 | {file = "black-22.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9eedd20838bd5d75b80c9f5487dbcb06836a43833a37846cf1d8c1cc01cef59d"}, 61 | {file = "black-22.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:159a46a4947f73387b4d83e87ea006dbb2337eab6c879620a3ba52699b1f4351"}, 62 | {file = "black-22.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d30b212bffeb1e252b31dd269dfae69dd17e06d92b87ad26e23890f3efea366f"}, 63 | {file = "black-22.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:7412e75863aa5c5411886804678b7d083c7c28421210180d67dfd8cf1221e1f4"}, 64 | {file = "black-22.12.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c116eed0efb9ff870ded8b62fe9f28dd61ef6e9ddd28d83d7d264a38417dcee2"}, 65 | {file = "black-22.12.0-cp37-cp37m-win_amd64.whl", hash = "sha256:1f58cbe16dfe8c12b7434e50ff889fa479072096d79f0a7f25e4ab8e94cd8350"}, 66 | {file = "black-22.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:77d86c9f3db9b1bf6761244bc0b3572a546f5fe37917a044e02f3166d5aafa7d"}, 67 | {file = "black-22.12.0-cp38-cp38-win_amd64.whl", hash = "sha256:82d9fe8fee3401e02e79767016b4907820a7dc28d70d137eb397b92ef3cc5bfc"}, 68 | {file = "black-22.12.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:101c69b23df9b44247bd88e1d7e90154336ac4992502d4197bdac35dd7ee3320"}, 69 | {file = "black-22.12.0-cp39-cp39-win_amd64.whl", hash = "sha256:559c7a1ba9a006226f09e4916060982fd27334ae1998e7a38b3f33a37f7a2148"}, 70 | {file = "black-22.12.0-py3-none-any.whl", hash = "sha256:436cc9167dd28040ad90d3b404aec22cedf24a6e4d7de221bec2730ec0c97bcf"}, 71 | {file = "black-22.12.0.tar.gz", hash = "sha256:229351e5a18ca30f447bf724d007f890f97e13af070bb6ad4c0a441cd7596a2f"}, 72 | ] 73 | 74 | [package.dependencies] 75 | click = ">=8.0.0" 76 | mypy-extensions = ">=0.4.3" 77 | pathspec = ">=0.9.0" 78 | platformdirs = ">=2" 79 | tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""} 80 | typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} 81 | 82 | [package.extras] 83 | colorama = ["colorama (>=0.4.3)"] 84 | d = ["aiohttp (>=3.7.4)"] 85 | jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] 86 | uvloop = ["uvloop (>=0.15.2)"] 87 | 88 | [[package]] 89 | name = "certifi" 90 | version = "2024.8.30" 91 | description = "Python package for providing Mozilla's CA Bundle." 92 | optional = false 93 | python-versions = ">=3.6" 94 | files = [ 95 | {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, 96 | {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, 97 | ] 98 | 99 | [[package]] 100 | name = "cfgv" 101 | version = "3.4.0" 102 | description = "Validate configuration and produce human readable error messages." 103 | optional = false 104 | python-versions = ">=3.8" 105 | files = [ 106 | {file = "cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9"}, 107 | {file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"}, 108 | ] 109 | 110 | [[package]] 111 | name = "charset-normalizer" 112 | version = "3.3.2" 113 | description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." 114 | optional = false 115 | python-versions = ">=3.7.0" 116 | files = [ 117 | {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"}, 118 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3"}, 119 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027"}, 120 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03"}, 121 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d"}, 122 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e"}, 123 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6"}, 124 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5"}, 125 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537"}, 126 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c"}, 127 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12"}, 128 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f"}, 129 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269"}, 130 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519"}, 131 | {file = "charset_normalizer-3.3.2-cp310-cp310-win32.whl", hash = "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73"}, 132 | {file = "charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09"}, 133 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"}, 134 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"}, 135 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"}, 136 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"}, 137 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"}, 138 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"}, 139 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"}, 140 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"}, 141 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"}, 142 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"}, 143 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"}, 144 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"}, 145 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"}, 146 | {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"}, 147 | {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"}, 148 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"}, 149 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"}, 150 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"}, 151 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"}, 152 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"}, 153 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"}, 154 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"}, 155 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"}, 156 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"}, 157 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"}, 158 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"}, 159 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"}, 160 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"}, 161 | {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"}, 162 | {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"}, 163 | {file = "charset_normalizer-3.3.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c"}, 164 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5"}, 165 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985"}, 166 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6"}, 167 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714"}, 168 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786"}, 169 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5"}, 170 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c"}, 171 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8"}, 172 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711"}, 173 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811"}, 174 | {file = "charset_normalizer-3.3.2-cp37-cp37m-win32.whl", hash = "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4"}, 175 | {file = "charset_normalizer-3.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99"}, 176 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"}, 177 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"}, 178 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"}, 179 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"}, 180 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"}, 181 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"}, 182 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"}, 183 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"}, 184 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"}, 185 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"}, 186 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"}, 187 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"}, 188 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"}, 189 | {file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"}, 190 | {file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"}, 191 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"}, 192 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"}, 193 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"}, 194 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269"}, 195 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c"}, 196 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519"}, 197 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796"}, 198 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185"}, 199 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c"}, 200 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458"}, 201 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2"}, 202 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8"}, 203 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561"}, 204 | {file = "charset_normalizer-3.3.2-cp39-cp39-win32.whl", hash = "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f"}, 205 | {file = "charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl", hash = "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d"}, 206 | {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, 207 | ] 208 | 209 | [[package]] 210 | name = "click" 211 | version = "8.1.7" 212 | description = "Composable command line interface toolkit" 213 | optional = false 214 | python-versions = ">=3.7" 215 | files = [ 216 | {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, 217 | {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, 218 | ] 219 | 220 | [package.dependencies] 221 | colorama = {version = "*", markers = "platform_system == \"Windows\""} 222 | 223 | [[package]] 224 | name = "colorama" 225 | version = "0.4.6" 226 | description = "Cross-platform colored terminal text." 227 | optional = false 228 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" 229 | files = [ 230 | {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, 231 | {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, 232 | ] 233 | 234 | [[package]] 235 | name = "decorator" 236 | version = "5.1.1" 237 | description = "Decorators for Humans" 238 | optional = false 239 | python-versions = ">=3.5" 240 | files = [ 241 | {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"}, 242 | {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"}, 243 | ] 244 | 245 | [[package]] 246 | name = "distlib" 247 | version = "0.3.7" 248 | description = "Distribution utilities" 249 | optional = false 250 | python-versions = "*" 251 | files = [ 252 | {file = "distlib-0.3.7-py2.py3-none-any.whl", hash = "sha256:2e24928bc811348f0feb63014e97aaae3037f2cf48712d51ae61df7fd6075057"}, 253 | {file = "distlib-0.3.7.tar.gz", hash = "sha256:9dafe54b34a028eafd95039d5e5d4851a13734540f1331060d31c9916e7147a8"}, 254 | ] 255 | 256 | [[package]] 257 | name = "exceptiongroup" 258 | version = "1.1.3" 259 | description = "Backport of PEP 654 (exception groups)" 260 | optional = false 261 | python-versions = ">=3.7" 262 | files = [ 263 | {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, 264 | {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, 265 | ] 266 | 267 | [package.extras] 268 | test = ["pytest (>=6)"] 269 | 270 | [[package]] 271 | name = "executing" 272 | version = "2.0.0" 273 | description = "Get the currently executing AST node of a frame, and other information" 274 | optional = false 275 | python-versions = "*" 276 | files = [ 277 | {file = "executing-2.0.0-py2.py3-none-any.whl", hash = "sha256:06df6183df67389625f4e763921c6cf978944721abf3e714000200aab95b0657"}, 278 | {file = "executing-2.0.0.tar.gz", hash = "sha256:0ff053696fdeef426cda5bd18eacd94f82c91f49823a2e9090124212ceea9b08"}, 279 | ] 280 | 281 | [package.extras] 282 | tests = ["asttokens (>=2.1.0)", "coverage", "coverage-enable-subprocess", "ipython", "littleutils", "pytest", "rich"] 283 | 284 | [[package]] 285 | name = "filelock" 286 | version = "3.12.4" 287 | description = "A platform independent file lock." 288 | optional = false 289 | python-versions = ">=3.8" 290 | files = [ 291 | {file = "filelock-3.12.4-py3-none-any.whl", hash = "sha256:08c21d87ded6e2b9da6728c3dff51baf1dcecf973b768ef35bcbc3447edb9ad4"}, 292 | {file = "filelock-3.12.4.tar.gz", hash = "sha256:2e6f249f1f3654291606e046b09f1fd5eac39b360664c27f5aad072012f8bcbd"}, 293 | ] 294 | 295 | [package.extras] 296 | docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1.24)"] 297 | testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"] 298 | typing = ["typing-extensions (>=4.7.1)"] 299 | 300 | [[package]] 301 | name = "identify" 302 | version = "2.5.30" 303 | description = "File identification library for Python" 304 | optional = false 305 | python-versions = ">=3.8" 306 | files = [ 307 | {file = "identify-2.5.30-py2.py3-none-any.whl", hash = "sha256:afe67f26ae29bab007ec21b03d4114f41316ab9dd15aa8736a167481e108da54"}, 308 | {file = "identify-2.5.30.tar.gz", hash = "sha256:f302a4256a15c849b91cfcdcec052a8ce914634b2f77ae87dad29cd749f2d88d"}, 309 | ] 310 | 311 | [package.extras] 312 | license = ["ukkonen"] 313 | 314 | [[package]] 315 | name = "idna" 316 | version = "3.10" 317 | description = "Internationalized Domain Names in Applications (IDNA)" 318 | optional = false 319 | python-versions = ">=3.6" 320 | files = [ 321 | {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, 322 | {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, 323 | ] 324 | 325 | [package.extras] 326 | all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] 327 | 328 | [[package]] 329 | name = "iniconfig" 330 | version = "2.0.0" 331 | description = "brain-dead simple config-ini parsing" 332 | optional = false 333 | python-versions = ">=3.7" 334 | files = [ 335 | {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, 336 | {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, 337 | ] 338 | 339 | [[package]] 340 | name = "ipython" 341 | version = "8.16.1" 342 | description = "IPython: Productive Interactive Computing" 343 | optional = false 344 | python-versions = ">=3.9" 345 | files = [ 346 | {file = "ipython-8.16.1-py3-none-any.whl", hash = "sha256:0852469d4d579d9cd613c220af7bf0c9cc251813e12be647cb9d463939db9b1e"}, 347 | {file = "ipython-8.16.1.tar.gz", hash = "sha256:ad52f58fca8f9f848e256c629eff888efc0528c12fe0f8ec14f33205f23ef938"}, 348 | ] 349 | 350 | [package.dependencies] 351 | appnope = {version = "*", markers = "sys_platform == \"darwin\""} 352 | backcall = "*" 353 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 354 | decorator = "*" 355 | exceptiongroup = {version = "*", markers = "python_version < \"3.11\""} 356 | jedi = ">=0.16" 357 | matplotlib-inline = "*" 358 | pexpect = {version = ">4.3", markers = "sys_platform != \"win32\""} 359 | pickleshare = "*" 360 | prompt-toolkit = ">=3.0.30,<3.0.37 || >3.0.37,<3.1.0" 361 | pygments = ">=2.4.0" 362 | stack-data = "*" 363 | traitlets = ">=5" 364 | typing-extensions = {version = "*", markers = "python_version < \"3.10\""} 365 | 366 | [package.extras] 367 | all = ["black", "curio", "docrepr", "exceptiongroup", "ipykernel", "ipyparallel", "ipywidgets", "matplotlib", "matplotlib (!=3.2.0)", "nbconvert", "nbformat", "notebook", "numpy (>=1.21)", "pandas", "pytest (<7)", "pytest (<7.1)", "pytest-asyncio", "qtconsole", "setuptools (>=18.5)", "sphinx (>=1.3)", "sphinx-rtd-theme", "stack-data", "testpath", "trio", "typing-extensions"] 368 | black = ["black"] 369 | doc = ["docrepr", "exceptiongroup", "ipykernel", "matplotlib", "pytest (<7)", "pytest (<7.1)", "pytest-asyncio", "setuptools (>=18.5)", "sphinx (>=1.3)", "sphinx-rtd-theme", "stack-data", "testpath", "typing-extensions"] 370 | kernel = ["ipykernel"] 371 | nbconvert = ["nbconvert"] 372 | nbformat = ["nbformat"] 373 | notebook = ["ipywidgets", "notebook"] 374 | parallel = ["ipyparallel"] 375 | qtconsole = ["qtconsole"] 376 | test = ["pytest (<7.1)", "pytest-asyncio", "testpath"] 377 | test-extra = ["curio", "matplotlib (!=3.2.0)", "nbformat", "numpy (>=1.21)", "pandas", "pytest (<7.1)", "pytest-asyncio", "testpath", "trio"] 378 | 379 | [[package]] 380 | name = "jedi" 381 | version = "0.19.1" 382 | description = "An autocompletion tool for Python that can be used for text editors." 383 | optional = false 384 | python-versions = ">=3.6" 385 | files = [ 386 | {file = "jedi-0.19.1-py2.py3-none-any.whl", hash = "sha256:e983c654fe5c02867aef4cdfce5a2fbb4a50adc0af145f70504238f18ef5e7e0"}, 387 | {file = "jedi-0.19.1.tar.gz", hash = "sha256:cf0496f3651bc65d7174ac1b7d043eff454892c708a87d1b683e57b569927ffd"}, 388 | ] 389 | 390 | [package.dependencies] 391 | parso = ">=0.8.3,<0.9.0" 392 | 393 | [package.extras] 394 | docs = ["Jinja2 (==2.11.3)", "MarkupSafe (==1.1.1)", "Pygments (==2.8.1)", "alabaster (==0.7.12)", "babel (==2.9.1)", "chardet (==4.0.0)", "commonmark (==0.8.1)", "docutils (==0.17.1)", "future (==0.18.2)", "idna (==2.10)", "imagesize (==1.2.0)", "mock (==1.0.1)", "packaging (==20.9)", "pyparsing (==2.4.7)", "pytz (==2021.1)", "readthedocs-sphinx-ext (==2.1.4)", "recommonmark (==0.5.0)", "requests (==2.25.1)", "six (==1.15.0)", "snowballstemmer (==2.1.0)", "sphinx (==1.8.5)", "sphinx-rtd-theme (==0.4.3)", "sphinxcontrib-serializinghtml (==1.1.4)", "sphinxcontrib-websupport (==1.2.4)", "urllib3 (==1.26.4)"] 395 | qa = ["flake8 (==5.0.4)", "mypy (==0.971)", "types-setuptools (==67.2.0.1)"] 396 | testing = ["Django", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] 397 | 398 | [[package]] 399 | name = "markdown-it-py" 400 | version = "3.0.0" 401 | description = "Python port of markdown-it. Markdown parsing, done right!" 402 | optional = false 403 | python-versions = ">=3.8" 404 | files = [ 405 | {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, 406 | {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, 407 | ] 408 | 409 | [package.dependencies] 410 | mdurl = ">=0.1,<1.0" 411 | 412 | [package.extras] 413 | benchmarking = ["psutil", "pytest", "pytest-benchmark"] 414 | code-style = ["pre-commit (>=3.0,<4.0)"] 415 | compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"] 416 | linkify = ["linkify-it-py (>=1,<3)"] 417 | plugins = ["mdit-py-plugins"] 418 | profiling = ["gprof2dot"] 419 | rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"] 420 | testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] 421 | 422 | [[package]] 423 | name = "matplotlib-inline" 424 | version = "0.1.6" 425 | description = "Inline Matplotlib backend for Jupyter" 426 | optional = false 427 | python-versions = ">=3.5" 428 | files = [ 429 | {file = "matplotlib-inline-0.1.6.tar.gz", hash = "sha256:f887e5f10ba98e8d2b150ddcf4702c1e5f8b3a20005eb0f74bfdbd360ee6f304"}, 430 | {file = "matplotlib_inline-0.1.6-py3-none-any.whl", hash = "sha256:f1f41aab5328aa5aaea9b16d083b128102f8712542f819fe7e6a420ff581b311"}, 431 | ] 432 | 433 | [package.dependencies] 434 | traitlets = "*" 435 | 436 | [[package]] 437 | name = "mdurl" 438 | version = "0.1.2" 439 | description = "Markdown URL utilities" 440 | optional = false 441 | python-versions = ">=3.7" 442 | files = [ 443 | {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, 444 | {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, 445 | ] 446 | 447 | [[package]] 448 | name = "mypy-extensions" 449 | version = "1.0.0" 450 | description = "Type system extensions for programs checked with the mypy type checker." 451 | optional = false 452 | python-versions = ">=3.5" 453 | files = [ 454 | {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, 455 | {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, 456 | ] 457 | 458 | [[package]] 459 | name = "nodeenv" 460 | version = "1.8.0" 461 | description = "Node.js virtual environment builder" 462 | optional = false 463 | python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*" 464 | files = [ 465 | {file = "nodeenv-1.8.0-py2.py3-none-any.whl", hash = "sha256:df865724bb3c3adc86b3876fa209771517b0cfe596beff01a92700e0e8be4cec"}, 466 | {file = "nodeenv-1.8.0.tar.gz", hash = "sha256:d51e0c37e64fbf47d017feac3145cdbb58836d7eee8c6f6d3b6880c5456227d2"}, 467 | ] 468 | 469 | [package.dependencies] 470 | setuptools = "*" 471 | 472 | [[package]] 473 | name = "packaging" 474 | version = "23.2" 475 | description = "Core utilities for Python packages" 476 | optional = false 477 | python-versions = ">=3.7" 478 | files = [ 479 | {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, 480 | {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, 481 | ] 482 | 483 | [[package]] 484 | name = "parso" 485 | version = "0.8.3" 486 | description = "A Python Parser" 487 | optional = false 488 | python-versions = ">=3.6" 489 | files = [ 490 | {file = "parso-0.8.3-py2.py3-none-any.whl", hash = "sha256:c001d4636cd3aecdaf33cbb40aebb59b094be2a74c556778ef5576c175e19e75"}, 491 | {file = "parso-0.8.3.tar.gz", hash = "sha256:8c07be290bb59f03588915921e29e8a50002acaf2cdc5fa0e0114f91709fafa0"}, 492 | ] 493 | 494 | [package.extras] 495 | qa = ["flake8 (==3.8.3)", "mypy (==0.782)"] 496 | testing = ["docopt", "pytest (<6.0.0)"] 497 | 498 | [[package]] 499 | name = "pathspec" 500 | version = "0.11.2" 501 | description = "Utility library for gitignore style pattern matching of file paths." 502 | optional = false 503 | python-versions = ">=3.7" 504 | files = [ 505 | {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"}, 506 | {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"}, 507 | ] 508 | 509 | [[package]] 510 | name = "pexpect" 511 | version = "4.8.0" 512 | description = "Pexpect allows easy control of interactive console applications." 513 | optional = false 514 | python-versions = "*" 515 | files = [ 516 | {file = "pexpect-4.8.0-py2.py3-none-any.whl", hash = "sha256:0b48a55dcb3c05f3329815901ea4fc1537514d6ba867a152b581d69ae3710937"}, 517 | {file = "pexpect-4.8.0.tar.gz", hash = "sha256:fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"}, 518 | ] 519 | 520 | [package.dependencies] 521 | ptyprocess = ">=0.5" 522 | 523 | [[package]] 524 | name = "pickleshare" 525 | version = "0.7.5" 526 | description = "Tiny 'shelve'-like database with concurrency support" 527 | optional = false 528 | python-versions = "*" 529 | files = [ 530 | {file = "pickleshare-0.7.5-py2.py3-none-any.whl", hash = "sha256:9649af414d74d4df115d5d718f82acb59c9d418196b7b4290ed47a12ce62df56"}, 531 | {file = "pickleshare-0.7.5.tar.gz", hash = "sha256:87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca"}, 532 | ] 533 | 534 | [[package]] 535 | name = "platformdirs" 536 | version = "3.11.0" 537 | description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." 538 | optional = false 539 | python-versions = ">=3.7" 540 | files = [ 541 | {file = "platformdirs-3.11.0-py3-none-any.whl", hash = "sha256:e9d171d00af68be50e9202731309c4e658fd8bc76f55c11c7dd760d023bda68e"}, 542 | {file = "platformdirs-3.11.0.tar.gz", hash = "sha256:cf8ee52a3afdb965072dcc652433e0c7e3e40cf5ea1477cd4b3b1d2eb75495b3"}, 543 | ] 544 | 545 | [package.extras] 546 | docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.1)", "sphinx-autodoc-typehints (>=1.24)"] 547 | test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)"] 548 | 549 | [[package]] 550 | name = "pluggy" 551 | version = "1.3.0" 552 | description = "plugin and hook calling mechanisms for python" 553 | optional = false 554 | python-versions = ">=3.8" 555 | files = [ 556 | {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, 557 | {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, 558 | ] 559 | 560 | [package.extras] 561 | dev = ["pre-commit", "tox"] 562 | testing = ["pytest", "pytest-benchmark"] 563 | 564 | [[package]] 565 | name = "pre-commit" 566 | version = "2.21.0" 567 | description = "A framework for managing and maintaining multi-language pre-commit hooks." 568 | optional = false 569 | python-versions = ">=3.7" 570 | files = [ 571 | {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"}, 572 | {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"}, 573 | ] 574 | 575 | [package.dependencies] 576 | cfgv = ">=2.0.0" 577 | identify = ">=1.0.0" 578 | nodeenv = ">=0.11.1" 579 | pyyaml = ">=5.1" 580 | virtualenv = ">=20.10.0" 581 | 582 | [[package]] 583 | name = "prompt-toolkit" 584 | version = "3.0.39" 585 | description = "Library for building powerful interactive command lines in Python" 586 | optional = false 587 | python-versions = ">=3.7.0" 588 | files = [ 589 | {file = "prompt_toolkit-3.0.39-py3-none-any.whl", hash = "sha256:9dffbe1d8acf91e3de75f3b544e4842382fc06c6babe903ac9acb74dc6e08d88"}, 590 | {file = "prompt_toolkit-3.0.39.tar.gz", hash = "sha256:04505ade687dc26dc4284b1ad19a83be2f2afe83e7a828ace0c72f3a1df72aac"}, 591 | ] 592 | 593 | [package.dependencies] 594 | wcwidth = "*" 595 | 596 | [[package]] 597 | name = "ptyprocess" 598 | version = "0.7.0" 599 | description = "Run a subprocess in a pseudo terminal" 600 | optional = false 601 | python-versions = "*" 602 | files = [ 603 | {file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"}, 604 | {file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, 605 | ] 606 | 607 | [[package]] 608 | name = "pure-eval" 609 | version = "0.2.2" 610 | description = "Safely evaluate AST nodes without side effects" 611 | optional = false 612 | python-versions = "*" 613 | files = [ 614 | {file = "pure_eval-0.2.2-py3-none-any.whl", hash = "sha256:01eaab343580944bc56080ebe0a674b39ec44a945e6d09ba7db3cb8cec289350"}, 615 | {file = "pure_eval-0.2.2.tar.gz", hash = "sha256:2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3"}, 616 | ] 617 | 618 | [package.extras] 619 | tests = ["pytest"] 620 | 621 | [[package]] 622 | name = "pydantic" 623 | version = "2.4.2" 624 | description = "Data validation using Python type hints" 625 | optional = false 626 | python-versions = ">=3.7" 627 | files = [ 628 | {file = "pydantic-2.4.2-py3-none-any.whl", hash = "sha256:bc3ddf669d234f4220e6e1c4d96b061abe0998185a8d7855c0126782b7abc8c1"}, 629 | {file = "pydantic-2.4.2.tar.gz", hash = "sha256:94f336138093a5d7f426aac732dcfe7ab4eb4da243c88f891d65deb4a2556ee7"}, 630 | ] 631 | 632 | [package.dependencies] 633 | annotated-types = ">=0.4.0" 634 | pydantic-core = "2.10.1" 635 | typing-extensions = ">=4.6.1" 636 | 637 | [package.extras] 638 | email = ["email-validator (>=2.0.0)"] 639 | 640 | [[package]] 641 | name = "pydantic-core" 642 | version = "2.10.1" 643 | description = "" 644 | optional = false 645 | python-versions = ">=3.7" 646 | files = [ 647 | {file = "pydantic_core-2.10.1-cp310-cp310-macosx_10_7_x86_64.whl", hash = "sha256:d64728ee14e667ba27c66314b7d880b8eeb050e58ffc5fec3b7a109f8cddbd63"}, 648 | {file = "pydantic_core-2.10.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:48525933fea744a3e7464c19bfede85df4aba79ce90c60b94d8b6e1eddd67096"}, 649 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef337945bbd76cce390d1b2496ccf9f90b1c1242a3a7bc242ca4a9fc5993427a"}, 650 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a1392e0638af203cee360495fd2cfdd6054711f2db5175b6e9c3c461b76f5175"}, 651 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0675ba5d22de54d07bccde38997e780044dcfa9a71aac9fd7d4d7a1d2e3e65f7"}, 652 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:128552af70a64660f21cb0eb4876cbdadf1a1f9d5de820fed6421fa8de07c893"}, 653 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f6e6aed5818c264412ac0598b581a002a9f050cb2637a84979859e70197aa9e"}, 654 | {file = "pydantic_core-2.10.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ecaac27da855b8d73f92123e5f03612b04c5632fd0a476e469dfc47cd37d6b2e"}, 655 | {file = "pydantic_core-2.10.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b3c01c2fb081fced3bbb3da78510693dc7121bb893a1f0f5f4b48013201f362e"}, 656 | {file = "pydantic_core-2.10.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:92f675fefa977625105708492850bcbc1182bfc3e997f8eecb866d1927c98ae6"}, 657 | {file = "pydantic_core-2.10.1-cp310-none-win32.whl", hash = "sha256:420a692b547736a8d8703c39ea935ab5d8f0d2573f8f123b0a294e49a73f214b"}, 658 | {file = "pydantic_core-2.10.1-cp310-none-win_amd64.whl", hash = "sha256:0880e239827b4b5b3e2ce05e6b766a7414e5f5aedc4523be6b68cfbc7f61c5d0"}, 659 | {file = "pydantic_core-2.10.1-cp311-cp311-macosx_10_7_x86_64.whl", hash = "sha256:073d4a470b195d2b2245d0343569aac7e979d3a0dcce6c7d2af6d8a920ad0bea"}, 660 | {file = "pydantic_core-2.10.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:600d04a7b342363058b9190d4e929a8e2e715c5682a70cc37d5ded1e0dd370b4"}, 661 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:39215d809470f4c8d1881758575b2abfb80174a9e8daf8f33b1d4379357e417c"}, 662 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eeb3d3d6b399ffe55f9a04e09e635554012f1980696d6b0aca3e6cf42a17a03b"}, 663 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a7a7902bf75779bc12ccfc508bfb7a4c47063f748ea3de87135d433a4cca7a2f"}, 664 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3625578b6010c65964d177626fde80cf60d7f2e297d56b925cb5cdeda6e9925a"}, 665 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:caa48fc31fc7243e50188197b5f0c4228956f97b954f76da157aae7f67269ae8"}, 666 | {file = "pydantic_core-2.10.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:07ec6d7d929ae9c68f716195ce15e745b3e8fa122fc67698ac6498d802ed0fa4"}, 667 | {file = "pydantic_core-2.10.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e6f31a17acede6a8cd1ae2d123ce04d8cca74056c9d456075f4f6f85de055607"}, 668 | {file = "pydantic_core-2.10.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d8f1ebca515a03e5654f88411420fea6380fc841d1bea08effb28184e3d4899f"}, 669 | {file = "pydantic_core-2.10.1-cp311-none-win32.whl", hash = "sha256:6db2eb9654a85ada248afa5a6db5ff1cf0f7b16043a6b070adc4a5be68c716d6"}, 670 | {file = "pydantic_core-2.10.1-cp311-none-win_amd64.whl", hash = "sha256:4a5be350f922430997f240d25f8219f93b0c81e15f7b30b868b2fddfc2d05f27"}, 671 | {file = "pydantic_core-2.10.1-cp311-none-win_arm64.whl", hash = "sha256:5fdb39f67c779b183b0c853cd6b45f7db84b84e0571b3ef1c89cdb1dfc367325"}, 672 | {file = "pydantic_core-2.10.1-cp312-cp312-macosx_10_7_x86_64.whl", hash = "sha256:b1f22a9ab44de5f082216270552aa54259db20189e68fc12484873d926426921"}, 673 | {file = "pydantic_core-2.10.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8572cadbf4cfa95fb4187775b5ade2eaa93511f07947b38f4cd67cf10783b118"}, 674 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db9a28c063c7c00844ae42a80203eb6d2d6bbb97070cfa00194dff40e6f545ab"}, 675 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0e2a35baa428181cb2270a15864ec6286822d3576f2ed0f4cd7f0c1708472aff"}, 676 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05560ab976012bf40f25d5225a58bfa649bb897b87192a36c6fef1ab132540d7"}, 677 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d6495008733c7521a89422d7a68efa0a0122c99a5861f06020ef5b1f51f9ba7c"}, 678 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14ac492c686defc8e6133e3a2d9eaf5261b3df26b8ae97450c1647286750b901"}, 679 | {file = "pydantic_core-2.10.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8282bab177a9a3081fd3d0a0175a07a1e2bfb7fcbbd949519ea0980f8a07144d"}, 680 | {file = "pydantic_core-2.10.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:aafdb89fdeb5fe165043896817eccd6434aee124d5ee9b354f92cd574ba5e78f"}, 681 | {file = "pydantic_core-2.10.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:f6defd966ca3b187ec6c366604e9296f585021d922e666b99c47e78738b5666c"}, 682 | {file = "pydantic_core-2.10.1-cp312-none-win32.whl", hash = "sha256:7c4d1894fe112b0864c1fa75dffa045720a194b227bed12f4be7f6045b25209f"}, 683 | {file = "pydantic_core-2.10.1-cp312-none-win_amd64.whl", hash = "sha256:5994985da903d0b8a08e4935c46ed8daf5be1cf217489e673910951dc533d430"}, 684 | {file = "pydantic_core-2.10.1-cp312-none-win_arm64.whl", hash = "sha256:0d8a8adef23d86d8eceed3e32e9cca8879c7481c183f84ed1a8edc7df073af94"}, 685 | {file = "pydantic_core-2.10.1-cp37-cp37m-macosx_10_7_x86_64.whl", hash = "sha256:9badf8d45171d92387410b04639d73811b785b5161ecadabf056ea14d62d4ede"}, 686 | {file = "pydantic_core-2.10.1-cp37-cp37m-macosx_11_0_arm64.whl", hash = "sha256:ebedb45b9feb7258fac0a268a3f6bec0a2ea4d9558f3d6f813f02ff3a6dc6698"}, 687 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cfe1090245c078720d250d19cb05d67e21a9cd7c257698ef139bc41cf6c27b4f"}, 688 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e357571bb0efd65fd55f18db0a2fb0ed89d0bb1d41d906b138f088933ae618bb"}, 689 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b3dcd587b69bbf54fc04ca157c2323b8911033e827fffaecf0cafa5a892a0904"}, 690 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c120c9ce3b163b985a3b966bb701114beb1da4b0468b9b236fc754783d85aa3"}, 691 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15d6bca84ffc966cc9976b09a18cf9543ed4d4ecbd97e7086f9ce9327ea48891"}, 692 | {file = "pydantic_core-2.10.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5cabb9710f09d5d2e9e2748c3e3e20d991a4c5f96ed8f1132518f54ab2967221"}, 693 | {file = "pydantic_core-2.10.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:82f55187a5bebae7d81d35b1e9aaea5e169d44819789837cdd4720d768c55d15"}, 694 | {file = "pydantic_core-2.10.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:1d40f55222b233e98e3921df7811c27567f0e1a4411b93d4c5c0f4ce131bc42f"}, 695 | {file = "pydantic_core-2.10.1-cp37-none-win32.whl", hash = "sha256:14e09ff0b8fe6e46b93d36a878f6e4a3a98ba5303c76bb8e716f4878a3bee92c"}, 696 | {file = "pydantic_core-2.10.1-cp37-none-win_amd64.whl", hash = "sha256:1396e81b83516b9d5c9e26a924fa69164156c148c717131f54f586485ac3c15e"}, 697 | {file = "pydantic_core-2.10.1-cp38-cp38-macosx_10_7_x86_64.whl", hash = "sha256:6835451b57c1b467b95ffb03a38bb75b52fb4dc2762bb1d9dbed8de31ea7d0fc"}, 698 | {file = "pydantic_core-2.10.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b00bc4619f60c853556b35f83731bd817f989cba3e97dc792bb8c97941b8053a"}, 699 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fa467fd300a6f046bdb248d40cd015b21b7576c168a6bb20aa22e595c8ffcdd"}, 700 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d99277877daf2efe074eae6338453a4ed54a2d93fb4678ddfe1209a0c93a2468"}, 701 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fa7db7558607afeccb33c0e4bf1c9a9a835e26599e76af6fe2fcea45904083a6"}, 702 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:aad7bd686363d1ce4ee930ad39f14e1673248373f4a9d74d2b9554f06199fb58"}, 703 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:443fed67d33aa85357464f297e3d26e570267d1af6fef1c21ca50921d2976302"}, 704 | {file = "pydantic_core-2.10.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:042462d8d6ba707fd3ce9649e7bf268633a41018d6a998fb5fbacb7e928a183e"}, 705 | {file = "pydantic_core-2.10.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ecdbde46235f3d560b18be0cb706c8e8ad1b965e5c13bbba7450c86064e96561"}, 706 | {file = "pydantic_core-2.10.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ed550ed05540c03f0e69e6d74ad58d026de61b9eaebebbaaf8873e585cbb18de"}, 707 | {file = "pydantic_core-2.10.1-cp38-none-win32.whl", hash = "sha256:8cdbbd92154db2fec4ec973d45c565e767ddc20aa6dbaf50142676484cbff8ee"}, 708 | {file = "pydantic_core-2.10.1-cp38-none-win_amd64.whl", hash = "sha256:9f6f3e2598604956480f6c8aa24a3384dbf6509fe995d97f6ca6103bb8c2534e"}, 709 | {file = "pydantic_core-2.10.1-cp39-cp39-macosx_10_7_x86_64.whl", hash = "sha256:655f8f4c8d6a5963c9a0687793da37b9b681d9ad06f29438a3b2326d4e6b7970"}, 710 | {file = "pydantic_core-2.10.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e570ffeb2170e116a5b17e83f19911020ac79d19c96f320cbfa1fa96b470185b"}, 711 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64322bfa13e44c6c30c518729ef08fda6026b96d5c0be724b3c4ae4da939f875"}, 712 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:485a91abe3a07c3a8d1e082ba29254eea3e2bb13cbbd4351ea4e5a21912cc9b0"}, 713 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f7c2b8eb9fc872e68b46eeaf835e86bccc3a58ba57d0eedc109cbb14177be531"}, 714 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a5cb87bdc2e5f620693148b5f8f842d293cae46c5f15a1b1bf7ceeed324a740c"}, 715 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25bd966103890ccfa028841a8f30cebcf5875eeac8c4bde4fe221364c92f0c9a"}, 716 | {file = "pydantic_core-2.10.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f323306d0556351735b54acbf82904fe30a27b6a7147153cbe6e19aaaa2aa429"}, 717 | {file = "pydantic_core-2.10.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0c27f38dc4fbf07b358b2bc90edf35e82d1703e22ff2efa4af4ad5de1b3833e7"}, 718 | {file = "pydantic_core-2.10.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:f1365e032a477c1430cfe0cf2856679529a2331426f8081172c4a74186f1d595"}, 719 | {file = "pydantic_core-2.10.1-cp39-none-win32.whl", hash = "sha256:a1c311fd06ab3b10805abb72109f01a134019739bd3286b8ae1bc2fc4e50c07a"}, 720 | {file = "pydantic_core-2.10.1-cp39-none-win_amd64.whl", hash = "sha256:ae8a8843b11dc0b03b57b52793e391f0122e740de3df1474814c700d2622950a"}, 721 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-macosx_10_7_x86_64.whl", hash = "sha256:d43002441932f9a9ea5d6f9efaa2e21458221a3a4b417a14027a1d530201ef1b"}, 722 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:fcb83175cc4936a5425dde3356f079ae03c0802bbdf8ff82c035f8a54b333521"}, 723 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:962ed72424bf1f72334e2f1e61b68f16c0e596f024ca7ac5daf229f7c26e4208"}, 724 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2cf5bb4dd67f20f3bbc1209ef572a259027c49e5ff694fa56bed62959b41e1f9"}, 725 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e544246b859f17373bed915182ab841b80849ed9cf23f1f07b73b7c58baee5fb"}, 726 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:c0877239307b7e69d025b73774e88e86ce82f6ba6adf98f41069d5b0b78bd1bf"}, 727 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:53df009d1e1ba40f696f8995683e067e3967101d4bb4ea6f667931b7d4a01357"}, 728 | {file = "pydantic_core-2.10.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:a1254357f7e4c82e77c348dabf2d55f1d14d19d91ff025004775e70a6ef40ada"}, 729 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl", hash = "sha256:524ff0ca3baea164d6d93a32c58ac79eca9f6cf713586fdc0adb66a8cdeab96a"}, 730 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f0ac9fb8608dbc6eaf17956bf623c9119b4db7dbb511650910a82e261e6600f"}, 731 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:320f14bd4542a04ab23747ff2c8a778bde727158b606e2661349557f0770711e"}, 732 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:63974d168b6233b4ed6a0046296803cb13c56637a7b8106564ab575926572a55"}, 733 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:417243bf599ba1f1fef2bb8c543ceb918676954734e2dcb82bf162ae9d7bd514"}, 734 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:dda81e5ec82485155a19d9624cfcca9be88a405e2857354e5b089c2a982144b2"}, 735 | {file = "pydantic_core-2.10.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:14cfbb00959259e15d684505263d5a21732b31248a5dd4941f73a3be233865b9"}, 736 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl", hash = "sha256:631cb7415225954fdcc2a024119101946793e5923f6c4d73a5914d27eb3d3a05"}, 737 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:bec7dd208a4182e99c5b6c501ce0b1f49de2802448d4056091f8e630b28e9a52"}, 738 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:149b8a07712f45b332faee1a2258d8ef1fb4a36f88c0c17cb687f205c5dc6e7d"}, 739 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4d966c47f9dd73c2d32a809d2be529112d509321c5310ebf54076812e6ecd884"}, 740 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7eb037106f5c6b3b0b864ad226b0b7ab58157124161d48e4b30c4a43fef8bc4b"}, 741 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:154ea7c52e32dce13065dbb20a4a6f0cc012b4f667ac90d648d36b12007fa9f7"}, 742 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:e562617a45b5a9da5be4abe72b971d4f00bf8555eb29bb91ec2ef2be348cd132"}, 743 | {file = "pydantic_core-2.10.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:f23b55eb5464468f9e0e9a9935ce3ed2a870608d5f534025cd5536bca25b1402"}, 744 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl", hash = "sha256:e9121b4009339b0f751955baf4543a0bfd6bc3f8188f8056b1a25a2d45099934"}, 745 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:0523aeb76e03f753b58be33b26540880bac5aa54422e4462404c432230543f33"}, 746 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e0e2959ef5d5b8dc9ef21e1a305a21a36e254e6a34432d00c72a92fdc5ecda5"}, 747 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:da01bec0a26befab4898ed83b362993c844b9a607a86add78604186297eb047e"}, 748 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f2e9072d71c1f6cfc79a36d4484c82823c560e6f5599c43c1ca6b5cdbd54f881"}, 749 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:f36a3489d9e28fe4b67be9992a23029c3cec0babc3bd9afb39f49844a8c721c5"}, 750 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f64f82cc3443149292b32387086d02a6c7fb39b8781563e0ca7b8d7d9cf72bd7"}, 751 | {file = "pydantic_core-2.10.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:b4a6db486ac8e99ae696e09efc8b2b9fea67b63c8f88ba7a1a16c24a057a0776"}, 752 | {file = "pydantic_core-2.10.1.tar.gz", hash = "sha256:0f8682dbdd2f67f8e1edddcbffcc29f60a6182b4901c367fc8c1c40d30bb0a82"}, 753 | ] 754 | 755 | [package.dependencies] 756 | typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" 757 | 758 | [[package]] 759 | name = "pygments" 760 | version = "2.16.1" 761 | description = "Pygments is a syntax highlighting package written in Python." 762 | optional = false 763 | python-versions = ">=3.7" 764 | files = [ 765 | {file = "Pygments-2.16.1-py3-none-any.whl", hash = "sha256:13fc09fa63bc8d8671a6d247e1eb303c4b343eaee81d861f3404db2935653692"}, 766 | {file = "Pygments-2.16.1.tar.gz", hash = "sha256:1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29"}, 767 | ] 768 | 769 | [package.extras] 770 | plugins = ["importlib-metadata"] 771 | 772 | [[package]] 773 | name = "pytest" 774 | version = "7.4.2" 775 | description = "pytest: simple powerful testing with Python" 776 | optional = false 777 | python-versions = ">=3.7" 778 | files = [ 779 | {file = "pytest-7.4.2-py3-none-any.whl", hash = "sha256:1d881c6124e08ff0a1bb75ba3ec0bfd8b5354a01c194ddd5a0a870a48d99b002"}, 780 | {file = "pytest-7.4.2.tar.gz", hash = "sha256:a766259cfab564a2ad52cb1aae1b881a75c3eb7e34ca3779697c23ed47c47069"}, 781 | ] 782 | 783 | [package.dependencies] 784 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 785 | exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} 786 | iniconfig = "*" 787 | packaging = "*" 788 | pluggy = ">=0.12,<2.0" 789 | tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} 790 | 791 | [package.extras] 792 | testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] 793 | 794 | [[package]] 795 | name = "pyyaml" 796 | version = "6.0.1" 797 | description = "YAML parser and emitter for Python" 798 | optional = false 799 | python-versions = ">=3.6" 800 | files = [ 801 | {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, 802 | {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, 803 | {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, 804 | {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, 805 | {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, 806 | {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, 807 | {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, 808 | {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, 809 | {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, 810 | {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, 811 | {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, 812 | {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, 813 | {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, 814 | {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, 815 | {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, 816 | {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, 817 | {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, 818 | {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, 819 | {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, 820 | {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, 821 | {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, 822 | {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, 823 | {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, 824 | {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, 825 | {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, 826 | {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, 827 | {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, 828 | {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, 829 | {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, 830 | {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, 831 | {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, 832 | {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, 833 | {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, 834 | {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, 835 | {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, 836 | {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, 837 | {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, 838 | {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, 839 | {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, 840 | {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, 841 | {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, 842 | {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, 843 | {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, 844 | {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, 845 | {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, 846 | {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, 847 | {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, 848 | {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, 849 | {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, 850 | {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, 851 | {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, 852 | ] 853 | 854 | [[package]] 855 | name = "requests" 856 | version = "2.32.3" 857 | description = "Python HTTP for Humans." 858 | optional = false 859 | python-versions = ">=3.8" 860 | files = [ 861 | {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, 862 | {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, 863 | ] 864 | 865 | [package.dependencies] 866 | certifi = ">=2017.4.17" 867 | charset-normalizer = ">=2,<4" 868 | idna = ">=2.5,<4" 869 | urllib3 = ">=1.21.1,<3" 870 | 871 | [package.extras] 872 | socks = ["PySocks (>=1.5.6,!=1.5.7)"] 873 | use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] 874 | 875 | [[package]] 876 | name = "rich" 877 | version = "13.6.0" 878 | description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" 879 | optional = false 880 | python-versions = ">=3.7.0" 881 | files = [ 882 | {file = "rich-13.6.0-py3-none-any.whl", hash = "sha256:2b38e2fe9ca72c9a00170a1a2d20c63c790d0e10ef1fe35eba76e1e7b1d7d245"}, 883 | {file = "rich-13.6.0.tar.gz", hash = "sha256:5c14d22737e6d5084ef4771b62d5d4363165b403455a30a1c8ca39dc7b644bef"}, 884 | ] 885 | 886 | [package.dependencies] 887 | markdown-it-py = ">=2.2.0" 888 | pygments = ">=2.13.0,<3.0.0" 889 | 890 | [package.extras] 891 | jupyter = ["ipywidgets (>=7.5.1,<9)"] 892 | 893 | [[package]] 894 | name = "ruff" 895 | version = "0.1.2" 896 | description = "An extremely fast Python linter, written in Rust." 897 | optional = false 898 | python-versions = ">=3.7" 899 | files = [ 900 | {file = "ruff-0.1.2-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:0d3ee66b825b713611f89aa35d16de984f76f26c50982a25d52cd0910dff3923"}, 901 | {file = "ruff-0.1.2-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:f85f850a320ff532b8f93e8d1da6a36ef03698c446357c8c43b46ef90bb321eb"}, 902 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:809c6d4e45683696d19ca79e4c6bd3b2e9204fe9546923f2eb3b126ec314b0dc"}, 903 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:46005e4abb268e93cad065244e17e2ea16b6fcb55a5c473f34fbc1fd01ae34cb"}, 904 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:10cdb302f519664d5e2cf954562ac86c9d20ca05855e5b5c2f9d542228f45da4"}, 905 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:f89ebcbe57a1eab7d7b4ceb57ddf0af9ed13eae24e443a7c1dc078000bd8cc6b"}, 906 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7344eaca057d4c32373c9c3a7afb7274f56040c225b6193dd495fcf69453b436"}, 907 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dffa25f6e03c4950b6ac6f216bc0f98a4be9719cb0c5260c8e88d1bac36f1683"}, 908 | {file = "ruff-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42ddaea52cb7ba7c785e8593a7532866c193bc774fe570f0e4b1ccedd95b83c5"}, 909 | {file = "ruff-0.1.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a8533efda625bbec0bf27da2886bd641dae0c209104f6c39abc4be5b7b22de2a"}, 910 | {file = "ruff-0.1.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:b0b1b82221ba7c50e03b7a86b983157b5d3f4d8d4f16728132bdf02c6d651f77"}, 911 | {file = "ruff-0.1.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:6c1362eb9288f8cc95535294cb03bd4665c8cef86ec32745476a4e5c6817034c"}, 912 | {file = "ruff-0.1.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:ffa7ef5ded0563329a35bd5a1cfdae40f05a75c0cc2dd30f00b1320b1fb461fc"}, 913 | {file = "ruff-0.1.2-py3-none-win32.whl", hash = "sha256:6e8073f85e47072256e2e1909f1ae515cf61ff5a4d24730a63b8b4ac24b6704a"}, 914 | {file = "ruff-0.1.2-py3-none-win_amd64.whl", hash = "sha256:b836ddff662a45385948ee0878b0a04c3a260949905ad861a37b931d6ee1c210"}, 915 | {file = "ruff-0.1.2-py3-none-win_arm64.whl", hash = "sha256:b0c42d00db5639dbd5f7f9923c63648682dd197bf5de1151b595160c96172691"}, 916 | {file = "ruff-0.1.2.tar.gz", hash = "sha256:afd4785ae060ce6edcd52436d0c197628a918d6d09e3107a892a1bad6a4c6608"}, 917 | ] 918 | 919 | [[package]] 920 | name = "setuptools" 921 | version = "68.2.2" 922 | description = "Easily download, build, install, upgrade, and uninstall Python packages" 923 | optional = false 924 | python-versions = ">=3.8" 925 | files = [ 926 | {file = "setuptools-68.2.2-py3-none-any.whl", hash = "sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a"}, 927 | {file = "setuptools-68.2.2.tar.gz", hash = "sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"}, 928 | ] 929 | 930 | [package.extras] 931 | docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] 932 | testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] 933 | testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.1)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] 934 | 935 | [[package]] 936 | name = "six" 937 | version = "1.16.0" 938 | description = "Python 2 and 3 compatibility utilities" 939 | optional = false 940 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" 941 | files = [ 942 | {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, 943 | {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, 944 | ] 945 | 946 | [[package]] 947 | name = "stack-data" 948 | version = "0.6.3" 949 | description = "Extract data from python stack frames and tracebacks for informative displays" 950 | optional = false 951 | python-versions = "*" 952 | files = [ 953 | {file = "stack_data-0.6.3-py3-none-any.whl", hash = "sha256:d5558e0c25a4cb0853cddad3d77da9891a08cb85dd9f9f91b9f8cd66e511e695"}, 954 | {file = "stack_data-0.6.3.tar.gz", hash = "sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9"}, 955 | ] 956 | 957 | [package.dependencies] 958 | asttokens = ">=2.1.0" 959 | executing = ">=1.2.0" 960 | pure-eval = "*" 961 | 962 | [package.extras] 963 | tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"] 964 | 965 | [[package]] 966 | name = "tomli" 967 | version = "2.0.1" 968 | description = "A lil' TOML parser" 969 | optional = false 970 | python-versions = ">=3.7" 971 | files = [ 972 | {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, 973 | {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, 974 | ] 975 | 976 | [[package]] 977 | name = "traitlets" 978 | version = "5.11.2" 979 | description = "Traitlets Python configuration system" 980 | optional = false 981 | python-versions = ">=3.8" 982 | files = [ 983 | {file = "traitlets-5.11.2-py3-none-any.whl", hash = "sha256:98277f247f18b2c5cabaf4af369187754f4fb0e85911d473f72329db8a7f4fae"}, 984 | {file = "traitlets-5.11.2.tar.gz", hash = "sha256:7564b5bf8d38c40fa45498072bf4dc5e8346eb087bbf1e2ae2d8774f6a0f078e"}, 985 | ] 986 | 987 | [package.extras] 988 | docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"] 989 | test = ["argcomplete (>=3.0.3)", "mypy (>=1.5.1)", "pre-commit", "pytest (>=7.0,<7.5)", "pytest-mock", "pytest-mypy-testing"] 990 | 991 | [[package]] 992 | name = "typing-extensions" 993 | version = "4.8.0" 994 | description = "Backported and Experimental Type Hints for Python 3.8+" 995 | optional = false 996 | python-versions = ">=3.8" 997 | files = [ 998 | {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"}, 999 | {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"}, 1000 | ] 1001 | 1002 | [[package]] 1003 | name = "urllib3" 1004 | version = "2.2.3" 1005 | description = "HTTP library with thread-safe connection pooling, file post, and more." 1006 | optional = false 1007 | python-versions = ">=3.8" 1008 | files = [ 1009 | {file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"}, 1010 | {file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"}, 1011 | ] 1012 | 1013 | [package.extras] 1014 | brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] 1015 | h2 = ["h2 (>=4,<5)"] 1016 | socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] 1017 | zstd = ["zstandard (>=0.18.0)"] 1018 | 1019 | [[package]] 1020 | name = "virtualenv" 1021 | version = "20.24.6" 1022 | description = "Virtual Python Environment builder" 1023 | optional = false 1024 | python-versions = ">=3.7" 1025 | files = [ 1026 | {file = "virtualenv-20.24.6-py3-none-any.whl", hash = "sha256:520d056652454c5098a00c0f073611ccbea4c79089331f60bf9d7ba247bb7381"}, 1027 | {file = "virtualenv-20.24.6.tar.gz", hash = "sha256:02ece4f56fbf939dbbc33c0715159951d6bf14aaf5457b092e4548e1382455af"}, 1028 | ] 1029 | 1030 | [package.dependencies] 1031 | distlib = ">=0.3.7,<1" 1032 | filelock = ">=3.12.2,<4" 1033 | platformdirs = ">=3.9.1,<4" 1034 | 1035 | [package.extras] 1036 | docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] 1037 | test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] 1038 | 1039 | [[package]] 1040 | name = "wcwidth" 1041 | version = "0.2.8" 1042 | description = "Measures the displayed width of unicode strings in a terminal" 1043 | optional = false 1044 | python-versions = "*" 1045 | files = [ 1046 | {file = "wcwidth-0.2.8-py2.py3-none-any.whl", hash = "sha256:77f719e01648ed600dfa5402c347481c0992263b81a027344f3e1ba25493a704"}, 1047 | {file = "wcwidth-0.2.8.tar.gz", hash = "sha256:8705c569999ffbb4f6a87c6d1b80f324bd6db952f5eb0b95bc07517f4c1813d4"}, 1048 | ] 1049 | 1050 | [[package]] 1051 | name = "xmltodict" 1052 | version = "0.13.0" 1053 | description = "Makes working with XML feel like you are working with JSON" 1054 | optional = false 1055 | python-versions = ">=3.4" 1056 | files = [ 1057 | {file = "xmltodict-0.13.0-py2.py3-none-any.whl", hash = "sha256:aa89e8fd76320154a40d19a0df04a4695fb9dc5ba977cbb68ab3e4eb225e7852"}, 1058 | {file = "xmltodict-0.13.0.tar.gz", hash = "sha256:341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56"}, 1059 | ] 1060 | 1061 | [metadata] 1062 | lock-version = "2.0" 1063 | python-versions = "^3.9" 1064 | content-hash = "7b3ccfb1bb551a9f0e39bdacdb4281c95d11fb868a64e830e13c5010829c3f61" 1065 | -------------------------------------------------------------------------------- /poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | in-project = true 3 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "rss-parser" 3 | version = "2.1.0" 4 | description = "Typed pythonic RSS/Atom parser" 5 | authors = ["dhvcc <1337kwiz@gmail.com>"] 6 | license = "GPL-3.0" 7 | readme = "README.md" 8 | keywords = [ 9 | "python", 10 | "python3", 11 | "cli", 12 | "rss", 13 | "parser", 14 | "gplv3", 15 | "typed", 16 | "typed-python", 17 | ] 18 | classifiers = [ 19 | "Natural Language :: English", 20 | "Intended Audience :: Developers", 21 | "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", 22 | "Development Status :: 5 - Production/Stable", 23 | "Topic :: Software Development :: Libraries :: Python Modules", 24 | "Topic :: Text Processing :: Markup :: XML", 25 | "Typing :: Typed", 26 | "Operating System :: OS Independent", 27 | "Programming Language :: Python :: 3.9", 28 | "Programming Language :: Python :: 3.10", 29 | "Programming Language :: Python :: 3.11", 30 | "Programming Language :: Python :: 3.12", 31 | ] 32 | packages = [{ include = "rss_parser" }, { include = "rss_parser/py.typed" }] 33 | 34 | 35 | [tool.poetry.urls] 36 | "Homepage" = "https://dhvcc.github.io/rss-parser" 37 | "Source" = "https://github.com/dhvcc/rss-parser" 38 | "Bug Tracker" = "https://github.com/dhvcc/rss-parser/issues" 39 | 40 | [tool.poetry.dependencies] 41 | python = "^3.9" 42 | pydantic = ">1.9" 43 | xmltodict = "^0.13.0" 44 | 45 | [tool.poetry.group.dev.dependencies] 46 | ipython = "*" 47 | black = "^22.3.0" 48 | pre-commit = "^2.12.0" 49 | ruff = "*" 50 | rich = "*" 51 | pytest = "^7.4.0" 52 | requests = "^2.32.3" 53 | 54 | [tool.pytest.ini_options] 55 | addopts = "--color=yes" 56 | testpaths = ["tests"] 57 | log_cli = true 58 | log_level = "INFO" 59 | 60 | 61 | [tool.black] 62 | line-length = 120 63 | target-version = ["py38"] 64 | 65 | [tool.ruff] 66 | line-length = 120 67 | target-version = "py38" 68 | respect-gitignore = true 69 | select = [ 70 | "PL", # pylint 71 | "F", # pyflakes 72 | "E", # pycodestyle errors 73 | "W", # pycodestyle warnings 74 | "I", # isort 75 | "N", # pep8-naming 76 | "S", # flake8-bandit 77 | "A", # flake8-builtins 78 | "C40", # flake8-comprehensions 79 | "T10", # flake8-debugger 80 | "EXE", # flake8-executable 81 | "T20", # flake8-print 82 | "TID", # flake8-tidy-imports 83 | "TCH", # flake8-type-checking 84 | "ARG", # flake8-unused-arguments 85 | "RUF", # ruff 86 | ] 87 | 88 | [tool.ruff.per-file-ignores] 89 | "tests/**.py" = [ 90 | "S101", # Use of assert detected 91 | "ARG001", # Unused function argument 92 | "S311", # Allow use of random 93 | "S301", # Allow use of pickle 94 | ] 95 | "**/__init__.py" = ["F401"] 96 | "rss_parser/models/atom/**" = ["A003"] 97 | 98 | 99 | [build-system] 100 | requires = ["poetry-core"] 101 | build-backend = "poetry.core.masonry.api" 102 | -------------------------------------------------------------------------------- /rss_parser/__init__.py: -------------------------------------------------------------------------------- 1 | from ._parser import AtomParser, BaseParser, RSSParser 2 | 3 | __all__ = ("BaseParser", "AtomParser", "RSSParser") 4 | -------------------------------------------------------------------------------- /rss_parser/_parser.py: -------------------------------------------------------------------------------- 1 | from typing import ClassVar, Optional, Type 2 | 3 | from xmltodict import parse 4 | 5 | from rss_parser.custom_decorators import abstract_class_attributes 6 | from rss_parser.models import XMLBaseModel 7 | from rss_parser.models.atom import Atom 8 | from rss_parser.models.rss import RSS 9 | 10 | # >>> FUTURE 11 | # TODO: May be support generator based approach for big rss feeds 12 | # TODO: Add cli to parse to json 13 | # TODO: Possibly bundle as deb/rpm/exe 14 | # TODO: Older Atom versions 15 | # TODO: Older RSS versions 16 | 17 | 18 | @abstract_class_attributes("schema") 19 | class BaseParser: 20 | """Parser for rss/atom files.""" 21 | 22 | schema: ClassVar[Type[XMLBaseModel]] 23 | root_key: Optional[str] = None 24 | 25 | @staticmethod 26 | def to_xml(data: str, *args, **kwargs): 27 | return parse(str(data), *args, **kwargs) 28 | 29 | @classmethod 30 | def parse( 31 | cls, 32 | data: str, 33 | *, 34 | schema: Optional[Type[XMLBaseModel]] = None, 35 | root_key: Optional[str] = None, 36 | ) -> XMLBaseModel: 37 | """ 38 | Parse XML data into schema. 39 | :param data: string of XML data that needs to be parsed 40 | :return: "schema" object 41 | """ 42 | root = cls.to_xml(data) 43 | 44 | schema = schema if schema else cls.schema 45 | 46 | root_key = root_key if root_key else cls.root_key 47 | 48 | if root_key: 49 | root = root.get(root_key, root) 50 | 51 | return schema.parse_obj(root) 52 | 53 | 54 | class AtomParser(BaseParser): 55 | schema = Atom 56 | 57 | 58 | class RSSParser(BaseParser): 59 | root_key = "rss" 60 | schema = RSS 61 | -------------------------------------------------------------------------------- /rss_parser/custom_decorators.py: -------------------------------------------------------------------------------- 1 | def abstract_class_attributes(*names): 2 | """Class decorator to add one or more abstract attribute.""" 3 | 4 | def _func(cls, *names): 5 | """Function that extends the __init_subclass__ method of a class.""" 6 | 7 | # Add each attribute to the class with the value of NotImplemented 8 | for name in names: 9 | setattr(cls, name, NotImplemented) 10 | 11 | # Save the original __init_subclass__ implementation, then wrap 12 | # it with our new implementation. 13 | orig_init_subclass = cls.__init_subclass__ 14 | 15 | def new_init_subclass(cls, **kwargs): 16 | """ 17 | New definition of __init_subclass__ that checks that 18 | attributes are implemented. 19 | """ 20 | 21 | # The default implementation of __init_subclass__ takes no 22 | # positional arguments, but a custom implementation does. 23 | # If the user has not reimplemented __init_subclass__ then 24 | # the first signature will fail and we try the second. 25 | try: 26 | orig_init_subclass(cls, **kwargs) 27 | except TypeError: 28 | orig_init_subclass(**kwargs) 29 | 30 | # Check that each attribute is defined. 31 | for name in names: 32 | if getattr(cls, name, NotImplemented) is NotImplemented: 33 | raise NotImplementedError(f"Class attribute {name} must be set for class {cls}") 34 | 35 | # Bind this new function to the __init_subclass__. 36 | # For reasons beyond the scope here, it we must manually 37 | # declare it as a classmethod because it is not done automatically 38 | # as it would be if declared in the standard way. 39 | cls.__init_subclass__ = classmethod(new_init_subclass) 40 | 41 | return cls 42 | 43 | return lambda cls: _func(cls, *names) 44 | -------------------------------------------------------------------------------- /rss_parser/models/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Models created according to https://www.rssboard.org/rss-specification. 3 | 4 | Some types and validation may be a bit custom to account for broken standards in some RSS feeds. 5 | """ 6 | from json import loads 7 | 8 | from rss_parser.models.utils import camel_case 9 | from rss_parser.pydantic_proxy import import_v1_pydantic 10 | 11 | pydantic = import_v1_pydantic() 12 | 13 | 14 | class XMLBaseModel(pydantic.BaseModel): 15 | class Config: 16 | alias_generator = camel_case 17 | 18 | def json_plain(self, **kw): 19 | """ 20 | Run pydantic's json with custom encoder to encode Tags as only content. 21 | """ 22 | from rss_parser.models.types.tag import Tag 23 | 24 | return self.json(models_as_dict=False, encoder=Tag.flatten_tag_encoder, **kw) 25 | 26 | def dict_plain(self, **kw): 27 | return loads(self.json_plain(**kw)) 28 | -------------------------------------------------------------------------------- /rss_parser/models/atom/__init__.py: -------------------------------------------------------------------------------- 1 | from .atom import Atom 2 | 3 | __all__ = ("Atom",) 4 | -------------------------------------------------------------------------------- /rss_parser/models/atom/atom.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.atom.feed import Feed 5 | from rss_parser.models.types.tag import Tag 6 | from rss_parser.pydantic_proxy import import_v1_pydantic 7 | 8 | pydantic = import_v1_pydantic() 9 | 10 | 11 | class Atom(XMLBaseModel): 12 | """Atom 1.0""" 13 | 14 | version: Optional[Tag[str]] = pydantic.Field(alias="@version") 15 | feed: Tag[Feed] 16 | -------------------------------------------------------------------------------- /rss_parser/models/atom/entry.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.atom.person import Person 5 | from rss_parser.models.types.date import DateTimeOrStr 6 | from rss_parser.models.types.only_list import OnlyList 7 | from rss_parser.models.types.tag import Tag 8 | from rss_parser.pydantic_proxy import import_v1_pydantic 9 | 10 | pydantic = import_v1_pydantic() 11 | 12 | 13 | class RequiredAtomEntryMixin(XMLBaseModel): 14 | id: Tag[str] 15 | "Identifier for the entry." 16 | 17 | title: Tag[str] 18 | "The title of the entry." 19 | 20 | updated: Tag[DateTimeOrStr] 21 | "Indicates when the entry was updated." 22 | 23 | 24 | class RecommendedAtomEntryMixin(XMLBaseModel): 25 | authors: Optional[OnlyList[Tag[Person]]] = pydantic.Field(alias="author", default=[]) 26 | "Entry authors." 27 | 28 | links: Optional[OnlyList[Tag[str]]] = pydantic.Field(alias="link", default=[]) 29 | "The URL of the entry." 30 | 31 | content: Optional[Tag[str]] = None 32 | "The main content of the entry." 33 | 34 | summary: Optional[Tag[str]] = None 35 | "Conveys a short summary, abstract, or excerpt of the entry. Some feeds use this tag as the main content." 36 | 37 | 38 | class OptionalAtomEntryMixin(XMLBaseModel): 39 | categories: Optional[OnlyList[Tag[dict]]] = pydantic.Field(alias="category", default=[]) 40 | "Specifies a categories that the entry belongs to." 41 | 42 | contributors: Optional[OnlyList[Tag[Person]]] = pydantic.Field(alias="contributor", default=[]) 43 | "Entry contributors." 44 | 45 | rights: Optional[Tag[str]] = None 46 | "The copyright of the entry." 47 | 48 | published: Optional[Tag[DateTimeOrStr]] = None 49 | "Indicates when the entry was published." 50 | 51 | source: Optional[Tag[str]] = None 52 | "Contains metadata from the source feed if this entry is a copy." 53 | 54 | 55 | class Entry(RequiredAtomEntryMixin, RecommendedAtomEntryMixin, OptionalAtomEntryMixin, XMLBaseModel): 56 | """https://validator.w3.org/feed/docs/atom.html""" 57 | -------------------------------------------------------------------------------- /rss_parser/models/atom/feed.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.atom.entry import Entry 5 | from rss_parser.models.atom.person import Person 6 | from rss_parser.models.types.date import DateTimeOrStr 7 | from rss_parser.models.types.only_list import OnlyList 8 | from rss_parser.models.types.tag import Tag 9 | from rss_parser.pydantic_proxy import import_v1_pydantic 10 | 11 | pydantic = import_v1_pydantic() 12 | 13 | 14 | class RequiredAtomFeedMixin(XMLBaseModel): 15 | id: Tag[str] 16 | "Identifies the feed using a universally unique and permanent URI." 17 | 18 | title: Tag[str] 19 | "Contains a human readable title for the feed." 20 | 21 | updated: Tag[DateTimeOrStr] 22 | "Indicates the last time the feed was modified in a significant way." 23 | 24 | 25 | class RecommendedAtomFeedMixin(XMLBaseModel): 26 | authors: Optional[OnlyList[Tag[Person]]] = pydantic.Field(alias="author", default=[]) 27 | "Names one author of the feed. A feed may have multiple author elements." 28 | 29 | links: Optional[OnlyList[Tag[str]]] = pydantic.Field(alias="link", default=[]) 30 | "The URL to the feed. A feed may have multiple link elements." 31 | 32 | 33 | class OptionalAtomFeedMixin(XMLBaseModel): 34 | entries: Optional[OnlyList[Tag[Entry]]] = pydantic.Field(alias="entry", default=[]) 35 | "The entries in the feed. A feed may have multiple entry elements." 36 | 37 | categories: Optional[OnlyList[Tag[dict]]] = pydantic.Field(alias="category", default=[]) 38 | "Specifies a categories that the feed belongs to. The feed may have multiple categories elements." 39 | 40 | contributors: Optional[OnlyList[Tag[Person]]] = pydantic.Field(alias="contributor", default=[]) 41 | "Feed contributors." 42 | 43 | generator: Optional[Tag[str]] = None 44 | "Identifies the software used to generate the feed, for debugging and other purposes." 45 | 46 | icon: Optional[Tag[str]] = None 47 | "Identifies a small image which provides iconic visual identification for the feed. Icons should be square." 48 | 49 | logo: Optional[Tag[str]] = None 50 | "Identifies a larger image which provides visual identification for the feed. \ 51 | Images should be twice as wide as they are tall." 52 | 53 | rights: Optional[Tag[str]] = None 54 | "The copyright of the feed." 55 | 56 | subtitle: Optional[Tag[str]] = None 57 | "Contains a human readable description or subtitle for the feed." 58 | 59 | 60 | class Feed(RequiredAtomFeedMixin, RecommendedAtomFeedMixin, OptionalAtomFeedMixin, XMLBaseModel): 61 | """https://validator.w3.org/feed/docs/atom.html""" 62 | -------------------------------------------------------------------------------- /rss_parser/models/atom/person.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.types.tag import Tag 5 | from rss_parser.pydantic_proxy import import_v1_pydantic 6 | 7 | pydantic = import_v1_pydantic() 8 | 9 | 10 | class Person(XMLBaseModel): 11 | name: Tag[str] 12 | "Conveys a human-readable name for the person." 13 | 14 | uri: Optional[Tag[str]] = None 15 | "Contains a home page for the person." 16 | 17 | email: Optional[Tag[str]] = None 18 | "Contains an email address for the person." 19 | -------------------------------------------------------------------------------- /rss_parser/models/atom/source.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.types.date import DateTimeOrStr 5 | from rss_parser.models.types.tag import Tag 6 | from rss_parser.pydantic_proxy import import_v1_pydantic 7 | 8 | pydantic = import_v1_pydantic() 9 | 10 | 11 | class Source(XMLBaseModel): 12 | id: Optional[Tag[str]] = None 13 | "Source id." 14 | 15 | title: Optional[Tag[str]] = None 16 | "Title of the source." 17 | 18 | updated: Optional[Tag[DateTimeOrStr]] = None 19 | "When source was updated." 20 | -------------------------------------------------------------------------------- /rss_parser/models/rss/__init__.py: -------------------------------------------------------------------------------- 1 | from .rss import RSS 2 | 3 | __all__ = ("RSS",) 4 | -------------------------------------------------------------------------------- /rss_parser/models/rss/channel.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.rss.image import Image 5 | from rss_parser.models.rss.item import Item 6 | from rss_parser.models.rss.text_input import TextInput 7 | from rss_parser.models.types.date import DateTimeOrStr 8 | from rss_parser.models.types.only_list import OnlyList 9 | from rss_parser.models.types.tag import Tag 10 | from rss_parser.pydantic_proxy import import_v1_pydantic 11 | 12 | pydantic = import_v1_pydantic() 13 | 14 | 15 | class RequiredChannelElementsMixin(XMLBaseModel): 16 | """https://www.rssboard.org/rss-specification#requiredChannelElements.""" 17 | 18 | title: Tag[str] = None # GoUpstate.com News Headlines 19 | "The name of the channel. It's how people refer to your service. If you have an HTML website that contains " "the same information as your RSS file, the title of your channel should be the same as the title of your " "website." # noqa 20 | 21 | link: Tag[str] = None # http://www.goupstate.com/ 22 | "The URL to the HTML website corresponding to the channel." 23 | 24 | description: Tag[str] = None # The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site. 25 | "Phrase or sentence describing the channel." 26 | 27 | 28 | class OptionalChannelElementsMixin(XMLBaseModel): 29 | """https://www.rssboard.org/rss-specification#optionalChannelElements.""" 30 | 31 | items: Optional[OnlyList[Tag[Item]]] = pydantic.Field(alias="item", default=[]) 32 | 33 | language: Optional[Tag[str]] = None # en-us 34 | "The language the channel is written in. This allows aggregators to group all Italian language sites, " "for example, on a single page." # noqa 35 | 36 | copyright: Optional[Tag[str]] = None # Copyright 2002, Spartanburg Herald-Journal # noqa 37 | "Copyright notice for content in the channel." 38 | 39 | "Email address for person responsible for editorial content." 40 | 41 | web_master: Optional[Tag[str]] = None # betty@herald.com (Betty Guernsey) 42 | "Email address for person responsible for technical issues relating to channel." 43 | 44 | pub_date: Optional[Tag[DateTimeOrStr]] = None # Sat, 07 Sep 2002 00:00:01 GMT 45 | "The publication date for the content in the channel. For example, the New York Times publishes on a daily " "basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All " "date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year " "may be expressed with two characters or four characters (four preferred)." # noqa 46 | 47 | last_build_date: Optional[Tag[DateTimeOrStr]] = None # Sat, 07 Sep 2002 09:42:31 GMT 48 | "The last time the content of the channel changed." 49 | 50 | categories: Optional[OnlyList[Tag[str]]] = pydantic.Field(alias="category", default=[]) 51 | "Specify one or more categories that the channel belongs to. Follows the same rules as the -level " "category element." # noqa 52 | 53 | generator: Optional[Tag[str]] = None # MightyInHouse Content System v2.3 54 | "A string indicating the program used to generate the channel." 55 | 56 | docs: Optional[Tag[str]] = None # https://www.rssboard.org/rss-specification 57 | "A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this " "page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what " "it is." # noqa 58 | 59 | cloud: Optional[Tag[str]] = None # 60 | "Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight " "publish-subscribe protocol for RSS feeds." # noqa 61 | 62 | ttl: Optional[Tag[str]] = None # 60 63 | "ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before " "refreshing from the source." # noqa 64 | 65 | image: Optional[Tag[Image]] = None 66 | "Specifies a GIF, JPEG or PNG image that can be displayed with the channel." 67 | 68 | rating: Optional[Tag[TextInput]] = None 69 | "The PICS rating for the channel." 70 | 71 | text_input: Optional[Tag[str]] = None 72 | "Specifies a text input box that can be displayed with the channel." 73 | 74 | skip_hours: Optional[Tag[str]] = None 75 | "A hint for aggregators telling them which hours they can skip. This element contains up to 24 " "sub-elements whose value is a number between 0 and 23, representing a time in GMT, when aggregators, if " "they support the feature, may not read the channel on hours listed in the element. The hour " "beginning at midnight is hour zero." # noqa 76 | 77 | skip_days: Optional[Tag[str]] = None 78 | "A hint for aggregators telling them which days they can skip. This element contains up to seven " "sub-elements whose value is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday. Aggregators " "may not read the channel during days listed in the element." # noqa 79 | 80 | 81 | class Channel(RequiredChannelElementsMixin, OptionalChannelElementsMixin, XMLBaseModel): 82 | pass 83 | -------------------------------------------------------------------------------- /rss_parser/models/rss/image.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.types.tag import Tag 5 | 6 | 7 | class Image(XMLBaseModel): 8 | """https://www.rssboard.org/rss-specification#ltimagegtSubelementOfLtchannelgt.""" 9 | 10 | url: Tag[str] = None 11 | "The URL of a GIF, JPEG or PNG image that represents the channel." 12 | 13 | title: Tag[str] = None 14 | "Describes the image, it's used in the ALT attribute of the HTML tag when the channel is rendered in HTML." 15 | 16 | link: Tag[str] = None 17 | "The URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the " "image and <link> should have the same value as the channel's <title> and <link>." # noqa 18 | 19 | width: Optional[Tag[int]] = None 20 | "Number, indicating the width of the image in pixels." 21 | 22 | height: Optional[Tag[int]] = None 23 | "Number, indicating the height of the image in pixels." 24 | 25 | description: Optional[Tag[str]] = None 26 | "Contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering." 27 | -------------------------------------------------------------------------------- /rss_parser/models/rss/item.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.types.only_list import OnlyList 5 | from rss_parser.models.types.tag import Tag 6 | from rss_parser.pydantic_proxy import import_v1_pydantic 7 | 8 | pydantic = import_v1_pydantic() 9 | 10 | 11 | class RequiredItemElementsMixin(XMLBaseModel): 12 | title: Tag[str] = None # Venice Film Festival Tries to Quit Sinking 13 | "The title of the item." 14 | 15 | links: OnlyList[Tag[str]] = pydantic.Field(alias="link") # http://nytimes.com/2004/12/07FEST.html 16 | "The URL of the item." 17 | 18 | description: Tag[ 19 | str 20 | ] = None # <description>Some of the most heated chatter at the Venice Film Festival this week was 21 | # about the way that the arrival of the stars at the Palazzo del Cinema was being staged.</description> 22 | "The item synopsis." 23 | 24 | 25 | class OptionalItemElementsMixin(XMLBaseModel): 26 | author: Optional[Tag[str]] = None 27 | "Email address of the author of the item." 28 | 29 | categories: Optional[OnlyList[Tag[str]]] = pydantic.Field(alias="category", default=[]) 30 | "Includes the item in one or more categories." 31 | 32 | comments: Optional[Tag[str]] = None 33 | "URL of a page for comments relating to the item." 34 | 35 | enclosures: Optional[OnlyList[Tag[str]]] = pydantic.Field(alias="enclosure", default=[]) 36 | # enclosure: Optional[OnlyList[Tag[str]]] = None 37 | "Describes a media object that is attached to the item.\n" "Can be a list -> https://validator.w3.org/feed/docs/warning/DuplicateEnclosure.html" 38 | 39 | guid: Optional[Tag[str]] = None 40 | "A string that uniquely identifies the item." 41 | 42 | pub_date: Optional[Tag[str]] = None 43 | "Indicates when the item was published." 44 | 45 | source: Optional[Tag[str]] = None 46 | "The RSS channel that the item came from." 47 | 48 | 49 | class Item(RequiredItemElementsMixin, OptionalItemElementsMixin, XMLBaseModel): 50 | """https://www.rssboard.org/rss-specification#hrelementsOfLtitemgt.""" 51 | -------------------------------------------------------------------------------- /rss_parser/models/rss/rss.py: -------------------------------------------------------------------------------- 1 | from typing import Optional 2 | 3 | from rss_parser.models import XMLBaseModel 4 | from rss_parser.models.rss.channel import Channel 5 | from rss_parser.models.types.tag import Tag 6 | from rss_parser.pydantic_proxy import import_v1_pydantic 7 | 8 | pydantic = import_v1_pydantic() 9 | 10 | 11 | class RSS(XMLBaseModel): 12 | """RSS 2.0.""" 13 | 14 | version: Optional[Tag[str]] = pydantic.Field(alias="@version") 15 | channel: Tag[Channel] 16 | -------------------------------------------------------------------------------- /rss_parser/models/rss/text_input.py: -------------------------------------------------------------------------------- 1 | from rss_parser.models import XMLBaseModel 2 | from rss_parser.models.types.tag import Tag 3 | 4 | 5 | class TextInput(XMLBaseModel): 6 | """ 7 | The purpose of the <textInput> element is something of a mystery. You can use it to specify a search engine box. 8 | Or to allow a reader to provide feedback. Most aggregators ignore it. 9 | 10 | https://www.rssboard.org/rss-specification#lttextinputgtSubelementOfLtchannelgt 11 | """ 12 | 13 | title: Tag[str] = None 14 | "The label of the Submit button in the text input area." 15 | 16 | description: Tag[str] = None 17 | "Explains the text input area." 18 | 19 | name: Tag[str] = None 20 | "The name of the text object in the text input area." 21 | 22 | link: Tag[str] = None 23 | "The URL of the CGI script that processes text input requests." 24 | -------------------------------------------------------------------------------- /rss_parser/models/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/rss_parser/models/types/__init__.py -------------------------------------------------------------------------------- /rss_parser/models/types/date.py: -------------------------------------------------------------------------------- 1 | from datetime import datetime 2 | from email.utils import parsedate_to_datetime 3 | 4 | from rss_parser.pydantic_proxy import import_v1_pydantic 5 | 6 | pydantic_validators = import_v1_pydantic(".validators") 7 | 8 | 9 | class DateTimeOrStr(datetime): 10 | @classmethod 11 | def __get_validators__(cls): 12 | yield validate_dt_or_str 13 | 14 | @classmethod 15 | def __get_pydantic_json_schema__(cls, field_schema): 16 | field_schema.update( 17 | examples=[datetime(1970, 1, 1, 0, 0, 0)], 18 | ) 19 | 20 | @classmethod 21 | def validate(cls, v): 22 | return validate_dt_or_str(v) 23 | 24 | def __repr__(self): 25 | return f"DateTimeOrStp({super().__repr__()})" 26 | 27 | 28 | def validate_dt_or_str(value: str) -> datetime: 29 | # Try to parse standard (RFC 822) 30 | try: 31 | return parsedate_to_datetime(value) 32 | except (ValueError, TypeError): # https://github.com/python/cpython/issues/74866 33 | pass 34 | # Try ISO or timestamp 35 | try: 36 | return pydantic_validators.parse_datetime(value) 37 | except ValueError: 38 | pass 39 | 40 | return value 41 | -------------------------------------------------------------------------------- /rss_parser/models/types/only_list.py: -------------------------------------------------------------------------------- 1 | from typing import Union 2 | 3 | from rss_parser.pydantic_proxy import import_v1_pydantic 4 | 5 | pydantic_validators = import_v1_pydantic(".validators") 6 | 7 | 8 | class OnlyList(list): 9 | @classmethod 10 | def __get_validators__(cls): 11 | yield cls.validate 12 | yield pydantic_validators.list_validator 13 | 14 | @classmethod 15 | def validate(cls, v: Union[dict, list]): 16 | if isinstance(v, list): 17 | return v 18 | return [v] 19 | 20 | def __repr__(self): 21 | return f"OnlyList({super().__repr__()})" 22 | -------------------------------------------------------------------------------- /rss_parser/models/types/tag.py: -------------------------------------------------------------------------------- 1 | from copy import deepcopy 2 | from json import loads 3 | from typing import Generic, Optional, TypeVar, Union 4 | 5 | from rss_parser.models import XMLBaseModel 6 | from rss_parser.models.utils import snake_case 7 | from rss_parser.pydantic_proxy import import_v1_pydantic 8 | 9 | pydantic = import_v1_pydantic() 10 | pydantic_generics = import_v1_pydantic(".generics") 11 | pydantic_json = import_v1_pydantic(".json") 12 | 13 | T = TypeVar("T") 14 | 15 | 16 | class Tag(pydantic_generics.GenericModel, Generic[T]): 17 | """ 18 | >>> from rss_parser.models import XMLBaseModel 19 | >>> from rss_parser.models.types.tag import Tag 20 | >>> class Model(XMLBaseModel): 21 | ... width: Tag[int] 22 | ... category: Tag[str] 23 | >>> m = Model( 24 | ... width=48, 25 | ... category={"@someAttribute": "https://example.com", "#text": "valid string"}, 26 | ... ) 27 | >>> # Content value is an integer, as per the generic type 28 | >>> m.width.content 29 | 48 30 | >>> type(m.width), type(m.width.content) 31 | (<class 'rss_parser.models.rss.image.Tag[int]'>, <class 'int'>) 32 | >>> # The attributes are empty by default 33 | >>> m.width.attributes 34 | {} 35 | >>> # But are populated when provided. 36 | >>> # Note that the @ symbol is trimmed from the beggining and name is convert to snake_case 37 | >>> m.category.attributes 38 | {'some_attribute': 'https://example.com'} 39 | >>> # Generic argument types are handled by pydantic - let's try to provide a string for a Tag[int] number 40 | >>> m = Model(width="not_a_number", category="valid_string") # doctest: +IGNORE_EXCEPTION_DETAIL 41 | Traceback (most recent call last): 42 | ... 43 | ValidationError: 1 validation error for Model 44 | width -> content 45 | value is not a valid integer (type=type_error.integer) 46 | """ 47 | 48 | # Optional in case of self-closing tags 49 | content: Optional[T] 50 | attributes: dict 51 | 52 | def __getattr__(self, item): 53 | """Forward default getattr for content for simplicity.""" 54 | return getattr(self.content, item) 55 | 56 | def __getitem__(self, key): 57 | return self.content[key] 58 | 59 | def __setitem__(self, key, value): 60 | self.content[key] = value 61 | 62 | @classmethod 63 | def __get_validators__(cls): 64 | yield cls.pre_convert 65 | yield cls.validate 66 | 67 | @classmethod 68 | def pre_convert(cls, v: Union[T, dict], **kwargs): # noqa 69 | """Used to split tag's text with other xml attributes.""" 70 | if isinstance(v, dict): 71 | data = deepcopy(v) 72 | attributes = {snake_case(k.lstrip("@")): v for k, v in data.items() if k.startswith("@")} 73 | content = data.pop("#text", data) if not len(attributes) == len(data) else None 74 | return {"content": content, "attributes": attributes} 75 | return {"content": v, "attributes": {}} 76 | 77 | @classmethod 78 | def flatten_tag_encoder(cls, v): 79 | """Encoder that translates Tag objects (dict) to plain .content values (T).""" 80 | bases = v.__class__.__bases__ 81 | if XMLBaseModel in bases: 82 | # Can't pass encoder to .dict :/ 83 | return loads(v.json_plain()) 84 | if cls in bases: 85 | return v.content 86 | 87 | return pydantic_json.pydantic_encoder(v) 88 | -------------------------------------------------------------------------------- /rss_parser/models/utils.py: -------------------------------------------------------------------------------- 1 | from re import sub 2 | 3 | 4 | def camel_case(s: str): 5 | s = sub(r"([_\-])+", " ", s).title().replace(" ", "") 6 | return "".join([s[0].lower(), s[1:]]) 7 | 8 | 9 | def snake_case(s: str): 10 | return sub(r"(?<!^)(?=[A-Z])", "_", s).lower() 11 | -------------------------------------------------------------------------------- /rss_parser/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/rss_parser/py.typed -------------------------------------------------------------------------------- /rss_parser/pydantic_proxy.py: -------------------------------------------------------------------------------- 1 | from importlib import import_module 2 | from importlib.metadata import version 3 | 4 | _pydantic_version = version("pydantic") 5 | 6 | 7 | def import_v1_pydantic(relative_submodule_path: str = ""): 8 | if _pydantic_version[0] == "2": 9 | return import_module("pydantic.v1" + relative_submodule_path) 10 | else: 11 | return import_module("pydantic" + relative_submodule_path) 12 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/__init__.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- 1 | import pickle 2 | from pathlib import Path 3 | 4 | import pytest 5 | 6 | # Get relative path to samples dir no matter the working dir 7 | sample_dir = Path(__file__).parent.resolve() / "samples" 8 | 9 | 10 | @pytest.fixture 11 | def sample_and_result(request): 12 | sample_name = request.param[0] 13 | 14 | with open(sample_dir / sample_name / "data.xml", encoding="utf-8") as sample_file: 15 | sample = sample_file.read() 16 | 17 | with open(sample_dir / sample_name / "result.pkl", "rb") as result_file: 18 | result = pickle.load(result_file) 19 | 20 | return sample, result 21 | -------------------------------------------------------------------------------- /tests/samples/apology_line/data.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="UTF-8"?> 2 | <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:art19="https://art19.com/xmlns/rss-extensions/1.0" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0/" version="2.0"> 3 | <channel> 4 | <title>The Apology Line 5 | 6 | If you could call a number and say you’re sorry, and no one would know…what would you apologize for? For fifteen years, you could call a number in Manhattan and do just that. This is the story of the line, and the man at the other end who became consumed by his own creation. He was known as “Mr. Apology.” As thousands of callers flooded the line, confessing to everything from shoplifting to infidelity, drug dealing to murder, Mr. Apology realized he couldn’t just listen. He had to do something, even if it meant risking everything. From Wondery the makers of Dr. Death and The Shrink Next Door, comes a story about empathy, deception and obsession. Marissa Bridge, who knew Mr. Apology better than anyone, hosts this six episode series.

All episodes are available now. You can binge the series ad-free on Wondery+ or on Amazon Music with a Prime membership or Amazon Music Unlimited subscription.

]]> 7 |
8 | iwonder@wondery.com (Wondery) 9 | © 2021 Wondery, Inc. All rights reserved 10 | ART19 11 | 12 | https://wondery.com/shows/the-apology-line/?utm_source=rss 13 | 14 | Wondery 15 | iwonder@wondery.com 16 | 17 | Wondery 18 | 19 | If you could call a number and say you’re sorry, and no one would know…what would you apologize for? For fifteen years, you could call a number in Manhattan and do just that. This is the story of the line, and the man at the other end who became consumed by his own creation. He was known as “Mr. Apology.” As thousands of callers flooded the line, confessing to everything from shoplifting to infidelity, drug dealing to murder, Mr. Apology realized he couldn’t just listen. He had to do something, even if it meant risking everything. From Wondery the makers of Dr. Death and The Shrink Next Door, comes a story about empathy, deception and obsession. Marissa Bridge, who knew Mr. Apology better than anyone, hosts this six episode series.

All episodes are available now. You can binge the series ad-free on Wondery+ or on Amazon Music with a Prime membership or Amazon Music Unlimited subscription.

]]> 20 |
21 | en 22 | yes 23 | 24 | Exhibit C,Binge-worthy true crime,New York City,Binge Worthy Documentary ,Apology Line,Apology,Murder,This American Life,society,true crime,serial killer 25 | serial 26 | 27 | 28 | https://content.production.cdn.art19.com/images/be/e1/82/c2/bee182c2-14b7-491b-b877-272ab6754025/bd4ab6d08d7b723678a682b6e399d26523245b3ba83f61617b9b28396aba1092b101cd86707576ec021b77e143b447463342b352f8825265b15310c989b6cb93.jpeg 29 | https://wondery.com/shows/the-apology-line/?utm_source=rss 30 | The Apology Line 31 | 32 | 33 | Wondery Presents - Flipping The Bird: Elon vs Twitter 34 | 35 | When Elon Musk posted a video of himself arriving at Twitter HQ carrying a white sink along with the message “let that sink in!” It marked the end of a dramatic takeover. Musk had gone from Twitter critic to “Chief Twit” in the space of just a few months but his arrival didn’t put an end to questions about his motives. Musk had earned a reputation as a business maverick. From PayPal to Tesla to SpaceX, his name was synonymous with big, earth-shattering ideas. So, what did he want with a social media platform? And was this all really in the name of free speech...or was this all in the name of Elon Musk? 


From Wondery, the makers of WeCrashed and In God We Lust, comes the wild story of how the richest man alive took charge of the world’s “digital public square.”


Listen to Flipping The Bird: Wondery.fm/FTB_TAL

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

]]> 36 |
37 | Wondery Presents - Flipping The Bird: Elon vs Twitter 38 | trailer 39 | When Elon Musk posted a video of himself arriving at Twitter HQ carrying a white sink along with the message “let that sink in!” It marked the end of a dramatic takeover. Musk had gone from Twitter critic to “Chief Twit” in the space of just a few months but his arrival didn’t put an end to questions about his motives. Musk had earned a reputation as a business maverick. From PayPal to Tesla to SpaceX, his name was synonymous with big, earth-shattering ideas. So, what did he want with a social media platform? And was this all really in the name of free speech...or was this all in the name of Elon Musk?  40 | 41 | 42 | 43 | 44 | From Wondery, the makers of WeCrashed and In God We Lust, comes the wild story of how the richest man alive took charge of the world’s “digital public square.” 45 | 46 | 47 | 48 | 49 | Listen to Flipping The Bird: Wondery.fm/FTB_TAL 50 | 51 | See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info. 52 | 53 | When Elon Musk posted a video of himself arriving at Twitter HQ carrying a white sink along with the message “let that sink in!” It marked the end of a dramatic takeover. Musk had gone from Twitter critic to “Chief Twit” in the space of just a few months but his arrival didn’t put an end to questions about his motives. Musk had earned a reputation as a business maverick. From PayPal to Tesla to SpaceX, his name was synonymous with big, earth-shattering ideas. So, what did he want with a social media platform? And was this all really in the name of free speech...or was this all in the name of Elon Musk? 


From Wondery, the makers of WeCrashed and In God We Lust, comes the wild story of how the richest man alive took charge of the world’s “digital public square.”


Listen to Flipping The Bird: Wondery.fm/FTB_TAL

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

]]> 54 |
55 | gid://art19-episode-locator/V0/tdroPC934g1_yKpnqnfmA67RAho9P0W6PUiIY-tBw3U 56 | Mon, 01 May 2023 08:00:00 -0000 57 | yes 58 | 59 | Serial killer,TRUE CRIME,Society,This American Life,MURDER,Apology,Apology Line,Binge Worthy Documentary,New York City,Binge-worthy true crime,exhibit c 60 | 00:05:01 61 | 62 | https://wondery.com/shows/the-apology-line/?utm_source=rss 63 |
64 | 65 | Introducing: The Apology Line 66 | 67 | If you could call a number and say you’re sorry, and no one would know…what would you apologize for? For fifteen years, you could call a number in Manhattan and do just that. This is the story of the line, and the man at the other end who became consumed by his own creation. He was known as “Mr. Apology.” As thousands of callers flooded the line, confessing to everything from shoplifting to infidelity, drug dealing to murder, Mr. Apology realized he couldn’t just listen. He had to do something, even if it meant risking everything. From Wondery the makers of Dr Death and The Shrink Next Door, comes a story about empathy, deception and obsession. Marissa Bridge, who knew Mr. Apology better than anyone, hosts this six episode series.

All episodes are available now. You can binge the series ad-free on Wondery+ or on Amazon Music with a Prime membership or Amazon Music Unlimited subscription.

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

]]> 68 |
69 | Introducing: The Apology Line 70 | trailer 71 | If you could call a number and say you’re sorry, and no one would know…what would you apologize for? For fifteen years, you could call a number in Manhattan and do just that. This is the story of the line, and the man at the other end who became consumed by his own creation. He was known as “Mr. Apology.” As thousands of callers flooded the line, confessing to everything from shoplifting to infidelity, drug dealing to murder, Mr. Apology realized he couldn’t just listen. He had to do something, even if it meant risking everything. From Wondery the makers of Dr Death and The Shrink Next Door, comes a story about empathy, deception and obsession. Marissa Bridge, who knew Mr. Apology better than anyone, hosts this six episode series. 72 | 73 | All episodes are available now. You can binge the series ad-free on Wondery+ or on Amazon Music with a Prime membership or Amazon Music Unlimited subscription. 74 | 75 | See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info. 76 | 77 | If you could call a number and say you’re sorry, and no one would know…what would you apologize for? For fifteen years, you could call a number in Manhattan and do just that. This is the story of the line, and the man at the other end who became consumed by his own creation. He was known as “Mr. Apology.” As thousands of callers flooded the line, confessing to everything from shoplifting to infidelity, drug dealing to murder, Mr. Apology realized he couldn’t just listen. He had to do something, even if it meant risking everything. From Wondery the makers of Dr Death and The Shrink Next Door, comes a story about empathy, deception and obsession. Marissa Bridge, who knew Mr. Apology better than anyone, hosts this six episode series.

All episodes are available now. You can binge the series ad-free on Wondery+ or on Amazon Music with a Prime membership or Amazon Music Unlimited subscription.

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

]]> 78 |
79 | gid://art19-episode-locator/V0/2E7Nce-ZiX0Rmo017w7js5BvvKiOIMjWELujxOvJync 80 | Tue, 05 Jan 2021 03:26:59 -0000 81 | yes 82 | 83 | Exhibit C,New York City,Murder,This American Life,society,serial killer,true crime,Apology Line,Binge Worthy Documentary ,Binge-worthy true crime,Apology 84 | 00:02:24 85 | 86 | https://wondery.com/shows/the-apology-line/?utm_source=rss 87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /tests/samples/apology_line/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/apology_line/result.pkl -------------------------------------------------------------------------------- /tests/samples/atom/data.xml: -------------------------------------------------------------------------------- 1 | 2 | Title 3 | 4 | A <em>lot</em> of effort 5 | went into making this effortless 6 | 7 | 2005-07-31T12:29:29Z 8 | tag:example.org,2003:3 9 | 10 | 11 | Copyright (c) 2003, John Doe 12 | 13 | Example Toolkit 14 | 15 | 16 | Atom draft-07 snapshot 17 | 18 | 20 | tag:example.org,2003:3.2397 21 | 2005-07-31T12:29:29Z 22 | 2003-12-13T08:29:29-04:00 23 | 24 | John Doe 25 | http://example.org/ 26 | mail@example.com 27 | 28 | 29 | John Doe 30 | 31 | 32 | [Update: The Atom draft is finished.] 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/samples/atom/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/atom/result.pkl -------------------------------------------------------------------------------- /tests/samples/generic_atom_feed/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | FYI Center for Software Developers 4 | FYI (For Your Information) Center for Software Developers with 5 | large collection of FAQs, tutorials and tips codes for application and 6 | wWeb developers on Java, .NET, C, PHP, JavaScript, XML, HTML, CSS, RSS, 7 | MySQL and Oracle - dev.fyicenter.com. 8 | 9 | http://dev.fyicenter.com/atom_xml.php 10 | 2017-09-22T03:58:52+02:00 11 | 12 | FYIcenter.com 13 | 14 | Copyright (c) 2017 FYIcenter.com 15 | 16 | 17 | 18 | 19 | Use Developer Portal Internally 20 | 23 | 24 | http://dev.fyicenter.com/1000702_Use_Developer_Portal_Internally.html 25 | 26 | 2017-09-20T13:29:08+02:00 27 | <img align='left' width='64' height='64' 28 | src='http://dev.fyicenter.com/Azure-API/_icon_Azure-API.png' />How to 29 | use the Developer Portal internally by you as the publisher? Normally, 30 | the Developer Portal of an Azure API Management Service is used by 31 | client developers. But as a publisher, you can also use the Developer 32 | Portal to test API operations internally. You can follow this tutorial 33 | to access the ... - Rank: 120; Updated: 2017-09-20 13:29:06 -> <a 34 | href='http://dev.fyicenter.com/1000702_Use_Developer_Portal_Internally.ht 35 | ml'>Source</a> 36 | 37 | FYIcenter.com 38 | 39 | 40 | 41 | 42 | Using Azure API Management Developer Portal 43 | 46 | 47 | http://dev.fyicenter.com/1000701_Using_Azure_API_Management_Developer 48 | _Portal.html 49 | 2017-09-20T13:29:07+02:00 50 | <img align='left' width='64' height='64' 51 | src='http://dev.fyicenter.com/Azure-API/_icon_Azure-API.png' />Where to 52 | find tutorials on Using Azure API Management Developer Portal? Here is 53 | a list of tutorials to answer many frequently asked questions compiled 54 | by FYIcenter.com team on Using Azure API Management Developer Portal: 55 | Use Developer Portal Internally What Can I See on Developer Portal What 56 | I You T... - Rank: 120; Updated: 2017-09-20 13:29:06 -> <a 57 | href='http://dev.fyicenter.com/1000701_Using_Azure_API_Management_Develop 58 | er_Portal.html'>Source</a> 59 | 60 | FYIcenter.com 61 | 62 | 63 | 64 | 65 | Add API to API Products 66 | 68 | http://dev.fyicenter.com/1000700_Add_API_to_API_Products.html 69 | 2017-09-20T13:29:06+02:00 70 | <img align='left' width='64' height='64' 71 | src='http://dev.fyicenter.com/Azure-API/_icon_Azure-API.png' />How to 72 | add an API to an API product for internal testing on the Publisher 73 | Portal of an Azure API Management Service? You can follow this tutorial 74 | to add an API to an API product on the Publisher Portal of an Azure API 75 | Management Service. 1. Click API from the left menu on the Publisher 76 | Portal. You s... - Rank: 119; Updated: 2017-09-20 13:29:06 -> <a 77 | href='http://dev.fyicenter.com/1000700_Add_API_to_API_Products.html'>Sour 78 | ce</a> 79 | 80 | FYIcenter.com 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /tests/samples/generic_atom_feed/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/generic_atom_feed/result.pkl -------------------------------------------------------------------------------- /tests/samples/github-49/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/github-49/result.pkl -------------------------------------------------------------------------------- /tests/samples/rss_2/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FeedForAll Sample Feed 5 | RSS is a fascinating technology. The uses for RSS are expanding daily. Take a closer look at how various industries are using the benefits of RSS in their businesses. 6 | http://www.feedforall.com/industry-solutions.htm 7 | Computers/Software/Internet/Site Management/Content Management 8 | Copyright 2004 NotePage, Inc. 9 | http://blogs.law.harvard.edu/tech/rss 10 | en-us 11 | Tue, 19 Oct 2004 13:39:14 -0400 12 | marketing@feedforall.com 13 | Tue, 19 Oct 2004 13:38:55 -0400 14 | webmaster@feedforall.com 15 | FeedForAll Beta1 (0.0.1.8) 16 | 17 | http://www.feedforall.com/ffalogo48x48.gif 18 | FeedForAll Sample Feed 19 | http://www.feedforall.com/industry-solutions.htm 20 | FeedForAll Sample Feed 21 | 48 22 | 48 23 | 24 | 25 | RSS Solutions for Restaurants 26 | <b>FeedForAll </b>helps Restaurant's communicate with customers. Let your customers know the latest specials or events.<br> 27 | <br> 28 | RSS feed uses include:<br> 29 | <i><font color="#FF0000">Daily Specials <br> 30 | Entertainment <br> 31 | Calendar of Events </i></font> 32 | http://www.feedforall.com/restaurant.htm 33 | Computers/Software/Internet/Site Management/Content Management 34 | http://www.feedforall.com/forum 35 | Tue, 19 Oct 2004 11:09:11 -0400 36 | 37 | 38 | RSS Solutions for Schools and Colleges 39 | FeedForAll helps Educational Institutions communicate with students about school wide activities, events, and schedules.<br> 40 | <br> 41 | RSS feed uses include:<br> 42 | <i><font color="#0000FF">Homework Assignments <br> 43 | School Cancellations <br> 44 | Calendar of Events <br> 45 | Sports Scores <br> 46 | Clubs/Organization Meetings <br> 47 | Lunches Menus </i></font> 48 | http://www.feedforall.com/schools.htm 49 | Computers/Software/Internet/Site Management/Content Management 50 | http://www.feedforall.com/forum 51 | Tue, 19 Oct 2004 11:09:09 -0400 52 | 53 | 54 | RSS Solutions for Computer Service Companies 55 | FeedForAll helps Computer Service Companies communicate with clients about cyber security and related issues. <br> 56 | <br> 57 | Uses include:<br> 58 | <i><font color="#0000FF">Cyber Security Alerts <br> 59 | Specials<br> 60 | Job Postings </i></font> 61 | http://www.feedforall.com/computer-service.htm 62 | Computers/Software/Internet/Site Management/Content Management 63 | http://www.feedforall.com/forum 64 | Tue, 19 Oct 2004 11:09:07 -0400 65 | 66 | 67 | RSS Solutions for Governments 68 | FeedForAll helps Governments communicate with the general public about positions on various issues, and keep the community aware of changes in important legislative issues. <b><i><br> 69 | </b></i><br> 70 | RSS uses Include:<br> 71 | <i><font color="#00FF00">Legislative Calendar<br> 72 | Votes<br> 73 | Bulletins</i></font> 74 | http://www.feedforall.com/government.htm 75 | Computers/Software/Internet/Site Management/Content Management 76 | http://www.feedforall.com/forum 77 | Tue, 19 Oct 2004 11:09:05 -0400 78 | 79 | 80 | RSS Solutions for Politicians 81 | FeedForAll helps Politicians communicate with the general public about positions on various issues, and keep the community notified of their schedule. <br> 82 | <br> 83 | Uses Include:<br> 84 | <i><font color="#FF0000">Blogs<br> 85 | Speaking Engagements <br> 86 | Statements<br> 87 | </i></font> 88 | http://www.feedforall.com/politics.htm 89 | Computers/Software/Internet/Site Management/Content Management 90 | http://www.feedforall.com/forum 91 | Tue, 19 Oct 2004 11:09:03 -0400 92 | 93 | 94 | RSS Solutions for Meteorologists 95 | FeedForAll helps Meteorologists communicate with the general public about storm warnings and weather alerts, in specific regions. Using RSS meteorologists are able to quickly disseminate urgent and life threatening weather warnings. <br> 96 | <br> 97 | Uses Include:<br> 98 | <i><font color="#0000FF">Weather Alerts<br> 99 | Plotting Storms<br> 100 | School Cancellations </i></font> 101 | http://www.feedforall.com/weather.htm 102 | Computers/Software/Internet/Site Management/Content Management 103 | http://www.feedforall.com/forum 104 | Tue, 19 Oct 2004 11:09:01 -0400 105 | 106 | 107 | RSS Solutions for Realtors & Real Estate Firms 108 | FeedForAll helps Realtors and Real Estate companies communicate with clients informing them of newly available properties, and open house announcements. RSS helps to reach a targeted audience and spread the word in an inexpensive, professional manner. <font color="#0000FF"><br> 109 | </font><br> 110 | Feeds can be used for:<br> 111 | <i><font color="#FF0000">Open House Dates<br> 112 | New Properties For Sale<br> 113 | Mortgage Rates</i></font> 114 | http://www.feedforall.com/real-estate.htm 115 | Computers/Software/Internet/Site Management/Content Management 116 | http://www.feedforall.com/forum 117 | Tue, 19 Oct 2004 11:08:59 -0400 118 | 119 | 120 | RSS Solutions for Banks / Mortgage Companies 121 | FeedForAll helps <b>Banks, Credit Unions and Mortgage companies</b> communicate with the general public about rate changes in a prompt and professional manner. <br> 122 | <br> 123 | Uses include:<br> 124 | <i><font color="#0000FF">Mortgage Rates<br> 125 | Foreign Exchange Rates <br> 126 | Bank Rates<br> 127 | Specials</i></font> 128 | http://www.feedforall.com/banks.htm 129 | Computers/Software/Internet/Site Management/Content Management 130 | http://www.feedforall.com/forum 131 | Tue, 19 Oct 2004 11:08:57 -0400 132 | 133 | 134 | RSS Solutions for Law Enforcement 135 | <b>FeedForAll</b> helps Law Enforcement Professionals communicate with the general public and other agencies in a prompt and efficient manner. Using RSS police are able to quickly disseminate urgent and life threatening information. <br> 136 | <br> 137 | Uses include:<br> 138 | <i><font color="#0000FF">Amber Alerts<br> 139 | Sex Offender Community Notification <br> 140 | Weather Alerts <br> 141 | Scheduling <br> 142 | Security Alerts <br> 143 | Police Report <br> 144 | Meetings</i></font> 145 | http://www.feedforall.com/law-enforcement.htm 146 | Computers/Software/Internet/Site Management/Content Management 147 | http://www.feedforall.com/forum 148 | Tue, 19 Oct 2004 11:08:56 -0400 149 | 150 | 151 | 152 | -------------------------------------------------------------------------------- /tests/samples/rss_2/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/rss_2/result.pkl -------------------------------------------------------------------------------- /tests/samples/rss_2_no_category_attr/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FeedForAll Sample Feed 5 | RSS is a fascinating technology. The uses for RSS are expanding daily. Take a closer look at how various industries are using the benefits of RSS in their businesses. 6 | http://www.feedforall.com/industry-solutions.htm 7 | Computers/Software/Internet/Site Management/Content Management 8 | Copyright 2004 NotePage, Inc. 9 | http://blogs.law.harvard.edu/tech/rss 10 | en-us 11 | Tue, 19 Oct 2004 13:39:14 -0400 12 | marketing@feedforall.com 13 | Tue, 19 Oct 2004 13:38:55 -0400 14 | webmaster@feedforall.com 15 | FeedForAll Beta1 (0.0.1.8) 16 | 17 | http://www.feedforall.com/ffalogo48x48.gif 18 | FeedForAll Sample Feed 19 | http://www.feedforall.com/industry-solutions.htm 20 | FeedForAll Sample Feed 21 | 48 22 | 48 23 | 24 | 25 | RSS Solutions for Restaurants 26 | <b>FeedForAll </b>helps Restaurant's communicate with customers. Let your customers know the latest specials or events.<br> 27 | <br> 28 | RSS feed uses include:<br> 29 | <i><font color="#FF0000">Daily Specials <br> 30 | Entertainment <br> 31 | Calendar of Events </i></font> 32 | http://www.feedforall.com/restaurant.htm 33 | Computers/Software/Internet/Site Management/Content Management 34 | http://www.feedforall.com/forum 35 | Tue, 19 Oct 2004 11:09:11 -0400 36 | 37 | 38 | RSS Solutions for Schools and Colleges 39 | FeedForAll helps Educational Institutions communicate with students about school wide activities, events, and schedules.<br> 40 | <br> 41 | RSS feed uses include:<br> 42 | <i><font color="#0000FF">Homework Assignments <br> 43 | School Cancellations <br> 44 | Calendar of Events <br> 45 | Sports Scores <br> 46 | Clubs/Organization Meetings <br> 47 | Lunches Menus </i></font> 48 | http://www.feedforall.com/schools.htm 49 | Computers/Software/Internet/Site Management/Content Management 50 | http://www.feedforall.com/forum 51 | Tue, 19 Oct 2004 11:09:09 -0400 52 | 53 | 54 | RSS Solutions for Computer Service Companies 55 | FeedForAll helps Computer Service Companies communicate with clients about cyber security and related issues. <br> 56 | <br> 57 | Uses include:<br> 58 | <i><font color="#0000FF">Cyber Security Alerts <br> 59 | Specials<br> 60 | Job Postings </i></font> 61 | http://www.feedforall.com/computer-service.htm 62 | Computers/Software/Internet/Site Management/Content Management 63 | http://www.feedforall.com/forum 64 | Tue, 19 Oct 2004 11:09:07 -0400 65 | 66 | 67 | RSS Solutions for Governments 68 | FeedForAll helps Governments communicate with the general public about positions on various issues, and keep the community aware of changes in important legislative issues. <b><i><br> 69 | </b></i><br> 70 | RSS uses Include:<br> 71 | <i><font color="#00FF00">Legislative Calendar<br> 72 | Votes<br> 73 | Bulletins</i></font> 74 | http://www.feedforall.com/government.htm 75 | Computers/Software/Internet/Site Management/Content Management 76 | http://www.feedforall.com/forum 77 | Tue, 19 Oct 2004 11:09:05 -0400 78 | 79 | 80 | RSS Solutions for Politicians 81 | FeedForAll helps Politicians communicate with the general public about positions on various issues, and keep the community notified of their schedule. <br> 82 | <br> 83 | Uses Include:<br> 84 | <i><font color="#FF0000">Blogs<br> 85 | Speaking Engagements <br> 86 | Statements<br> 87 | </i></font> 88 | http://www.feedforall.com/politics.htm 89 | Computers/Software/Internet/Site Management/Content Management 90 | http://www.feedforall.com/forum 91 | Tue, 19 Oct 2004 11:09:03 -0400 92 | 93 | 94 | RSS Solutions for Meteorologists 95 | FeedForAll helps Meteorologists communicate with the general public about storm warnings and weather alerts, in specific regions. Using RSS meteorologists are able to quickly disseminate urgent and life threatening weather warnings. <br> 96 | <br> 97 | Uses Include:<br> 98 | <i><font color="#0000FF">Weather Alerts<br> 99 | Plotting Storms<br> 100 | School Cancellations </i></font> 101 | http://www.feedforall.com/weather.htm 102 | Computers/Software/Internet/Site Management/Content Management 103 | http://www.feedforall.com/forum 104 | Tue, 19 Oct 2004 11:09:01 -0400 105 | 106 | 107 | RSS Solutions for Realtors & Real Estate Firms 108 | FeedForAll helps Realtors and Real Estate companies communicate with clients informing them of newly available properties, and open house announcements. RSS helps to reach a targeted audience and spread the word in an inexpensive, professional manner. <font color="#0000FF"><br> 109 | </font><br> 110 | Feeds can be used for:<br> 111 | <i><font color="#FF0000">Open House Dates<br> 112 | New Properties For Sale<br> 113 | Mortgage Rates</i></font> 114 | http://www.feedforall.com/real-estate.htm 115 | Computers/Software/Internet/Site Management/Content Management 116 | http://www.feedforall.com/forum 117 | Tue, 19 Oct 2004 11:08:59 -0400 118 | 119 | 120 | RSS Solutions for Banks / Mortgage Companies 121 | FeedForAll helps <b>Banks, Credit Unions and Mortgage companies</b> communicate with the general public about rate changes in a prompt and professional manner. <br> 122 | <br> 123 | Uses include:<br> 124 | <i><font color="#0000FF">Mortgage Rates<br> 125 | Foreign Exchange Rates <br> 126 | Bank Rates<br> 127 | Specials</i></font> 128 | http://www.feedforall.com/banks.htm 129 | Computers/Software/Internet/Site Management/Content Management 130 | http://www.feedforall.com/forum 131 | Tue, 19 Oct 2004 11:08:57 -0400 132 | 133 | 134 | RSS Solutions for Law Enforcement 135 | <b>FeedForAll</b> helps Law Enforcement Professionals communicate with the general public and other agencies in a prompt and efficient manner. Using RSS police are able to quickly disseminate urgent and life threatening information. <br> 136 | <br> 137 | Uses include:<br> 138 | <i><font color="#0000FF">Amber Alerts<br> 139 | Sex Offender Community Notification <br> 140 | Weather Alerts <br> 141 | Scheduling <br> 142 | Security Alerts <br> 143 | Police Report <br> 144 | Meetings</i></font> 145 | http://www.feedforall.com/law-enforcement.htm 146 | Computers/Software/Internet/Site Management/Content Management 147 | http://www.feedforall.com/forum 148 | Tue, 19 Oct 2004 11:08:56 -0400 149 | 150 | 151 | 152 | -------------------------------------------------------------------------------- /tests/samples/rss_2_no_category_attr/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/rss_2_no_category_attr/result.pkl -------------------------------------------------------------------------------- /tests/samples/rss_2_with_1_item/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FeedForAll Sample Feed 5 | RSS is a fascinating technology. The uses for RSS are expanding daily. Take a closer look at how various industries are using the benefits of RSS in their businesses. 6 | http://www.feedforall.com/industry-solutions.htm 7 | Computers/Software/Internet/Site Management/Content Management 8 | Copyright 2004 NotePage, Inc. 9 | http://blogs.law.harvard.edu/tech/rss 10 | en-us 11 | Tue, 19 Oct 2004 13:39:14 -0400 12 | marketing@feedforall.com 13 | Tue, 19 Oct 2004 13:38:55 -0400 14 | webmaster@feedforall.com 15 | FeedForAll Beta1 (0.0.1.8) 16 | 17 | http://www.feedforall.com/ffalogo48x48.gif 18 | FeedForAll Sample Feed 19 | http://www.feedforall.com/industry-solutions.htm 20 | FeedForAll Sample Feed 21 | 48 22 | 48 23 | 24 | 25 | RSS Solutions for Restaurants 26 | <b>FeedForAll </b>helps Restaurant's communicate with customers. Let your customers know the latest specials or events.<br> 27 | <br> 28 | RSS feed uses include:<br> 29 | <i><font color="#FF0000">Daily Specials <br> 30 | Entertainment <br> 31 | Calendar of Events </i></font> 32 | http://www.feedforall.com/restaurant.htm 33 | Computers/Software/Internet/Site Management/Content Management 34 | http://www.feedforall.com/forum 35 | Tue, 19 Oct 2004 11:09:11 -0400 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/samples/rss_2_with_1_item/result.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dhvcc/rss-parser/3430603747b9c4f2a6706ae0445b20b24479033b/tests/samples/rss_2_with_1_item/result.pkl -------------------------------------------------------------------------------- /tests/test_parsing.py: -------------------------------------------------------------------------------- 1 | import logging 2 | from typing import Type 3 | 4 | import pytest 5 | 6 | from rss_parser import AtomParser, BaseParser, RSSParser 7 | 8 | logger = logging.getLogger(__name__) 9 | 10 | 11 | class DataHelper: 12 | @staticmethod 13 | def compare_parsing(sample_and_result, parser: Type[BaseParser]): 14 | sample, result = sample_and_result 15 | rss = parser.parse(sample) 16 | 17 | assert rss 18 | 19 | parsed = rss.dict() 20 | assert parsed == result 21 | 22 | 23 | @pytest.mark.usefixtures("sample_and_result") 24 | class TestRSS: 25 | @pytest.mark.parametrize( 26 | "sample_and_result", 27 | [ 28 | ["rss_2"], 29 | ["rss_2_no_category_attr"], 30 | ["apology_line"], 31 | ["rss_2_with_1_item"], 32 | ["github-49"], 33 | ], 34 | indirect=True, 35 | ) 36 | def test_parses_all_rss_samples(self, sample_and_result): 37 | DataHelper.compare_parsing(sample_and_result, parser=RSSParser) 38 | 39 | 40 | @pytest.mark.usefixtures("sample_and_result") 41 | class TestAtom: 42 | @pytest.mark.parametrize( 43 | "sample_and_result", 44 | [ 45 | ["atom"], 46 | ["generic_atom_feed"], 47 | ], 48 | indirect=True, 49 | ) 50 | def test_parses_all_atom_samples(self, sample_and_result): 51 | DataHelper.compare_parsing(sample_and_result, parser=AtomParser) 52 | --------------------------------------------------------------------------------