feature: initial Qobuz + Spotify providers
This commit is contained in:
commit
6fa655e587
49 files changed
+11097
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg-info/
|
||||
build/
|
||||
dist/
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
# Tooling
|
||||
.pytest_cache/
|
||||
.ruff_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
.mypy_cache/
|
||||
|
||||
# Local data
|
||||
*.db
|
||||
*.sqlite
|
||||
credentials.json
|
||||
config.toml
|
||||
|
||||
# Reference clone (read-only research)
|
||||
qobuz-dl/
|
||||
reference/
|
||||
|
||||
# Local test downloads
|
||||
dev/
|
||||
|
||||
# Local agent/session files
|
||||
.opencode-session
|
||||
.env
|
||||
*.log
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
@@ -0,0 +1 @@
|
||||
3.12
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,201 @@
|
||||
# museater
|
||||
|
||||
Agent-friendly music downloader and library tooling.
|
||||
|
||||
**Qobuz** is the download provider; **Spotify** is a metadata/import source.
|
||||
The project is GPL-3.0-only and derives from the qobuz-dl family; see
|
||||
`THIRD_PARTY_NOTICES.md` and `LICENSE`.
|
||||
|
||||
## Status
|
||||
|
||||
Qobuz: albums, tracks, playlists, artists, labels, favorites, direct and
|
||||
segmented downloads, FLAC/MP3 tags, covers, ReplayGain, lyrics, `.m3u8`,
|
||||
SQLite history/dedupe, resume, cancellation, concurrency, and NDJSON progress.
|
||||
Spotify: OAuth PKCE, playlist/track listing, ISRC-first matching to Qobuz, and
|
||||
import of matched tracks through the same download pipeline. See
|
||||
[`docs/spotify.md`](docs/spotify.md) for the Spotify app/Premium setup.
|
||||
|
||||
## Run with uv
|
||||
|
||||
Everything is managed by [uv](https://docs.astral.sh/uv/); you do not need to
|
||||
create a virtualenv or install Python yourself. From the repository:
|
||||
|
||||
```bash
|
||||
# Run the CLI directly (uv creates/syncs .venv and downloads Python 3.12 if needed)
|
||||
uv run museater --help
|
||||
uv run museater qobuz auth --no-browser
|
||||
|
||||
# Development: tests, lint
|
||||
uv sync --extra dev
|
||||
uv run --extra dev pytest
|
||||
uv run --extra dev ruff check .
|
||||
```
|
||||
|
||||
Install the `museater` command globally in an isolated uv tool environment:
|
||||
|
||||
```bash
|
||||
uv tool install .
|
||||
museater --version
|
||||
```
|
||||
|
||||
Or run it one-off without installing:
|
||||
|
||||
```bash
|
||||
uvx --from . museater --help
|
||||
```
|
||||
|
||||
`ffmpeg` is required for the segmented download fallback. Install it with your
|
||||
distribution package manager.
|
||||
|
||||
## Authenticate
|
||||
|
||||
Interactive (opens the Qobuz sign-in page and captures the OAuth callback):
|
||||
|
||||
```bash
|
||||
uv run museater qobuz auth
|
||||
```
|
||||
|
||||
Headless / agent flow:
|
||||
|
||||
```bash
|
||||
# 1. Print the OAuth URL, open it anywhere, then copy the full redirect URL.
|
||||
uv run museater --json qobuz auth --print-url
|
||||
|
||||
# 2. Exchange the redirect URL (or just the code).
|
||||
uv run museater --json qobuz auth --code 'https://www.qobuz.com/...?code=...'
|
||||
|
||||
# Or paste a browser token from localStorage.localuser.token:
|
||||
uv run museater --json qobuz auth --token '<user_auth_token>'
|
||||
```
|
||||
|
||||
Token resolution order:
|
||||
|
||||
1. `MUSEATER_QOBUZ_TOKEN` environment variable (never persisted);
|
||||
2. OS keyring (`keyring`), unless `--no-keyring`;
|
||||
3. `~/.config/museater/credentials.json` with mode `0600`.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Human output
|
||||
uv run museater qobuz auth --status
|
||||
uv run museater qobuz search "Daft Punk" --type album --limit 5
|
||||
uv run museater qobuz info https://play.qobuz.com/album/qxjbxh1dc3xyb
|
||||
uv run museater doctor
|
||||
|
||||
# Agent output: one JSON object on stdout, progress/logs on stderr
|
||||
uv run museater --json qobuz auth --status
|
||||
uv run museater --json qobuz search "Daft Punk" --type album --limit 5
|
||||
uv run museater --json qobuz info qxjbxh1dc3xyb
|
||||
uv run museater --json doctor
|
||||
uv run museater --json history --limit 20
|
||||
uv run museater --json stats
|
||||
uv run museater schema
|
||||
|
||||
# Progress control (auto = ndjson with --json, text on a TTY, off otherwise)
|
||||
uv run museater --json qobuz download <url> --progress ndjson --concurrency 3
|
||||
uv run museater qobuz download <url> --progress text --concurrency 1
|
||||
|
||||
# Lyrics during download
|
||||
uv run museater qobuz download <url> --lyrics
|
||||
uv run museater qobuz download <url> --lyrics --lyrics-sources lrclib --synced-only
|
||||
uv run museater qobuz download <url> --lyrics --lrc-files --overwrite-lyrics
|
||||
|
||||
# Retroactively add/repair lyrics in an existing library
|
||||
uv run museater lyrics ~/Music/Museater --synced-only
|
||||
uv run museater --json lyrics ~/Music/Museater --overwrite --lrc-files
|
||||
|
||||
# Playlists, artists, labels
|
||||
uv run museater qobuz download <playlist-url> --out ~/Music/Museater
|
||||
uv run museater qobuz download <artist-url> --out ~/Music/Museater --concurrency 3
|
||||
uv run museater qobuz download <label-url> --out ~/Music/Museater
|
||||
uv run museater qobuz download <playlist-url> --playlist-as-albums
|
||||
|
||||
# Favorites (download only)
|
||||
uv run museater qobuz favorites --type albums
|
||||
uv run museater qobuz favorites --type tracks --out ~/Music/Museater
|
||||
|
||||
# Spotify -> Qobuz
|
||||
uv run museater spotify auth --client-id <spotify-client-id>
|
||||
uv run museater --json spotify playlists
|
||||
uv run museater --json spotify playlist '<spotify-playlist-url>'
|
||||
uv run museater --json spotify import '<spotify-playlist-url>' --dry-run
|
||||
uv run museater spotify import '<spotify-playlist-url>' --out ~/Music/Museater
|
||||
```
|
||||
|
||||
See [`docs/spotify.md`](docs/spotify.md) for the Spotify app/Premium setup and
|
||||
the `127.0.0.1` redirect URI requirement.
|
||||
|
||||
The download history lives in `~/.local/share/museater/museater.db`. A release
|
||||
is skipped when a completed record at the requested quality (or better) still
|
||||
exists. If the album folder was renamed, a `.museater.json` marker inside it is
|
||||
used to find the new path. `--force` re-downloads; `--no-db` ignores the
|
||||
history.
|
||||
|
||||
Global agent flags: `--json`, `--quiet`, `--verbose`, `--non-interactive`,
|
||||
`--config PATH`. Exit codes: `0` success, `2` usage/config, `3` auth, `4` not
|
||||
found/unavailable, `5` network/rate limit, `6` partial, `7` storage, `10`
|
||||
internal, `130` cancelled (SIGINT/SIGTERM). See
|
||||
[`docs/agents.md`](docs/agents.md) for the full agent contract.
|
||||
|
||||
## Configuration
|
||||
|
||||
Defaults work without a config file. Optional config lives at
|
||||
`~/.config/museater/config.toml`:
|
||||
|
||||
```toml
|
||||
[general]
|
||||
output_dir = "~/Music/Museater"
|
||||
non_interactive = false
|
||||
|
||||
[qobuz]
|
||||
quality = 27
|
||||
auto_downgrade = true
|
||||
concurrency = 3
|
||||
delay = 0.0 # > 0 forces sequential downloads and sleeps between tracks
|
||||
folder_format = "{album_artist} - {album_title} ({year}) [{format} {bit_depth}]"
|
||||
track_format = "{track_number} - {track_title_base}"
|
||||
embed_cover = true
|
||||
save_cover = true
|
||||
no_keyring = false
|
||||
no_database = false
|
||||
lyrics = false
|
||||
lyrics_sources = ["qobuz", "lrclib"]
|
||||
lyrics_save_lrc = false
|
||||
lyrics_synced_only = false
|
||||
lyrics_overwrite = false
|
||||
replaygain = true
|
||||
|
||||
[spotify]
|
||||
client_id = ""
|
||||
redirect_uri = "http://127.0.0.1/callback"
|
||||
market = ""
|
||||
```
|
||||
|
||||
Environment overrides: `MUSEATER_CONFIG`, `MUSEATER_OUTPUT_DIR`,
|
||||
`MUSEATER_QOBUZ_TOKEN`, `MUSEATER_DATA_DIR`, `MUSEATER_CACHE_DIR`.
|
||||
|
||||
## ReplayGain
|
||||
|
||||
Qobuz returns per-track `audio_info.replaygain_track_gain` and
|
||||
`replaygain_track_peak`. museater writes them as
|
||||
`REPLAYGAIN_TRACK_GAIN`/`REPLAYGAIN_TRACK_PEAK` tags in FLAC and as
|
||||
`TXXX` frames in MP3. Players such as Roon, Plexamp, Navidrome, and many DAPs
|
||||
use these tags to normalize playback volume without re-encoding or changing
|
||||
the audio. The values are advisory metadata only; the FLAC/MP3 stream is
|
||||
untouched. Disable with `--no-replaygain` or `replaygain = false`.
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
uv sync --extra dev
|
||||
uv run --extra dev pytest
|
||||
uv run --extra dev ruff check .
|
||||
```
|
||||
|
||||
Live tests are gated by `MUSEATER_TEST_TOKEN`; the default suite never touches
|
||||
the network. `uv.lock` is committed for reproducible environments.
|
||||
|
||||
## License
|
||||
|
||||
GPL-3.0-only. See `LICENSE` and `THIRD_PARTY_NOTICES.md`.
|
||||
@@ -0,0 +1,75 @@
|
||||
# Third-party notices
|
||||
|
||||
museater is licensed under **GPL-3.0-only** (see `LICENSE`). It is a derivative
|
||||
of the qobuz-dl family of projects and reuses protocol knowledge and, where
|
||||
noted, code from them.
|
||||
|
||||
## qobuz-dl / qobuz-dl-ultimate
|
||||
|
||||
- Upstream: <https://github.com/vitiko98/qobuz-dl>
|
||||
- Fork used as reference: <https://github.com/Sei969/qobuz-dl>
|
||||
- Reference commit: `a57a8ad8c89fc51530b3af2ad05028cfe537c5cf` (2026-10-29)
|
||||
- License: **GNU General Public License v3.0 only** (`GPL-3.0-only`)
|
||||
- Authors and contributors: vitiko98, xwell, catap, Sei969, and the qobuz-dl
|
||||
contributors.
|
||||
|
||||
The OAuth flow in `qobuz_dl/auth.py` also references the implementation in
|
||||
[paulborile/qobuz-dl](https://github.com/paulborile/qobuz-dl) (branch
|
||||
`bug/newauth`) and the token-refresh approach in
|
||||
[darocaecobr/qobuz-dl](https://github.com/darocaecobr/qobuz-dl); both are
|
||||
GPL-3.0-only.
|
||||
|
||||
Files in museater that are derived from this project carry a header with the
|
||||
upstream URL and a note that they were modified. The full license text is in
|
||||
`LICENSE`. If you distribute museater binaries or container images, you must
|
||||
also make the corresponding source available under GPL-3.0-only; the museater
|
||||
source repository at the matching tag satisfies this requirement.
|
||||
|
||||
Copyright (C) 2026 museater contributors.
|
||||
|
||||
## Spoofbuz
|
||||
|
||||
- Upstream: <https://github.com/DashLt/Spoofbuz>
|
||||
- License: **Unlicense** (public domain)
|
||||
- Used for the idea/algorithm of extracting the Qobuz web-player bundle
|
||||
(`app_id`, secrets, OAuth `private_key`).
|
||||
|
||||
## ffmpeg
|
||||
|
||||
museater invokes `ffmpeg` as an external process for remuxing segmented
|
||||
streams. ffmpeg is not linked into museater and is installed separately by the
|
||||
user. Its license depends on the build (LGPL-2.1-or-later or GPL-2.0-or-later);
|
||||
see the ffmpeg distribution you install.
|
||||
|
||||
## Python dependencies
|
||||
|
||||
| Package | License |
|
||||
| --- | --- |
|
||||
| requests | Apache-2.0 |
|
||||
| platformdirs | MIT |
|
||||
| rich | MIT |
|
||||
| keyring | MIT |
|
||||
| tomli-w | MIT |
|
||||
| mutagen | GPL-2.0-or-later |
|
||||
| cryptography | Apache-2.0 OR BSD-3-Clause |
|
||||
| pathvalidate | MIT |
|
||||
| pytest (dev) | MIT |
|
||||
| ruff (dev) | MIT |
|
||||
| responses (dev) | Apache-2.0 |
|
||||
|
||||
`mutagen` (GPL-2.0-or-later) and `cryptography` (Apache-2.0 OR BSD-3-Clause)
|
||||
are compatible with GPL-3.0.
|
||||
|
||||
## Spotify
|
||||
|
||||
museater uses the Spotify Web API only for playlist and track metadata. It does
|
||||
not download Spotify audio. Spotify names and trademarks belong to their
|
||||
respective owners. Use museater in compliance with Spotify's Developer Terms.
|
||||
The Spotify client uses OAuth 2.0 Authorization Code with PKCE; no client
|
||||
secret is stored.
|
||||
|
||||
## Qobuz
|
||||
|
||||
museater is not affiliated with Qobuz. Qobuz names and trademarks belong to
|
||||
their respective owners. Use museater only with an account you are entitled to
|
||||
use and in compliance with Qobuz's terms of service.
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
# Agent usage
|
||||
|
||||
`museater` is designed so an agent can call it like any other shell tool. From
|
||||
the repository use `uv run museater ...`; if installed as a uv tool, use
|
||||
`museater ...`. The machine contract is:
|
||||
|
||||
- **stdout**: exactly one JSON object, and nothing else;
|
||||
- **stderr**: human logs, warnings, progress;
|
||||
- **exit code**: stable category (see below);
|
||||
- **no prompts** when `--non-interactive` is set or stdin is not a TTY.
|
||||
|
||||
## Discover the contract
|
||||
|
||||
```bash
|
||||
uv run museater schema
|
||||
uv run museater --json doctor
|
||||
```
|
||||
|
||||
`museater schema` returns a JSON Schema for the result envelope. The envelope
|
||||
is stable:
|
||||
|
||||
```json
|
||||
{
|
||||
"schema_version": "1",
|
||||
"ok": true,
|
||||
"command": "qobuz.search",
|
||||
"data": {},
|
||||
"warnings": [],
|
||||
"error": null
|
||||
}
|
||||
```
|
||||
|
||||
On failure `ok` is `false`, `data` is `null`, and `error` contains `code`,
|
||||
`message`, `retryable`, and optionally `hint`/`details`.
|
||||
|
||||
## Exit codes
|
||||
|
||||
| Code | Meaning |
|
||||
| --- | --- |
|
||||
| 0 | success |
|
||||
| 2 | usage or configuration error |
|
||||
| 3 | authentication required/invalid/expired |
|
||||
| 4 | not found, unavailable, or geo-blocked |
|
||||
| 5 | network or rate-limit error |
|
||||
| 6 | partial success (some tracks failed) |
|
||||
| 7 | storage/permission error |
|
||||
| 10 | internal error |
|
||||
| 130 | cancelled by SIGINT/SIGTERM |
|
||||
|
||||
## Recommended agent sequence
|
||||
|
||||
```bash
|
||||
# 1. Is the environment ready?
|
||||
uv run museater --json doctor
|
||||
|
||||
# 2. If auth is missing, use the headless OAuth flow.
|
||||
uv run museater --json qobuz auth --print-url
|
||||
# Agent shows oauth_url to the user, waits for the redirect URL.
|
||||
uv run museater --json qobuz auth --code '<redirect-url>'
|
||||
|
||||
# 3. Find the release.
|
||||
uv run museater --json qobuz search "Daft Punk Discovery" --type album --limit 5
|
||||
|
||||
# 4. Inspect it before downloading.
|
||||
uv run museater --json qobuz info https://play.qobuz.com/album/qxjbxh1dc3xyb
|
||||
|
||||
# 5. Download, non-interactively.
|
||||
uv run museater --json --non-interactive qobuz download \
|
||||
https://play.qobuz.com/album/qxjbxh1dc3xyb \
|
||||
--out "$HOME/Music/Museater"
|
||||
|
||||
# 6. Inspect history and stats.
|
||||
uv run museater --json history --limit 20
|
||||
uv run museater --json stats
|
||||
```
|
||||
|
||||
## Progress events
|
||||
|
||||
With `--json`, progress defaults to NDJSON on stderr (`--progress ndjson`).
|
||||
Events:
|
||||
|
||||
```json
|
||||
{"event":"album_start","title":"...","tracks":14,"output_dir":"..."}
|
||||
{"event":"track_start","index":1,"total":14,"track_id":"...","title":"..."}
|
||||
{"event":"track_progress","track_id":"...","bytes":1048576,"total":40000000}
|
||||
{"event":"track_done","index":1,"total":14,"track_id":"...","status":"downloaded","path":"...","bytes":40000000}
|
||||
{"event":"album_done","status":"completed","downloaded":14,"skipped":0,"failed":0}
|
||||
```
|
||||
|
||||
Use `--progress off` for quiet agents, `--progress text` for humans, and
|
||||
`--concurrency N` to cap parallel track downloads. `--delay > 0` forces
|
||||
sequential downloads with a pause between tracks.
|
||||
|
||||
## Collections
|
||||
|
||||
`qobuz download` accepts album, track, playlist, artist, and label URLs (or
|
||||
bare IDs with `--type`). Playlists are downloaded flat with an `.m3u8` in API
|
||||
order; `--playlist-as-albums` routes tracks into their original album folders.
|
||||
|
||||
`qobuz favorites --type albums|tracks|artists|labels` downloads the favorites
|
||||
from the authenticated account. It is download-only; there is no listing mode.
|
||||
`tracks` favorites go into a flat `Favorites Tracks` folder with an `.m3u8`.
|
||||
|
||||
## Spotify
|
||||
|
||||
`spotify playlists` and `spotify playlist` are read-only metadata commands.
|
||||
`spotify import` matches each track to Qobuz (ISRC first) and downloads only
|
||||
`matched` tracks; `ambiguous`/`not_found` are reported and skipped.
|
||||
|
||||
```bash
|
||||
uv run museater --json spotify auth --client-id <id> --print-url
|
||||
uv run museater --json spotify auth --code '<redirect-url>'
|
||||
uv run museater --json spotify playlists
|
||||
uv run museater --json spotify playlist '<url>'
|
||||
uv run museater --json spotify import '<url>' --dry-run
|
||||
uv run museater --json spotify import '<url>' --out ~/Music/Museater
|
||||
```
|
||||
|
||||
Setup and limitations: [`spotify.md`](spotify.md).
|
||||
|
||||
## ReplayGain
|
||||
|
||||
FLAC gets `REPLAYGAIN_TRACK_GAIN`/`REPLAYGAIN_TRACK_PEAK` Vorbis comments; MP3
|
||||
gets `TXXX` frames with the same names. Disable with `--no-replaygain`.
|
||||
The values come from Qobuz `audio_info`; audio is not modified.
|
||||
|
||||
## Lyrics
|
||||
|
||||
`--lyrics` enables lyrics during a download; default providers are Qobuz
|
||||
native, then LRCLIB. `--synced-only` rejects plain-text lyrics.
|
||||
`--lyrics-sources qobuz,lrclib` selects providers. `--lrc-files` writes an
|
||||
`.lrc` sidecar; without it lyrics are only embedded in the audio tags.
|
||||
|
||||
```bash
|
||||
uv run museater --json qobuz download <url> --lyrics --synced-only
|
||||
uv run museater --json lyrics ~/Music/Museater --overwrite --synced-only
|
||||
```
|
||||
|
||||
The `lyrics` command scans `.flac`/`.mp3` recursively, reads existing tags
|
||||
(including `QOBUZTRACKID`), and does not require re-downloading audio. It is
|
||||
best-effort: `not_found` is not an error.
|
||||
|
||||
## Cancellation
|
||||
|
||||
Send `SIGINT` or `SIGTERM` to the process. museater stops starting new tracks,
|
||||
cancels queued work, keeps direct-download `.part` files plus their metadata
|
||||
sidecars, writes an incomplete album marker, and exits with code `130`:
|
||||
|
||||
```json
|
||||
{"ok":false,"error":{"code":"CANCELLED","message":"Download cancelled by user","retryable":true},"data":{"summary":{"cancelled":2}}}
|
||||
```
|
||||
|
||||
Rerun the same command to resume: existing files are skipped and partial direct
|
||||
downloads resume from their `.part` file. `--force` discards partial state.
|
||||
|
||||
A target already recorded at the requested quality (or better) is reported as
|
||||
`status: "skipped_db"` with `summary.skipped > 0` and a `db.hit = true` block.
|
||||
This is a success, not an error. Use `--force` to re-download or `--no-db` to
|
||||
ignore the history.
|
||||
|
||||
## Environment
|
||||
|
||||
- `MUSEATER_QOBUZ_TOKEN` — highest-priority token source; never written to disk.
|
||||
- `MUSEATER_CONFIG` — config file path.
|
||||
- `MUSEATER_OUTPUT_DIR` — default download directory.
|
||||
- `MUSEATER_DATA_DIR` / `MUSEATER_CACHE_DIR` — state and cache directories.
|
||||
|
||||
## Rules for agents
|
||||
|
||||
- Do not parse human output; always pass `--json`.
|
||||
- Treat `ok: false` as a failure even when the process exit code is `6`
|
||||
(partial). Read `error` and `data.tracks` for details.
|
||||
- Do not retry `AUTH_*`, `NOT_FOUND`, or `GEO_BLOCKED`.
|
||||
- Retry `NETWORK`/`RATE_LIMITED` with backoff, or lower `--concurrency`.
|
||||
- Never print or persist `MUSEATER_QOBUZ_TOKEN` in logs.
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
# Spotify setup
|
||||
|
||||
museater reads Spotify playlist metadata (never audio) and resolves each track
|
||||
to Qobuz. Matching uses ISRC first, then a strict artist/title/duration
|
||||
fallback. Ambiguous or missing matches are reported and skipped by default.
|
||||
|
||||
> **Status:** PKCE, models, matching, and the import pipeline are unit-tested,
|
||||
> but a live end-to-end Spotify run still requires your app/Client ID. Treat
|
||||
> the Spotify provider as beta until that check is done.
|
||||
|
||||
## Requirements
|
||||
|
||||
- A Spotify account.
|
||||
- **Spotify Premium on the app owner** — Development Mode apps require it
|
||||
(Spotify's February 2026 change; new apps are limited to 5 users).
|
||||
- A Spotify Developer app to get a Client ID.
|
||||
- Authenticated Qobuz access in museater for the actual download.
|
||||
|
||||
## Create the Spotify app
|
||||
|
||||
1. Open <https://developer.spotify.com/dashboard>.
|
||||
2. Create an app (name/description can be anything).
|
||||
3. In the app settings, add a Redirect URI:
|
||||
- `http://127.0.0.1/callback` (recommended; museater adds a dynamic port), or
|
||||
- `http://127.0.0.1:8888/callback` if you prefer a fixed port.
|
||||
- **Do not use `localhost`** — Spotify rejects it; use the literal
|
||||
`127.0.0.1`.
|
||||
4. Save, then copy the **Client ID**. The client secret is not needed: museater
|
||||
uses Authorization Code with PKCE.
|
||||
|
||||
If you registered a fixed port, pass the exact URI:
|
||||
|
||||
```bash
|
||||
uv run museater spotify auth --client-id <id> \
|
||||
--redirect-uri 'http://127.0.0.1:8888/callback'
|
||||
```
|
||||
|
||||
## Authenticate
|
||||
|
||||
Browser flow:
|
||||
|
||||
```bash
|
||||
uv run museater spotify auth --client-id <client-id>
|
||||
```
|
||||
|
||||
Headless / agent flow:
|
||||
|
||||
```bash
|
||||
uv run museater --json spotify auth --client-id <client-id> --print-url
|
||||
# open auth_url, then copy the full http://127.0.0.1:<port>/callback?code=... URL
|
||||
uv run museater --json spotify auth --code '<redirect-url>'
|
||||
```
|
||||
|
||||
Check:
|
||||
|
||||
```bash
|
||||
uv run museater --json spotify auth --status
|
||||
```
|
||||
|
||||
Tokens are stored in the OS keyring when available; otherwise in
|
||||
`~/.config/museater/credentials.json` with mode `0600`. `MUSEATER_SPOTIFY_CLIENT_ID`
|
||||
and `MUSEATER_SPOTIFY_REFRESH_TOKEN` are honored for agents/headless setups.
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
uv run museater --json spotify playlists
|
||||
uv run museater --json spotify playlist 'https://open.spotify.com/playlist/...'
|
||||
|
||||
# Match only, no downloads:
|
||||
uv run museater --json spotify import '<playlist-url>' --dry-run
|
||||
|
||||
# Match + download the matched Qobuz tracks:
|
||||
uv run museater spotify import '<playlist-url>' --out ~/Music/Museater
|
||||
|
||||
# Same, but route matched tracks into their Qobuz album folders:
|
||||
uv run museater spotify import '<playlist-url>' --playlist-as-albums
|
||||
```
|
||||
|
||||
Import output includes one item per Spotify track:
|
||||
|
||||
```json
|
||||
{"position":1,"status":"matched","score":1.0,"reason":"isrc",
|
||||
"spotify":{"title":"...","artist":"..."},
|
||||
"qobuz":{"id":"...","title":"..."}}
|
||||
```
|
||||
|
||||
`status` is `matched`, `ambiguous`, or `not_found`. Only `matched` tracks are
|
||||
downloaded. `--refresh-matches` ignores the cached matches.
|
||||
|
||||
## Limitations
|
||||
|
||||
- Spotify's `/playlists/{id}/items` endpoint is restricted to playlists you own
|
||||
or collaborate on. museater falls back to the deprecated `/tracks` endpoint;
|
||||
if Spotify still denies it, the playlist is reported as forbidden.
|
||||
- Local files, podcast episodes, and unavailable tracks are skipped.
|
||||
- Spotify and Qobuz catalogs/regions differ; some tracks will be `not_found` or
|
||||
unavailable in Qobuz.
|
||||
- Spotify audio is never downloaded. The API is used only for playlist/track
|
||||
metadata.
|
||||
@@ -0,0 +1,77 @@
|
||||
[build-system]
|
||||
requires = ["hatchling>=1.25"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "museater"
|
||||
version = "0.1.0"
|
||||
description = "Agent-friendly music downloader and library tooling"
|
||||
readme = "README.md"
|
||||
license = { text = "GPL-3.0-only" }
|
||||
license-files = ["LICENSE"]
|
||||
requires-python = ">=3.11"
|
||||
authors = [{ name = "museater contributors" }]
|
||||
keywords = ["music", "qobuz", "downloader", "cli", "agents"]
|
||||
classifiers = [
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Environment :: Console",
|
||||
"Intended Audience :: End Users/Desktop",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Topic :: Multimedia :: Sound/Audio",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"requests>=2.32",
|
||||
"platformdirs>=4.2",
|
||||
"rich>=13.7",
|
||||
"keyring>=25.0",
|
||||
"tomli-w>=1.0",
|
||||
"mutagen>=1.47",
|
||||
"pathvalidate>=3.2",
|
||||
"cryptography>=43.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
"pytest-cov>=5.0",
|
||||
"ruff>=0.6",
|
||||
"responses>=0.25",
|
||||
"build>=1.2",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
museater = "museater.cli:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://git.frik.su/Beesquit/museater"
|
||||
Issues = "https://git.frik.su/Beesquit/museater/issues"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/museater"]
|
||||
|
||||
[tool.uv]
|
||||
# Let uv manage the interpreter. .python-version pins the dev/runtime version;
|
||||
# uv downloads it on machines that do not have it.
|
||||
python-preference = "managed"
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py311"
|
||||
src = ["src", "tests"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "UP", "B", "SIM"]
|
||||
ignore = ["E501"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-q"
|
||||
markers = [
|
||||
"integration: requires a real Qobuz account and MUSEATER_TEST_TOKEN",
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""museater: agent-friendly music downloader and library tooling."""
|
||||
|
||||
from museater.cancel import CancelToken
|
||||
from museater.client import MuseaterClient
|
||||
from museater.config import Config, load_config
|
||||
from museater.errors import CancelledError, MuseaterError
|
||||
|
||||
__version__ = "0.1.0"
|
||||
|
||||
__all__ = [
|
||||
"CancelToken",
|
||||
"CancelledError",
|
||||
"Config",
|
||||
"MuseaterClient",
|
||||
"MuseaterError",
|
||||
"__version__",
|
||||
"load_config",
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""`python -m museater` entry point."""
|
||||
|
||||
from museater.cli import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,24 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Cooperative cancellation for downloads."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import threading
|
||||
|
||||
from museater.errors import CancelledError
|
||||
|
||||
|
||||
class CancelToken:
|
||||
def __init__(self) -> None:
|
||||
self._event = threading.Event()
|
||||
|
||||
def cancel(self) -> None:
|
||||
self._event.set()
|
||||
|
||||
@property
|
||||
def cancelled(self) -> bool:
|
||||
return self._event.is_set()
|
||||
|
||||
def raise_if_cancelled(self) -> None:
|
||||
if self.cancelled:
|
||||
raise CancelledError()
|
||||
+1437
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,97 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Public Python API.
|
||||
|
||||
The CLI is a thin wrapper around this class. Agents that live in Python can use
|
||||
the same code path and get typed errors instead of parsing stdout.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from museater.config import Config, load_config
|
||||
from museater.errors import UsageError
|
||||
from museater.providers.qobuz.auth import resolve_client
|
||||
from museater.providers.qobuz.bundle import BundleProvider, QobuzBundle
|
||||
from museater.providers.qobuz.models import (
|
||||
Account,
|
||||
ReleaseInfo,
|
||||
SearchItem,
|
||||
TrackInfo,
|
||||
)
|
||||
from museater.urls import Target, parse_target
|
||||
|
||||
|
||||
class MuseaterClient:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
config: Config | None = None,
|
||||
token: str | None = None,
|
||||
no_keyring: bool | None = None,
|
||||
bundle: QobuzBundle | None = None,
|
||||
language: str | None = None,
|
||||
) -> None:
|
||||
self.config = config or load_config()
|
||||
self.bundle = bundle or BundleProvider().get()
|
||||
self.token_source: str | None = None
|
||||
keyring_disabled = (
|
||||
self.config.qobuz.no_keyring if no_keyring is None else no_keyring
|
||||
)
|
||||
self.qobuz, self.token_source = resolve_client(
|
||||
self.bundle,
|
||||
token=token,
|
||||
no_keyring=keyring_disabled,
|
||||
language=language or self.config.qobuz.language,
|
||||
)
|
||||
|
||||
def account(self) -> Account:
|
||||
return self.qobuz.get_user()
|
||||
|
||||
def search(
|
||||
self,
|
||||
query: str,
|
||||
*,
|
||||
item_type: str = "album",
|
||||
limit: int = 20,
|
||||
) -> list[SearchItem]:
|
||||
return self.qobuz.search(query, item_type=item_type, limit=limit)
|
||||
|
||||
def get_release(self, target: str | Target) -> ReleaseInfo:
|
||||
parsed = target if isinstance(target, Target) else parse_target(target)
|
||||
if parsed.type != "album":
|
||||
raise UsageError(
|
||||
f"Expected an album target, got '{parsed.type}'",
|
||||
hint="Use --type album or pass an album URL",
|
||||
)
|
||||
return self.qobuz.get_album(parsed.id)
|
||||
|
||||
def get_track(self, target: str | Target) -> TrackInfo:
|
||||
parsed = target if isinstance(target, Target) else parse_target(target, default_type="track")
|
||||
if parsed.type != "track":
|
||||
raise UsageError(
|
||||
f"Expected a track target, got '{parsed.type}'",
|
||||
hint="Pass a track URL or a bare track ID",
|
||||
)
|
||||
return self.qobuz.get_track(parsed.id)
|
||||
|
||||
def get_info(self, target: str | Target, *, result_type: str | None = None) -> Any:
|
||||
parsed = (
|
||||
target
|
||||
if isinstance(target, Target)
|
||||
else parse_target(target, default_type=result_type or "album")
|
||||
)
|
||||
if parsed.type == "album":
|
||||
return self.qobuz.get_album(parsed.id)
|
||||
if parsed.type == "track":
|
||||
return self.qobuz.get_track(parsed.id)
|
||||
if parsed.type == "playlist":
|
||||
return self.qobuz.get_playlist_info(parsed.id)
|
||||
if parsed.type == "artist":
|
||||
return self.qobuz.get_artist(parsed.id)
|
||||
if parsed.type == "label":
|
||||
return self.qobuz.get_label(parsed.id)
|
||||
raise UsageError(f"Info is not implemented for '{parsed.type}' yet")
|
||||
|
||||
|
||||
__all__ = ["MuseaterClient"]
|
||||
@@ -0,0 +1,220 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Configuration loading with safe defaults.
|
||||
|
||||
The CLI works without a config file. A config file is only read when it
|
||||
exists, and `museater setup` is the only command that writes one.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import tomllib
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import tomli_w
|
||||
|
||||
from museater.errors import ConfigError
|
||||
from museater.paths import default_config_path, default_output_dir
|
||||
|
||||
DEFAULT_FOLDER_FORMAT = "{album_artist} - {album_title} ({year}) [{format} {bit_depth}]"
|
||||
DEFAULT_TRACK_FORMAT = "{track_number} - {track_title_base}"
|
||||
DEFAULT_MULTI_DISC_TRACK_FORMAT = "{disc_number}.{track_number} - {track_title_base}"
|
||||
VALID_QUALITIES = (5, 6, 7, 27)
|
||||
|
||||
|
||||
@dataclass
|
||||
class GeneralConfig:
|
||||
output_dir: Path = field(default_factory=default_output_dir)
|
||||
non_interactive: bool = False
|
||||
json: bool = False
|
||||
verbose: bool = False
|
||||
|
||||
|
||||
@dataclass
|
||||
class QobuzConfig:
|
||||
quality: int = 27
|
||||
auto_downgrade: bool = True
|
||||
concurrency: int = 3
|
||||
delay: float = 0.0
|
||||
folder_format: str = DEFAULT_FOLDER_FORMAT
|
||||
track_format: str = DEFAULT_TRACK_FORMAT
|
||||
multi_disc_track_format: str = DEFAULT_MULTI_DISC_TRACK_FORMAT
|
||||
embed_cover: bool = True
|
||||
save_cover: bool = True
|
||||
no_keyring: bool = False
|
||||
no_database: bool = False
|
||||
lyrics: bool = False
|
||||
lyrics_sources: tuple[str, ...] = ("qobuz", "lrclib")
|
||||
lyrics_save_lrc: bool = False
|
||||
lyrics_synced_only: bool = False
|
||||
lyrics_overwrite: bool = False
|
||||
replaygain: bool = True
|
||||
language: str = "en"
|
||||
|
||||
|
||||
@dataclass
|
||||
class SpotifyConfig:
|
||||
client_id: str | None = None
|
||||
redirect_uri: str = "http://127.0.0.1/callback"
|
||||
market: str = ""
|
||||
|
||||
|
||||
@dataclass
|
||||
class Config:
|
||||
general: GeneralConfig = field(default_factory=GeneralConfig)
|
||||
qobuz: QobuzConfig = field(default_factory=QobuzConfig)
|
||||
spotify: SpotifyConfig = field(default_factory=SpotifyConfig)
|
||||
path: Path | None = None
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return {
|
||||
"general": {
|
||||
"output_dir": str(self.general.output_dir),
|
||||
"non_interactive": self.general.non_interactive,
|
||||
"json": self.general.json,
|
||||
"verbose": self.general.verbose,
|
||||
},
|
||||
"qobuz": {
|
||||
"quality": self.qobuz.quality,
|
||||
"auto_downgrade": self.qobuz.auto_downgrade,
|
||||
"concurrency": self.qobuz.concurrency,
|
||||
"delay": self.qobuz.delay,
|
||||
"folder_format": self.qobuz.folder_format,
|
||||
"track_format": self.qobuz.track_format,
|
||||
"multi_disc_track_format": self.qobuz.multi_disc_track_format,
|
||||
"embed_cover": self.qobuz.embed_cover,
|
||||
"save_cover": self.qobuz.save_cover,
|
||||
"no_keyring": self.qobuz.no_keyring,
|
||||
"no_database": self.qobuz.no_database,
|
||||
"lyrics": self.qobuz.lyrics,
|
||||
"lyrics_sources": list(self.qobuz.lyrics_sources),
|
||||
"lyrics_save_lrc": self.qobuz.lyrics_save_lrc,
|
||||
"lyrics_synced_only": self.qobuz.lyrics_synced_only,
|
||||
"lyrics_overwrite": self.qobuz.lyrics_overwrite,
|
||||
"replaygain": self.qobuz.replaygain,
|
||||
"language": self.qobuz.language,
|
||||
},
|
||||
"spotify": {
|
||||
"client_id": self.spotify.client_id or "",
|
||||
"redirect_uri": self.spotify.redirect_uri,
|
||||
"market": self.spotify.market,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def _as_bool(value: Any) -> bool:
|
||||
if isinstance(value, bool):
|
||||
return value
|
||||
if isinstance(value, str):
|
||||
return value.strip().lower() in {"1", "true", "yes", "on"}
|
||||
return bool(value)
|
||||
|
||||
|
||||
def _section(data: dict[str, Any], name: str) -> dict[str, Any]:
|
||||
value = data.get(name, {})
|
||||
if not isinstance(value, dict):
|
||||
raise ConfigError(f"Config section [{name}] must be a table")
|
||||
return value
|
||||
|
||||
|
||||
def load_config(path: Path | None = None) -> Config:
|
||||
"""Load config from `path` (or the default path) if it exists."""
|
||||
|
||||
config_path = path.expanduser() if path else default_config_path()
|
||||
cfg = Config(path=config_path if config_path.exists() else None)
|
||||
|
||||
if config_path.exists():
|
||||
try:
|
||||
with config_path.open("rb") as fh:
|
||||
data = tomllib.load(fh)
|
||||
except (OSError, tomllib.TOMLDecodeError) as exc:
|
||||
raise ConfigError(f"Cannot read config {config_path}: {exc}") from exc
|
||||
|
||||
general = _section(data, "general")
|
||||
qobuz = _section(data, "qobuz")
|
||||
spotify = _section(data, "spotify")
|
||||
|
||||
if "output_dir" in general:
|
||||
cfg.general.output_dir = Path(str(general["output_dir"])).expanduser()
|
||||
if "non_interactive" in general:
|
||||
cfg.general.non_interactive = _as_bool(general["non_interactive"])
|
||||
if "json" in general:
|
||||
cfg.general.json = _as_bool(general["json"])
|
||||
if "verbose" in general:
|
||||
cfg.general.verbose = _as_bool(general["verbose"])
|
||||
|
||||
if "quality" in qobuz:
|
||||
cfg.qobuz.quality = int(qobuz["quality"])
|
||||
if cfg.qobuz.quality not in VALID_QUALITIES:
|
||||
raise ConfigError(
|
||||
f"Invalid qobuz.quality={cfg.qobuz.quality}; expected one of {VALID_QUALITIES}"
|
||||
)
|
||||
if "auto_downgrade" in qobuz:
|
||||
cfg.qobuz.auto_downgrade = _as_bool(qobuz["auto_downgrade"])
|
||||
if "concurrency" in qobuz:
|
||||
cfg.qobuz.concurrency = max(1, min(16, int(qobuz["concurrency"])))
|
||||
if "delay" in qobuz:
|
||||
cfg.qobuz.delay = max(0.0, float(qobuz["delay"]))
|
||||
if "folder_format" in qobuz:
|
||||
cfg.qobuz.folder_format = str(qobuz["folder_format"])
|
||||
if "track_format" in qobuz:
|
||||
cfg.qobuz.track_format = str(qobuz["track_format"])
|
||||
if "multi_disc_track_format" in qobuz:
|
||||
cfg.qobuz.multi_disc_track_format = str(qobuz["multi_disc_track_format"])
|
||||
if "embed_cover" in qobuz:
|
||||
cfg.qobuz.embed_cover = _as_bool(qobuz["embed_cover"])
|
||||
if "save_cover" in qobuz:
|
||||
cfg.qobuz.save_cover = _as_bool(qobuz["save_cover"])
|
||||
if "no_keyring" in qobuz:
|
||||
cfg.qobuz.no_keyring = _as_bool(qobuz["no_keyring"])
|
||||
if "no_database" in qobuz:
|
||||
cfg.qobuz.no_database = _as_bool(qobuz["no_database"])
|
||||
if "lyrics" in qobuz:
|
||||
cfg.qobuz.lyrics = _as_bool(qobuz["lyrics"])
|
||||
if "lyrics_sources" in qobuz:
|
||||
raw_sources = qobuz["lyrics_sources"]
|
||||
if isinstance(raw_sources, str):
|
||||
raw_sources = raw_sources.split(",")
|
||||
cfg.qobuz.lyrics_sources = tuple(
|
||||
str(source).strip().lower()
|
||||
for source in raw_sources
|
||||
if str(source).strip()
|
||||
)
|
||||
if "lyrics_save_lrc" in qobuz:
|
||||
cfg.qobuz.lyrics_save_lrc = _as_bool(qobuz["lyrics_save_lrc"])
|
||||
if "lyrics_synced_only" in qobuz:
|
||||
cfg.qobuz.lyrics_synced_only = _as_bool(qobuz["lyrics_synced_only"])
|
||||
if "lyrics_overwrite" in qobuz:
|
||||
cfg.qobuz.lyrics_overwrite = _as_bool(qobuz["lyrics_overwrite"])
|
||||
if "replaygain" in qobuz:
|
||||
cfg.qobuz.replaygain = _as_bool(qobuz["replaygain"])
|
||||
if "language" in qobuz:
|
||||
cfg.qobuz.language = str(qobuz["language"])
|
||||
|
||||
if "client_id" in spotify:
|
||||
cfg.spotify.client_id = str(spotify["client_id"]) or None
|
||||
if "redirect_uri" in spotify:
|
||||
cfg.spotify.redirect_uri = str(spotify["redirect_uri"])
|
||||
if "market" in spotify:
|
||||
cfg.spotify.market = str(spotify["market"])
|
||||
|
||||
env_client_id = os.environ.get("MUSEATER_SPOTIFY_CLIENT_ID")
|
||||
if env_client_id:
|
||||
cfg.spotify.client_id = env_client_id
|
||||
env_output = os.environ.get("MUSEATER_OUTPUT_DIR")
|
||||
if env_output:
|
||||
cfg.general.output_dir = Path(env_output).expanduser()
|
||||
|
||||
return cfg
|
||||
|
||||
|
||||
def save_config(cfg: Config, path: Path | None = None) -> Path:
|
||||
target = (path or cfg.path or default_config_path()).expanduser()
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
try:
|
||||
target.write_text(tomli_w.dumps(cfg.to_dict()), encoding="utf-8")
|
||||
except OSError as exc:
|
||||
raise ConfigError(f"Cannot write config {target}: {exc}") from exc
|
||||
return target
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,187 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Typed errors and stable machine-readable error codes."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass
|
||||
class MuseaterError(Exception):
|
||||
"""Base error that can be rendered as JSON and mapped to an exit code."""
|
||||
|
||||
message: str
|
||||
code: str = "INTERNAL"
|
||||
hint: str | None = None
|
||||
retryable: bool = False
|
||||
exit_code: int = 10
|
||||
details: dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
super().__init__(self.message)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload: dict[str, Any] = {
|
||||
"code": self.code,
|
||||
"message": self.message,
|
||||
"retryable": self.retryable,
|
||||
}
|
||||
if self.hint:
|
||||
payload["hint"] = self.hint
|
||||
if self.details:
|
||||
payload["details"] = self.details
|
||||
return payload
|
||||
|
||||
|
||||
class UsageError(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(message, code="USAGE", hint=hint, exit_code=2, **kwargs)
|
||||
|
||||
|
||||
class ConfigError(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(message, code="CONFIG", hint=hint, exit_code=2, **kwargs)
|
||||
|
||||
|
||||
class AuthRequired(MuseaterError):
|
||||
def __init__(
|
||||
self,
|
||||
message: str = "Qobuz authentication is required",
|
||||
*,
|
||||
hint: str | None = None,
|
||||
**kwargs: Any,
|
||||
) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="AUTH_REQUIRED",
|
||||
hint=hint or "Run: museater qobuz auth",
|
||||
exit_code=3,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class AuthInvalid(MuseaterError):
|
||||
def __init__(
|
||||
self, message: str = "Qobuz token is invalid", *, hint: str | None = None, **kwargs: Any
|
||||
) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="AUTH_INVALID",
|
||||
hint=hint or "Run: museater qobuz auth --token '<token>'",
|
||||
exit_code=3,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class AuthExpired(MuseaterError):
|
||||
def __init__(
|
||||
self, message: str = "Qobuz token expired", *, hint: str | None = None, **kwargs: Any
|
||||
) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="AUTH_EXPIRED",
|
||||
hint=hint or "Run: museater qobuz auth",
|
||||
exit_code=3,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class NotFound(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(message, code="NOT_FOUND", hint=hint, exit_code=4, **kwargs)
|
||||
|
||||
|
||||
class Unavailable(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(message, code="UNAVAILABLE", hint=hint, exit_code=4, **kwargs)
|
||||
|
||||
|
||||
class GeoBlocked(MuseaterError):
|
||||
def __init__(self, message: str = "Release is not available in this region", **kwargs: Any) -> None:
|
||||
super().__init__(message, code="GEO_BLOCKED", exit_code=4, **kwargs)
|
||||
|
||||
|
||||
class NetworkError(MuseaterError):
|
||||
def __init__(self, message: str, *, retryable: bool = True, **kwargs: Any) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="NETWORK",
|
||||
retryable=retryable,
|
||||
exit_code=5,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class RateLimited(MuseaterError):
|
||||
def __init__(
|
||||
self,
|
||||
message: str = "Qobuz rate limit reached",
|
||||
*,
|
||||
hint: str | None = None,
|
||||
**kwargs: Any,
|
||||
) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="RATE_LIMITED",
|
||||
retryable=True,
|
||||
hint=hint or "Wait a bit and retry, or lower --concurrency",
|
||||
exit_code=5,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class PartialDownload(MuseaterError):
|
||||
def __init__(self, message: str, *, details: dict[str, Any] | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="PARTIAL",
|
||||
retryable=False,
|
||||
exit_code=6,
|
||||
details=details or {},
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class StorageError(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(message, code="STORAGE", hint=hint, exit_code=7, **kwargs)
|
||||
|
||||
|
||||
class CancelledError(MuseaterError):
|
||||
def __init__(self, message: str = "Download cancelled", **kwargs: Any) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="CANCELLED",
|
||||
retryable=True,
|
||||
exit_code=130,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class InputRequired(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="INPUT_REQUIRED",
|
||||
hint=hint or "Run the command in an interactive terminal or pass the missing value",
|
||||
exit_code=2,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class BundleError(MuseaterError):
|
||||
def __init__(self, message: str, *, hint: str | None = None, **kwargs: Any) -> None:
|
||||
super().__init__(
|
||||
message,
|
||||
code="BUNDLE_UNAVAILABLE",
|
||||
hint=hint or "Check network access to play.qobuz.com and retry",
|
||||
retryable=True,
|
||||
exit_code=5,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
class ProviderError(MuseaterError):
|
||||
def __init__(self, message: str, *, code: str = "PROVIDER", **kwargs: Any) -> None:
|
||||
super().__init__(message, code=code, exit_code=10, **kwargs)
|
||||
@@ -0,0 +1,318 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Lyrics provider routing and tag injection. Qobuz native parsing and LRCLIB
|
||||
# fallback are inspired by qobuz-dl-ultimate (GPL-3.0-only).
|
||||
"""Lyrics lookup, fuzzy matching, and embedding.
|
||||
|
||||
No interactive prompts: a candidate is accepted only when the fuzzy match is
|
||||
strong enough. This keeps downloads safe in parallel/agent contexts.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import difflib
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
from mutagen.flac import FLAC
|
||||
from mutagen.id3 import ID3, USLT, ID3NoHeaderError
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
LRCLIB_GET = "https://lrclib.net/api/get"
|
||||
LRCLIB_SEARCH = "https://lrclib.net/api/search"
|
||||
USER_AGENT = "museater/0.1 (https://github.com/museater)"
|
||||
DEFAULT_SOURCES = ("qobuz", "lrclib")
|
||||
MATCH_THRESHOLD = 0.75
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class LyricsResult:
|
||||
provider: str
|
||||
text: str
|
||||
synced: bool
|
||||
source_url: str | None = None
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return {
|
||||
"provider": self.provider,
|
||||
"synced": self.synced,
|
||||
"chars": len(self.text),
|
||||
"source_url": self.source_url,
|
||||
}
|
||||
|
||||
|
||||
@dataclass
|
||||
class LyricsOptions:
|
||||
sources: tuple[str, ...] = DEFAULT_SOURCES
|
||||
synced_only: bool = False
|
||||
save_lrc: bool = False
|
||||
overwrite: bool = False
|
||||
|
||||
|
||||
class LyricsService:
|
||||
def __init__(self, qobuz_client: Any | None = None, *, timeout: float = 15.0) -> None:
|
||||
self.qobuz_client = qobuz_client
|
||||
self.timeout = timeout
|
||||
|
||||
def find(
|
||||
self,
|
||||
*,
|
||||
artist: str,
|
||||
title: str,
|
||||
album: str | None = None,
|
||||
duration: int | None = None,
|
||||
track_id: str | None = None,
|
||||
options: LyricsOptions | None = None,
|
||||
) -> LyricsResult | None:
|
||||
options = options or LyricsOptions()
|
||||
for source in options.sources:
|
||||
if source == "qobuz" and self.qobuz_client and track_id:
|
||||
result = self._from_qobuz(str(track_id))
|
||||
if result and (result.synced or not options.synced_only):
|
||||
return result
|
||||
elif source == "lrclib":
|
||||
result = self._from_lrclib(
|
||||
artist=artist,
|
||||
title=title,
|
||||
album=album,
|
||||
duration=duration,
|
||||
synced_only=options.synced_only,
|
||||
)
|
||||
if result:
|
||||
return result
|
||||
return None
|
||||
|
||||
# -- Qobuz native ---------------------------------------------------
|
||||
|
||||
def _from_qobuz(self, track_id: str) -> LyricsResult | None:
|
||||
try:
|
||||
payload = self.qobuz_client.get_lyrics_url(track_id)
|
||||
url = payload.get("lyrics_url")
|
||||
if not url:
|
||||
return None
|
||||
response = requests.get(url, timeout=self.timeout)
|
||||
if response.status_code != 200:
|
||||
return None
|
||||
text, synced = parse_qobuz_lyrics(response.json())
|
||||
if not text:
|
||||
return None
|
||||
return LyricsResult("qobuz", text, synced, str(url))
|
||||
except Exception as exc: # noqa: BLE001 - lyrics must never fail a download
|
||||
logger.debug("Qobuz lyrics failed for %s: %s", track_id, exc)
|
||||
return None
|
||||
|
||||
# -- LRCLIB ---------------------------------------------------------
|
||||
|
||||
def _from_lrclib(
|
||||
self,
|
||||
*,
|
||||
artist: str,
|
||||
title: str,
|
||||
album: str | None,
|
||||
duration: int | None,
|
||||
synced_only: bool,
|
||||
) -> LyricsResult | None:
|
||||
for candidate_title in _title_variants(title):
|
||||
params = {"artist_name": artist, "track_name": candidate_title}
|
||||
if album:
|
||||
params["album_name"] = album
|
||||
if duration:
|
||||
params["duration"] = duration
|
||||
|
||||
response = self._request(LRCLIB_GET, params)
|
||||
if response is None:
|
||||
continue
|
||||
if response.status_code == 200:
|
||||
result = self._parse_lrclib(response.json(), synced_only, artist, title)
|
||||
if result:
|
||||
return result
|
||||
if response.status_code not in (200, 404):
|
||||
continue
|
||||
|
||||
# Fallback: search for a synced version, then validate duration/fuzzy.
|
||||
response = self._request(
|
||||
LRCLIB_SEARCH, {"artist_name": artist, "track_name": title}
|
||||
)
|
||||
if response is None or response.status_code != 200:
|
||||
return None
|
||||
try:
|
||||
results = response.json()
|
||||
except ValueError:
|
||||
return None
|
||||
if not isinstance(results, list):
|
||||
return None
|
||||
|
||||
candidates: list[tuple[int, LyricsResult]] = []
|
||||
for item in results:
|
||||
if not isinstance(item, dict):
|
||||
continue
|
||||
if synced_only and not item.get("syncedLyrics"):
|
||||
continue
|
||||
if not self._match(artist, title, item.get("artistName", ""), item.get("trackName", "")):
|
||||
continue
|
||||
if duration and item.get("duration"):
|
||||
diff = abs(int(duration) - int(item["duration"]))
|
||||
if diff > 3:
|
||||
continue
|
||||
else:
|
||||
diff = 0
|
||||
text = item.get("syncedLyrics") or item.get("plainLyrics")
|
||||
if not text:
|
||||
continue
|
||||
candidates.append(
|
||||
(
|
||||
diff,
|
||||
LyricsResult(
|
||||
"lrclib",
|
||||
str(text).strip(),
|
||||
bool(item.get("syncedLyrics")),
|
||||
"https://lrclib.net",
|
||||
),
|
||||
)
|
||||
)
|
||||
if not candidates:
|
||||
return None
|
||||
candidates.sort(key=lambda pair: pair[0])
|
||||
return candidates[0][1]
|
||||
|
||||
def _parse_lrclib(
|
||||
self,
|
||||
data: dict[str, Any],
|
||||
synced_only: bool,
|
||||
artist: str,
|
||||
title: str,
|
||||
) -> LyricsResult | None:
|
||||
got_artist = str(data.get("artistName") or "")
|
||||
got_title = str(data.get("trackName") or "")
|
||||
if got_artist and got_title and not self._match(
|
||||
artist, title, got_artist, got_title
|
||||
):
|
||||
return None
|
||||
synced = data.get("syncedLyrics")
|
||||
plain = data.get("plainLyrics")
|
||||
if synced:
|
||||
return LyricsResult("lrclib", str(synced).strip(), True, "https://lrclib.net")
|
||||
if plain and not synced_only:
|
||||
return LyricsResult("lrclib", str(plain).strip(), False, "https://lrclib.net")
|
||||
return None
|
||||
|
||||
def _request(self, url: str, params: dict[str, Any]) -> requests.Response | None:
|
||||
headers = {"User-Agent": USER_AGENT}
|
||||
for attempt in range(4):
|
||||
try:
|
||||
response = requests.get(
|
||||
url, params=params, headers=headers, timeout=self.timeout
|
||||
)
|
||||
except requests.RequestException as exc:
|
||||
logger.debug("LRCLIB request failed: %s", exc)
|
||||
time.sleep(min(2**attempt, 8))
|
||||
continue
|
||||
if response.status_code in (429, 503) and attempt < 3:
|
||||
retry_after = response.headers.get("Retry-After")
|
||||
try:
|
||||
wait = float(retry_after) if retry_after else min(2**attempt, 8)
|
||||
except ValueError:
|
||||
wait = min(2**attempt, 8)
|
||||
time.sleep(wait)
|
||||
continue
|
||||
return response
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def _match(req_artist: str, req_title: str, got_artist: str, got_title: str) -> bool:
|
||||
req_a = _normalize(req_artist)
|
||||
req_t = _normalize(req_title)
|
||||
got_a = _normalize(got_artist)
|
||||
got_t = _normalize(got_title)
|
||||
if not req_a or not req_t or not got_a or not got_t:
|
||||
return False
|
||||
artist_ratio = difflib.SequenceMatcher(None, req_a, got_a).ratio()
|
||||
title_ratio = difflib.SequenceMatcher(None, req_t, got_t).ratio()
|
||||
return (artist_ratio * 0.4 + title_ratio * 0.6) >= MATCH_THRESHOLD
|
||||
|
||||
|
||||
def parse_qobuz_lyrics(doc: dict[str, Any]) -> tuple[str, bool]:
|
||||
original = doc.get("original") if isinstance(doc.get("original"), dict) else doc
|
||||
lines = original.get("lines") if isinstance(original, dict) else None
|
||||
if not isinstance(lines, list):
|
||||
return "", False
|
||||
|
||||
output: list[str] = []
|
||||
synced = False
|
||||
for entry in lines:
|
||||
if not isinstance(entry, dict):
|
||||
continue
|
||||
text = str(entry.get("line") or "").strip()
|
||||
start = entry.get("start")
|
||||
if start is not None:
|
||||
synced = True
|
||||
output.append(f"{_timestamp(start)} {text}".rstrip())
|
||||
else:
|
||||
output.append(text)
|
||||
return "\n".join(output).strip(), synced
|
||||
|
||||
|
||||
def _timestamp(milliseconds: Any) -> str:
|
||||
try:
|
||||
total = float(milliseconds) / 1000.0
|
||||
except (TypeError, ValueError):
|
||||
return "[00:00.00]"
|
||||
minutes = int(total // 60)
|
||||
seconds = total % 60
|
||||
return f"[{minutes:02d}:{seconds:05.2f}]"
|
||||
|
||||
|
||||
def _normalize(value: str) -> str:
|
||||
value = value.lower().strip()
|
||||
value = re.sub(r"\s*[\(\[].*?[\)\]]\s*", " ", value)
|
||||
value = re.sub(r"[^\w\s]", " ", value)
|
||||
return re.sub(r"\s+", " ", value).strip()
|
||||
|
||||
|
||||
def _title_variants(title: str) -> list[str]:
|
||||
variants = [title.strip()]
|
||||
base = re.sub(r"\s*[\(\[].*?[\)\]]\s*$", "", title).strip()
|
||||
if base and base not in variants:
|
||||
variants.append(base)
|
||||
return variants
|
||||
|
||||
|
||||
def inject_lyrics(path: Path, result: LyricsResult, *, overwrite: bool = False) -> bool:
|
||||
suffix = path.suffix.lower()
|
||||
if suffix == ".flac":
|
||||
audio = FLAC(path)
|
||||
if not overwrite and any(
|
||||
audio.get(key) for key in ("LYRICS", "UNSYNCEDLYRICS", "SYNCEDLYRICS")
|
||||
):
|
||||
return False
|
||||
audio["LYRICS"] = result.text
|
||||
if result.synced:
|
||||
audio["SYNCEDLYRICS"] = result.text
|
||||
else:
|
||||
audio["UNSYNCEDLYRICS"] = result.text
|
||||
audio.save()
|
||||
return True
|
||||
|
||||
if suffix == ".mp3":
|
||||
try:
|
||||
tags = ID3(path)
|
||||
except ID3NoHeaderError:
|
||||
tags = ID3()
|
||||
if not overwrite and tags.getall("USLT"):
|
||||
return False
|
||||
tags.delall("USLT")
|
||||
tags.add(USLT(encoding=3, lang="eng", desc="", text=result.text))
|
||||
tags.save(path)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def write_lrc(path: Path, result: LyricsResult) -> Path:
|
||||
lrc_path = path.with_suffix(".lrc")
|
||||
lrc_path.write_text(result.text + "\n", encoding="utf-8")
|
||||
return lrc_path
|
||||
@@ -0,0 +1,118 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Human and machine output.
|
||||
|
||||
Machine contract: one JSON object on stdout, nothing else. Human-facing
|
||||
messages and progress go to stderr. This keeps `museater --json ... | jq`
|
||||
safe even when a download is noisy.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import sys
|
||||
from collections.abc import Iterable, Sequence
|
||||
from typing import Any
|
||||
|
||||
from rich.console import Console
|
||||
from rich.table import Table
|
||||
|
||||
from museater.errors import MuseaterError
|
||||
|
||||
SCHEMA_VERSION = "1"
|
||||
|
||||
stderr_console = Console(stderr=True, highlight=False)
|
||||
stdout_console = Console(highlight=False)
|
||||
|
||||
|
||||
def is_tty() -> bool:
|
||||
return sys.stdout.isatty()
|
||||
|
||||
|
||||
def emit_success(
|
||||
command: str,
|
||||
data: Any,
|
||||
*,
|
||||
json_mode: bool,
|
||||
warnings: Sequence[str] | None = None,
|
||||
) -> None:
|
||||
if json_mode:
|
||||
payload = {
|
||||
"schema_version": SCHEMA_VERSION,
|
||||
"ok": True,
|
||||
"command": command,
|
||||
"data": data,
|
||||
"warnings": list(warnings or []),
|
||||
"error": None,
|
||||
}
|
||||
sys.stdout.write(json.dumps(payload, ensure_ascii=False, separators=(",", ":")) + "\n")
|
||||
sys.stdout.flush()
|
||||
return
|
||||
|
||||
# Human renderers are command-specific and print their own tables/text.
|
||||
# Avoid dumping a second JSON blob before them.
|
||||
if isinstance(data, str):
|
||||
stdout_console.print(data)
|
||||
|
||||
|
||||
def emit_error(
|
||||
error: MuseaterError,
|
||||
command: str,
|
||||
*,
|
||||
json_mode: bool,
|
||||
warnings: Sequence[str] | None = None,
|
||||
data: Any = None,
|
||||
) -> None:
|
||||
if json_mode:
|
||||
payload = {
|
||||
"schema_version": SCHEMA_VERSION,
|
||||
"ok": False,
|
||||
"command": command,
|
||||
"data": data,
|
||||
"warnings": list(warnings or []),
|
||||
"error": error.to_dict(),
|
||||
}
|
||||
sys.stdout.write(json.dumps(payload, ensure_ascii=False, separators=(",", ":")) + "\n")
|
||||
sys.stdout.flush()
|
||||
return
|
||||
|
||||
stderr_console.print(f"[red]error[/red] [{error.code}] {error.message}")
|
||||
if error.hint:
|
||||
stderr_console.print(f"[yellow]hint[/yellow] {error.hint}")
|
||||
|
||||
|
||||
def info(message: str, *, quiet: bool = False) -> None:
|
||||
if not quiet:
|
||||
stderr_console.print(message, soft_wrap=True)
|
||||
|
||||
|
||||
def warn(message: str, *, quiet: bool = False) -> None:
|
||||
if not quiet:
|
||||
stderr_console.print(f"[yellow]warning[/yellow] {message}", soft_wrap=True)
|
||||
|
||||
|
||||
def table(rows: Iterable[dict[str, Any]], columns: Sequence[str], *, title: str | None = None) -> None:
|
||||
table_obj = Table(title=title, show_header=True, header_style="bold")
|
||||
for column in columns:
|
||||
table_obj.add_column(column)
|
||||
for row in rows:
|
||||
table_obj.add_row(*[_format_cell(row.get(column)) for column in columns])
|
||||
stdout_console.print(table_obj)
|
||||
|
||||
|
||||
def _format_cell(value: Any) -> str:
|
||||
if value is None:
|
||||
return ""
|
||||
if isinstance(value, bool):
|
||||
return "yes" if value else "no"
|
||||
return str(value)
|
||||
|
||||
|
||||
def error_payload(error: MuseaterError, command: str) -> dict[str, Any]:
|
||||
return {
|
||||
"schema_version": SCHEMA_VERSION,
|
||||
"ok": False,
|
||||
"command": command,
|
||||
"data": None,
|
||||
"warnings": [],
|
||||
"error": error.to_dict(),
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""XDG-aware paths and directory helpers."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from platformdirs import user_cache_dir, user_config_dir, user_data_dir
|
||||
|
||||
APP_NAME = "museater"
|
||||
|
||||
|
||||
def _env_path(name: str) -> Path | None:
|
||||
value = os.environ.get(name)
|
||||
return Path(value).expanduser() if value else None
|
||||
|
||||
|
||||
def config_dir() -> Path:
|
||||
return _env_path("MUSEATER_CONFIG_DIR") or Path(user_config_dir(APP_NAME))
|
||||
|
||||
|
||||
def data_dir() -> Path:
|
||||
return _env_path("MUSEATER_DATA_DIR") or Path(user_data_dir(APP_NAME))
|
||||
|
||||
|
||||
def cache_dir() -> Path:
|
||||
return _env_path("MUSEATER_CACHE_DIR") or Path(user_cache_dir(APP_NAME))
|
||||
|
||||
|
||||
def default_config_path() -> Path:
|
||||
return _env_path("MUSEATER_CONFIG") or config_dir() / "config.toml"
|
||||
|
||||
|
||||
def credentials_path() -> Path:
|
||||
return config_dir() / "credentials.json"
|
||||
|
||||
|
||||
def database_path() -> Path:
|
||||
return data_dir() / "museater.db"
|
||||
|
||||
|
||||
def bundle_cache_path() -> Path:
|
||||
return cache_dir() / "qobuz_bundle.json"
|
||||
|
||||
|
||||
def default_output_dir() -> Path:
|
||||
return _env_path("MUSEATER_OUTPUT_DIR") or Path.home() / "Music" / "Museater"
|
||||
|
||||
|
||||
def ensure_dir(path: Path) -> Path:
|
||||
path = path.expanduser()
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
return path
|
||||
@@ -0,0 +1,191 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Progress reporting for humans and agents.
|
||||
|
||||
Modes:
|
||||
- `off`: nothing.
|
||||
- `text`: short start/finish lines on stderr.
|
||||
- `ndjson`: one JSON event per line on stderr; stdout stays clean for the
|
||||
final result.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
from typing import Any, TextIO
|
||||
|
||||
PROGRESS_MODES = ("auto", "text", "ndjson", "off")
|
||||
|
||||
|
||||
class Progress:
|
||||
def __init__(self, mode: str = "off", *, stream: TextIO | None = None) -> None:
|
||||
self.mode = mode
|
||||
self.stream = stream or sys.stderr
|
||||
self._lock = threading.Lock()
|
||||
self._state_lock = threading.Lock()
|
||||
self._last_emit: dict[str, float] = {}
|
||||
self._closed = False
|
||||
|
||||
@classmethod
|
||||
def from_mode(
|
||||
cls,
|
||||
mode: str = "auto",
|
||||
*,
|
||||
json_mode: bool = False,
|
||||
quiet: bool = False,
|
||||
stream: TextIO | None = None,
|
||||
) -> Progress:
|
||||
if quiet:
|
||||
return cls("off", stream=stream)
|
||||
if mode == "auto":
|
||||
if json_mode:
|
||||
mode = "ndjson"
|
||||
elif (stream or sys.stderr).isatty():
|
||||
mode = "text"
|
||||
else:
|
||||
mode = "off"
|
||||
if mode not in PROGRESS_MODES:
|
||||
mode = "off"
|
||||
return cls(mode, stream=stream)
|
||||
|
||||
# -- events --------------------------------------------------------
|
||||
|
||||
def album_start(self, title: str, tracks: int, output_dir: str) -> None:
|
||||
self._closed = False
|
||||
self._emit(
|
||||
{
|
||||
"event": "album_start",
|
||||
"title": title,
|
||||
"tracks": tracks,
|
||||
"output_dir": output_dir,
|
||||
}
|
||||
)
|
||||
self._text(f"↓ {title} ({tracks} tracks)")
|
||||
|
||||
def track_start(self, index: int, total: int, track_id: str, title: str) -> None:
|
||||
self._emit(
|
||||
{
|
||||
"event": "track_start",
|
||||
"index": index,
|
||||
"total": total,
|
||||
"track_id": track_id,
|
||||
"title": title,
|
||||
}
|
||||
)
|
||||
self._text(f" ↓ [{index}/{total}] {title}")
|
||||
|
||||
def track_progress(
|
||||
self, track_id: str, downloaded: int, total: int | None = None
|
||||
) -> None:
|
||||
if self.mode != "ndjson":
|
||||
return
|
||||
now = time.monotonic()
|
||||
with self._state_lock:
|
||||
last = self._last_emit.get(track_id, 0.0)
|
||||
if now - last < 0.5 and downloaded > 0:
|
||||
return
|
||||
self._last_emit[track_id] = now
|
||||
self._emit(
|
||||
{
|
||||
"event": "track_progress",
|
||||
"track_id": track_id,
|
||||
"bytes": downloaded,
|
||||
"total": total,
|
||||
}
|
||||
)
|
||||
|
||||
def track_done(
|
||||
self,
|
||||
index: int,
|
||||
total: int,
|
||||
track_id: str,
|
||||
title: str,
|
||||
status: str,
|
||||
*,
|
||||
path: str | None = None,
|
||||
bytes_total: int | None = None,
|
||||
error: dict[str, Any] | None = None,
|
||||
) -> None:
|
||||
payload: dict[str, Any] = {
|
||||
"event": "track_done",
|
||||
"index": index,
|
||||
"total": total,
|
||||
"track_id": track_id,
|
||||
"title": title,
|
||||
"status": status,
|
||||
}
|
||||
if path:
|
||||
payload["path"] = path
|
||||
if bytes_total is not None:
|
||||
payload["bytes"] = bytes_total
|
||||
if error:
|
||||
payload["error"] = error
|
||||
self._emit(payload)
|
||||
marker = {
|
||||
"downloaded": "✓",
|
||||
"skipped_exists": "=",
|
||||
"skipped_db": "=",
|
||||
"failed": "✗",
|
||||
}.get(status, "·")
|
||||
suffix = f" ({human_bytes(bytes_total)})" if bytes_total else ""
|
||||
self._text(f" {marker} [{index}/{total}] {title}{suffix}")
|
||||
with self._state_lock:
|
||||
self._last_emit.pop(track_id, None)
|
||||
|
||||
def album_done(
|
||||
self,
|
||||
status: str,
|
||||
downloaded: int,
|
||||
skipped: int,
|
||||
failed: int,
|
||||
*,
|
||||
cancelled: int = 0,
|
||||
) -> None:
|
||||
self._emit(
|
||||
{
|
||||
"event": "album_done",
|
||||
"status": status,
|
||||
"downloaded": downloaded,
|
||||
"skipped": skipped,
|
||||
"failed": failed,
|
||||
"cancelled": cancelled,
|
||||
}
|
||||
)
|
||||
self._text(
|
||||
f" {status}: downloaded={downloaded} skipped={skipped} "
|
||||
f"failed={failed} cancelled={cancelled}"
|
||||
)
|
||||
self.close()
|
||||
|
||||
def close(self) -> None:
|
||||
self._closed = True
|
||||
|
||||
# -- internals -----------------------------------------------------
|
||||
|
||||
def _emit(self, payload: dict[str, Any]) -> None:
|
||||
if self.mode != "ndjson" or self._closed:
|
||||
return
|
||||
line = json.dumps(payload, ensure_ascii=False, separators=(",", ":")) + "\n"
|
||||
with self._lock:
|
||||
self.stream.write(line)
|
||||
self.stream.flush()
|
||||
|
||||
def _text(self, message: str) -> None:
|
||||
if self.mode != "text" or self._closed:
|
||||
return
|
||||
with self._lock:
|
||||
self.stream.write(message + "\n")
|
||||
self.stream.flush()
|
||||
|
||||
|
||||
def human_bytes(value: int | None) -> str:
|
||||
if value is None:
|
||||
return "?"
|
||||
size = float(value)
|
||||
for unit in ("B", "KB", "MB", "GB", "TB"):
|
||||
if size < 1024 or unit == "TB":
|
||||
return f"{size:.1f} {unit}" if unit != "B" else f"{int(size)} B"
|
||||
size /= 1024
|
||||
return f"{size:.1f} TB"
|
||||
@@ -0,0 +1,2 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Music providers."""
|
||||
@@ -0,0 +1,41 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Qobuz provider."""
|
||||
|
||||
from museater.providers.qobuz.auth import (
|
||||
OAuthFlow,
|
||||
OAuthResult,
|
||||
TokenStore,
|
||||
resolve_client,
|
||||
validate_token,
|
||||
)
|
||||
from museater.providers.qobuz.bundle import BundleProvider, QobuzBundle
|
||||
from museater.providers.qobuz.client import QobuzClient
|
||||
from museater.providers.qobuz.models import (
|
||||
Account,
|
||||
ArtistInfo,
|
||||
ArtistRef,
|
||||
LabelInfo,
|
||||
PlaylistInfo,
|
||||
ReleaseInfo,
|
||||
SearchItem,
|
||||
TrackInfo,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"Account",
|
||||
"ArtistInfo",
|
||||
"ArtistRef",
|
||||
"BundleProvider",
|
||||
"LabelInfo",
|
||||
"PlaylistInfo",
|
||||
"OAuthFlow",
|
||||
"OAuthResult",
|
||||
"QobuzBundle",
|
||||
"QobuzClient",
|
||||
"ReleaseInfo",
|
||||
"SearchItem",
|
||||
"TokenStore",
|
||||
"TrackInfo",
|
||||
"resolve_client",
|
||||
"validate_token",
|
||||
]
|
||||
@@ -0,0 +1,334 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Derived from qobuz-dl-ultimate (https://github.com/Sei969/qobuz-dl) and the
|
||||
# OAuth work in paulborile/qobuz-dl (branch bug/newauth, GPL-3.0-only).
|
||||
# Modified by museater contributors, 2026: token store, headless flow, typed errors.
|
||||
"""Qobuz authentication.
|
||||
|
||||
Two supported flows:
|
||||
|
||||
* browser OAuth: open the Qobuz sign-in URL with a localhost callback, exchange
|
||||
the returned code via `/oauth/callback` using the bundle's `private_key`;
|
||||
* manual token: paste `localStorage.localuser.token` from play.qobuz.com.
|
||||
|
||||
Tokens are resolved from the environment, the OS keyring, or a 0600 file.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import socket
|
||||
import threading
|
||||
import time
|
||||
import webbrowser
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
from pathlib import Path
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
|
||||
import requests
|
||||
|
||||
from museater.errors import AuthExpired, AuthInvalid, AuthRequired, InputRequired, ProviderError
|
||||
from museater.paths import credentials_path
|
||||
from museater.providers.qobuz.bundle import QobuzBundle
|
||||
from museater.providers.qobuz.client import BASE_URL, QobuzClient
|
||||
from museater.providers.qobuz.models import Account
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
ENV_TOKEN = "MUSEATER_QOBUZ_TOKEN"
|
||||
KEYRING_SERVICE = "museater"
|
||||
KEYRING_USER = "qobuz"
|
||||
OAUTH_BASE = "https://www.qobuz.com/signin/oauth"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class StoredToken:
|
||||
token: str
|
||||
source: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class OAuthResult:
|
||||
token: str
|
||||
account: Account
|
||||
|
||||
|
||||
class TokenStore:
|
||||
def __init__(self, path: Path | None = None, *, no_keyring: bool = False) -> None:
|
||||
self.path = path or credentials_path()
|
||||
self.no_keyring = no_keyring
|
||||
|
||||
def load(self) -> StoredToken | None:
|
||||
env_token = os.environ.get(ENV_TOKEN)
|
||||
if env_token and env_token.strip():
|
||||
return StoredToken(env_token.strip(), "env")
|
||||
|
||||
if not self.no_keyring:
|
||||
token = self._keyring_get()
|
||||
if token:
|
||||
return StoredToken(token, "keyring")
|
||||
|
||||
token = self._file_get()
|
||||
if token:
|
||||
return StoredToken(token, "file")
|
||||
return None
|
||||
|
||||
def save(self, token: str) -> str:
|
||||
token = token.strip()
|
||||
if not token:
|
||||
raise AuthInvalid("Empty Qobuz token")
|
||||
|
||||
if not self.no_keyring and self._keyring_set(token):
|
||||
# Do not leave an old copy in the file if the keyring works.
|
||||
self._file_delete_token()
|
||||
return "keyring"
|
||||
|
||||
self._file_set(token)
|
||||
return "file"
|
||||
|
||||
def clear(self) -> None:
|
||||
if not self.no_keyring:
|
||||
self._keyring_delete()
|
||||
self._file_delete_token()
|
||||
|
||||
# -- keyring -------------------------------------------------------
|
||||
|
||||
def _keyring_get(self) -> str | None:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
return keyring.get_password(KEYRING_SERVICE, KEYRING_USER)
|
||||
except Exception as exc: # keyring backends fail in many headless setups
|
||||
logger.debug("Keyring read failed: %s", exc)
|
||||
return None
|
||||
|
||||
def _keyring_set(self, token: str) -> bool:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
keyring.set_password(KEYRING_SERVICE, KEYRING_USER, token)
|
||||
return True
|
||||
except Exception as exc:
|
||||
logger.debug("Keyring write failed: %s", exc)
|
||||
return False
|
||||
|
||||
def _keyring_delete(self) -> None:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
keyring.delete_password(KEYRING_SERVICE, KEYRING_USER)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# -- file ----------------------------------------------------------
|
||||
|
||||
def _read_file(self) -> dict:
|
||||
try:
|
||||
with self.path.open("r", encoding="utf-8") as fh:
|
||||
data = json.load(fh)
|
||||
return data if isinstance(data, dict) else {}
|
||||
except (OSError, ValueError):
|
||||
return {}
|
||||
|
||||
def _file_get(self) -> str | None:
|
||||
data = self._read_file()
|
||||
token = (data.get("qobuz") or {}).get("token")
|
||||
return str(token).strip() if token else None
|
||||
|
||||
def _file_set(self, token: str) -> None:
|
||||
self.path.parent.mkdir(parents=True, exist_ok=True)
|
||||
data = self._read_file()
|
||||
qobuz = data.get("qobuz") if isinstance(data.get("qobuz"), dict) else {}
|
||||
qobuz["token"] = token
|
||||
data["qobuz"] = qobuz
|
||||
tmp = self.path.with_suffix(".tmp")
|
||||
tmp.write_text(json.dumps(data, ensure_ascii=False), encoding="utf-8")
|
||||
os.chmod(tmp, 0o600)
|
||||
tmp.replace(self.path)
|
||||
|
||||
def _file_delete_token(self) -> None:
|
||||
data = self._read_file()
|
||||
qobuz = data.get("qobuz")
|
||||
if not isinstance(qobuz, dict) or "token" not in qobuz:
|
||||
return
|
||||
qobuz.pop("token", None)
|
||||
data["qobuz"] = qobuz
|
||||
try:
|
||||
self.path.write_text(json.dumps(data, ensure_ascii=False), encoding="utf-8")
|
||||
os.chmod(self.path, 0o600)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
def resolve_client(
|
||||
bundle: QobuzBundle,
|
||||
*,
|
||||
token: str | None = None,
|
||||
no_keyring: bool = False,
|
||||
language: str = "en",
|
||||
) -> tuple[QobuzClient, str]:
|
||||
stored = StoredToken(token, "argument") if token else TokenStore(no_keyring=no_keyring).load()
|
||||
if not stored:
|
||||
raise AuthRequired(
|
||||
"No Qobuz token found",
|
||||
hint="Run: museater qobuz auth (or set MUSEATER_QOBUZ_TOKEN)",
|
||||
)
|
||||
client = QobuzClient(bundle, stored.token, language=language)
|
||||
return client, stored.source
|
||||
|
||||
|
||||
def validate_token(bundle: QobuzBundle, token: str, *, language: str = "en") -> Account:
|
||||
client = QobuzClient(bundle, token, language=language)
|
||||
return client.get_user()
|
||||
|
||||
|
||||
def oauth_url(bundle: QobuzBundle, port: int) -> str:
|
||||
return f"{OAUTH_BASE}?ext_app_id={bundle.app_id}&redirect_url=http://localhost:{port}"
|
||||
|
||||
|
||||
class OAuthFlow:
|
||||
def __init__(self, bundle: QobuzBundle, *, timeout: float = 300.0) -> None:
|
||||
self.bundle = bundle
|
||||
self.timeout = timeout
|
||||
|
||||
def browser_flow(
|
||||
self,
|
||||
*,
|
||||
on_url: Callable[[str], None] | None = None,
|
||||
open_browser: bool = True,
|
||||
) -> OAuthResult:
|
||||
port = _free_port()
|
||||
url = oauth_url(self.bundle, port)
|
||||
if on_url:
|
||||
on_url(url)
|
||||
if open_browser:
|
||||
with contextlib.suppress(Exception):
|
||||
webbrowser.open(url)
|
||||
|
||||
code = self._wait_for_callback(port)
|
||||
return self.exchange_code(code)
|
||||
|
||||
def _wait_for_callback(self, port: int) -> str:
|
||||
result: dict[str, str | None] = {"code": None}
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
def do_GET(self) -> None: # noqa: N802
|
||||
parsed = urlparse(self.path)
|
||||
params = parse_qs(parsed.query)
|
||||
code = params.get("code", params.get("code_autorisation", [None]))[0]
|
||||
result["code"] = code
|
||||
self.send_response(200 if code else 400)
|
||||
self.send_header("Content-Type", "text/html; charset=utf-8")
|
||||
self.end_headers()
|
||||
if code:
|
||||
body = (
|
||||
"<html><body style='font-family:system-ui;text-align:center;padding:60px'>"
|
||||
"<h2>Login successful</h2>"
|
||||
"<p>You can close this tab and return to the terminal.</p>"
|
||||
"</body></html>"
|
||||
)
|
||||
else:
|
||||
body = "<html><body><h2>Login failed</h2></body></html>"
|
||||
self.wfile.write(body.encode("utf-8"))
|
||||
|
||||
def log_message(self, format: str, *args: object) -> None: # noqa: A002
|
||||
return
|
||||
|
||||
server = HTTPServer(("127.0.0.1", port), Handler)
|
||||
|
||||
def serve() -> None:
|
||||
deadline = time.time() + self.timeout
|
||||
while not result["code"] and time.time() < deadline:
|
||||
server.timeout = max(0.1, deadline - time.time())
|
||||
server.handle_request()
|
||||
|
||||
thread = threading.Thread(target=serve, daemon=True)
|
||||
thread.start()
|
||||
thread.join(self.timeout + 5)
|
||||
server.server_close()
|
||||
|
||||
code = result["code"]
|
||||
if not code:
|
||||
raise AuthInvalid(
|
||||
"OAuth callback did not return a code",
|
||||
hint="Try `museater qobuz auth --print-url` and exchange the redirect URL with --code",
|
||||
)
|
||||
return code
|
||||
|
||||
def exchange_code(self, code_or_url: str) -> OAuthResult:
|
||||
if not self.bundle.private_key:
|
||||
raise AuthInvalid(
|
||||
"Qobuz OAuth private key not found in the web bundle",
|
||||
hint="Use the manual token flow: museater qobuz auth --token '<token>'",
|
||||
)
|
||||
|
||||
code = extract_code(code_or_url)
|
||||
if not code:
|
||||
raise InputRequired("No OAuth code found in the provided value")
|
||||
|
||||
url = f"{BASE_URL}oauth/callback"
|
||||
params = {"code": code, "private_key": self.bundle.private_key}
|
||||
headers = {"X-App-Id": self.bundle.app_id, "Accept": "application/json"}
|
||||
try:
|
||||
response = requests.get(url, params=params, headers=headers, timeout=30)
|
||||
except requests.RequestException as exc:
|
||||
raise AuthInvalid(f"OAuth exchange failed: {exc}") from exc
|
||||
|
||||
if response.status_code != 200:
|
||||
raise AuthInvalid(
|
||||
f"OAuth exchange failed with HTTP {response.status_code}",
|
||||
details={"body": response.text[:300]},
|
||||
)
|
||||
try:
|
||||
data = response.json()
|
||||
except ValueError as exc:
|
||||
raise AuthInvalid("OAuth exchange returned invalid JSON") from exc
|
||||
|
||||
# Qobuz currently returns {"token": ..., "user_id": ...} from
|
||||
# oauth/callback; older builds returned "user_auth_token". Accept both.
|
||||
preliminary = data.get("user_auth_token") or data.get("token")
|
||||
if not preliminary:
|
||||
raise AuthInvalid(
|
||||
"OAuth exchange did not return a token",
|
||||
details={"response_keys": sorted(str(key) for key in data)},
|
||||
)
|
||||
|
||||
# The callback token is preliminary. The web player immediately calls
|
||||
# user/login with extra=partner, which returns the long-lived
|
||||
# user_auth_token and the account profile.
|
||||
client = QobuzClient(self.bundle, str(preliminary))
|
||||
try:
|
||||
login_data = client.login_with_token()
|
||||
except (AuthExpired, AuthInvalid, ProviderError) as exc:
|
||||
raise AuthInvalid(
|
||||
"Qobuz rejected the OAuth token during user/login",
|
||||
details={
|
||||
"response_keys": sorted(str(key) for key in data),
|
||||
"login_error": exc.message,
|
||||
},
|
||||
) from exc
|
||||
|
||||
token = login_data.get("user_auth_token") or preliminary
|
||||
account = Account.from_api(login_data.get("user") or login_data or data)
|
||||
return OAuthResult(str(token), account)
|
||||
|
||||
|
||||
def extract_code(value: str) -> str:
|
||||
value = value.strip()
|
||||
if not value:
|
||||
return ""
|
||||
if "code=" in value or "code_autorisation=" in value:
|
||||
parsed = urlparse(value)
|
||||
params = parse_qs(parsed.query)
|
||||
return params.get("code", params.get("code_autorisation", [""]))[0]
|
||||
return value
|
||||
|
||||
|
||||
def _free_port() -> int:
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
return int(sock.getsockname()[1])
|
||||
@@ -0,0 +1,203 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Derived from qobuz-dl-ultimate (https://github.com/Sei969/qobuz-dl)
|
||||
# and Spoofbuz (https://github.com/DashLt/Spoofbuz, Unlicense).
|
||||
# Modified by museater contributors, 2026: typed bundle model, cache, and errors.
|
||||
"""Fetch the Qobuz web-player bundle.
|
||||
|
||||
Qobuz's public API needs an `app_id` and a set of `app_secret` values for
|
||||
signed endpoints. Both are embedded in the web player's JavaScript bundle and
|
||||
rotate from time to time, so we scrape them at runtime and cache the result.
|
||||
The OAuth `private_key` is in the same bundle.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
from collections import OrderedDict
|
||||
from dataclasses import asdict, dataclass
|
||||
from pathlib import Path
|
||||
|
||||
import requests
|
||||
|
||||
from museater.errors import BundleError
|
||||
from museater.paths import bundle_cache_path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
BASE_URL = "https://play.qobuz.com"
|
||||
LOGIN_URL = f"{BASE_URL}/login"
|
||||
DEFAULT_APP_ID = "798273057"
|
||||
CACHE_TTL_SECONDS = 12 * 60 * 60
|
||||
|
||||
_BUNDLE_URL_RE = re.compile(
|
||||
r'<script src="(?P<path>/resources/\d+\.\d+\.\d+-[a-z]\d{3}/bundle\.js)"></script>'
|
||||
)
|
||||
_FALLBACK_BUNDLE_URL_RE = re.compile(r'src="(?P<path>/resources/[^"]+bundle\.js)"')
|
||||
_APP_ID_RE = re.compile(
|
||||
r'production:{api:{appId:"(?P<app_id>\d{9})",appSecret:"\w{32}"'
|
||||
)
|
||||
_PRIVATE_KEY_RE = re.compile(r'privateKey:\s*"(?P<key>[A-Za-z0-9]{6,30})"')
|
||||
_SEED_TIMEZONE_RE = re.compile(
|
||||
r'[a-z]\.initialSeed\("(?P<seed>[\w=]+)",window\.utimezone\.(?P<timezone>[a-z]+)\)'
|
||||
)
|
||||
_INFO_EXTRAS_TEMPLATE = (
|
||||
r'name:"\w+/(?P<timezone>{timezones})",info:"(?P<info>[\w=]+)",extras:"(?P<extras>[\w=]+)"'
|
||||
)
|
||||
|
||||
_HEADERS = {
|
||||
"User-Agent": (
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
||||
"(KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
|
||||
),
|
||||
"Accept-Language": "en-US,en;q=0.9",
|
||||
}
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class QobuzBundle:
|
||||
app_id: str
|
||||
secrets: tuple[str, ...]
|
||||
private_key: str | None
|
||||
fetched_at: float
|
||||
|
||||
def to_dict(self) -> dict[str, object]:
|
||||
return asdict(self)
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, data: dict[str, object]) -> QobuzBundle:
|
||||
return cls(
|
||||
app_id=str(data["app_id"]),
|
||||
secrets=tuple(str(item) for item in data.get("secrets", [])),
|
||||
private_key=str(data["private_key"]) if data.get("private_key") else None,
|
||||
fetched_at=float(data.get("fetched_at", 0)),
|
||||
)
|
||||
|
||||
|
||||
class BundleProvider:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
session: requests.Session | None = None,
|
||||
cache_path: Path | None = None,
|
||||
timeout: float = 20.0,
|
||||
ttl: int = CACHE_TTL_SECONDS,
|
||||
) -> None:
|
||||
self.session = session or requests.Session()
|
||||
self.session.headers.update(_HEADERS)
|
||||
self.cache_path = cache_path or bundle_cache_path()
|
||||
self.timeout = timeout
|
||||
self.ttl = ttl
|
||||
|
||||
def get(self, *, force: bool = False) -> QobuzBundle:
|
||||
cached = self._read_cache()
|
||||
if cached and not force and time.time() - cached.fetched_at < self.ttl:
|
||||
return cached
|
||||
|
||||
try:
|
||||
bundle = self._fetch()
|
||||
except BundleError:
|
||||
if cached:
|
||||
logger.warning("Qobuz bundle refresh failed; using cached values")
|
||||
return cached
|
||||
raise
|
||||
|
||||
self._write_cache(bundle)
|
||||
return bundle
|
||||
|
||||
def _fetch(self) -> QobuzBundle:
|
||||
try:
|
||||
response = self.session.get(LOGIN_URL, timeout=self.timeout)
|
||||
response.raise_for_status()
|
||||
except requests.RequestException as exc:
|
||||
raise BundleError(f"Cannot reach Qobuz web player: {exc}") from exc
|
||||
|
||||
match = _BUNDLE_URL_RE.search(response.text) or _FALLBACK_BUNDLE_URL_RE.search(
|
||||
response.text
|
||||
)
|
||||
if not match:
|
||||
raise BundleError("Qobuz bundle URL not found on the login page")
|
||||
|
||||
bundle_url = BASE_URL + match.group("path")
|
||||
try:
|
||||
bundle_response = self.session.get(bundle_url, timeout=self.timeout)
|
||||
bundle_response.raise_for_status()
|
||||
except requests.RequestException as exc:
|
||||
raise BundleError(f"Cannot download Qobuz bundle: {exc}") from exc
|
||||
|
||||
bundle_js = bundle_response.text
|
||||
app_id_match = _APP_ID_RE.search(bundle_js)
|
||||
app_id = app_id_match.group("app_id") if app_id_match else DEFAULT_APP_ID
|
||||
|
||||
secrets = _parse_secrets(bundle_js)
|
||||
if not secrets:
|
||||
raise BundleError("No Qobuz app secrets found in the bundle")
|
||||
|
||||
private_key_match = _PRIVATE_KEY_RE.search(bundle_js)
|
||||
private_key = private_key_match.group("key") if private_key_match else None
|
||||
|
||||
logger.debug("Fetched Qobuz bundle: app_id=%s secrets=%d", app_id, len(secrets))
|
||||
return QobuzBundle(
|
||||
app_id=app_id,
|
||||
secrets=tuple(secrets),
|
||||
private_key=private_key,
|
||||
fetched_at=time.time(),
|
||||
)
|
||||
|
||||
def _read_cache(self) -> QobuzBundle | None:
|
||||
try:
|
||||
with self.cache_path.open("r", encoding="utf-8") as fh:
|
||||
data = json.load(fh)
|
||||
return QobuzBundle.from_dict(data)
|
||||
except (OSError, ValueError, KeyError, TypeError):
|
||||
return None
|
||||
|
||||
def _write_cache(self, bundle: QobuzBundle) -> None:
|
||||
try:
|
||||
self.cache_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
tmp = self.cache_path.with_suffix(".tmp")
|
||||
tmp.write_text(json.dumps(bundle.to_dict()), encoding="utf-8")
|
||||
os.chmod(tmp, 0o600)
|
||||
tmp.replace(self.cache_path)
|
||||
except OSError as exc:
|
||||
logger.warning("Cannot write Qobuz bundle cache: %s", exc)
|
||||
|
||||
|
||||
def _parse_secrets(bundle_js: str) -> list[str]:
|
||||
seeds: OrderedDict[str, list[str]] = OrderedDict()
|
||||
for match in _SEED_TIMEZONE_RE.finditer(bundle_js):
|
||||
seeds[match.group("timezone")] = [match.group("seed")]
|
||||
|
||||
if not seeds:
|
||||
return []
|
||||
|
||||
# Qobuz's bundle expects the second timezone first in the concatenation.
|
||||
pairs = list(seeds.items())
|
||||
if len(pairs) > 1:
|
||||
seeds.move_to_end(pairs[1][0], last=False)
|
||||
|
||||
info_re = re.compile(
|
||||
_INFO_EXTRAS_TEMPLATE.format(
|
||||
timezones="|".join(timezone.capitalize() for timezone in seeds)
|
||||
)
|
||||
)
|
||||
for match in info_re.finditer(bundle_js):
|
||||
timezone = match.group("timezone").lower()
|
||||
if timezone in seeds:
|
||||
seeds[timezone] += [match.group("info"), match.group("extras")]
|
||||
|
||||
secrets: list[str] = []
|
||||
for parts in seeds.values():
|
||||
if len(parts) < 3:
|
||||
continue
|
||||
try:
|
||||
secret = base64.standard_b64decode("".join(parts)[:-44]).decode("utf-8")
|
||||
except (ValueError, UnicodeDecodeError):
|
||||
continue
|
||||
if secret:
|
||||
secrets.append(secret)
|
||||
return secrets
|
||||
@@ -0,0 +1,520 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Derived from qobuz-dl-ultimate (https://github.com/Sei969/qobuz-dl).
|
||||
# Modified by museater contributors, 2026: typed errors, retries, no global state.
|
||||
"""Minimal Qobuz API client used by the CLI and the Python library."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import logging
|
||||
import random
|
||||
import threading
|
||||
import time
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
from museater.errors import (
|
||||
AuthExpired,
|
||||
AuthInvalid,
|
||||
GeoBlocked,
|
||||
MuseaterError,
|
||||
NetworkError,
|
||||
NotFound,
|
||||
ProviderError,
|
||||
RateLimited,
|
||||
)
|
||||
from museater.providers.qobuz.bundle import QobuzBundle
|
||||
from museater.providers.qobuz.crypto import derive_session_key, unwrap_track_key
|
||||
from museater.providers.qobuz.models import (
|
||||
Account,
|
||||
ArtistInfo,
|
||||
LabelInfo,
|
||||
PlaylistInfo,
|
||||
ReleaseInfo,
|
||||
SearchItem,
|
||||
TrackInfo,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
BASE_URL = "https://www.qobuz.com/api.json/0.2/"
|
||||
TEST_TRACK_ID = "5966783"
|
||||
|
||||
|
||||
class QobuzClient:
|
||||
def __init__(
|
||||
self,
|
||||
bundle: QobuzBundle,
|
||||
token: str,
|
||||
*,
|
||||
language: str = "en",
|
||||
timeout: float = 30.0,
|
||||
max_retries: int = 3,
|
||||
) -> None:
|
||||
self.bundle = bundle
|
||||
self.token = token
|
||||
self.language = language
|
||||
self.timeout = timeout
|
||||
self.max_retries = max_retries
|
||||
self.session = requests.Session()
|
||||
self.session.headers.update(
|
||||
{
|
||||
"User-Agent": (
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
||||
"(KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
|
||||
),
|
||||
"Accept": "application/json, text/plain, */*",
|
||||
"Accept-Language": "en-US,en;q=0.9",
|
||||
"X-App-Id": bundle.app_id,
|
||||
"X-User-Auth-Token": token,
|
||||
}
|
||||
)
|
||||
self._working_secret: str | None = None
|
||||
self.user_id: str | None = None
|
||||
self.session_id: str | None = None
|
||||
self.session_key: bytes | None = None
|
||||
self.session_secret: str | None = None
|
||||
# Serialize only the mutable secret/session state, never the long
|
||||
# direct-URL retries, so one rate-limited track cannot freeze workers.
|
||||
self._secret_lock = threading.RLock()
|
||||
self._session_lock = threading.RLock()
|
||||
|
||||
# -- low level -----------------------------------------------------
|
||||
|
||||
def _request(
|
||||
self,
|
||||
endpoint: str,
|
||||
params: dict[str, Any] | None = None,
|
||||
*,
|
||||
method: str = "GET",
|
||||
data: dict[str, Any] | None = None,
|
||||
include_lang: bool = True,
|
||||
include_app_id: bool = True,
|
||||
) -> dict[str, Any]:
|
||||
request_params = dict(params or {})
|
||||
if include_app_id:
|
||||
request_params.setdefault("app_id", self.bundle.app_id)
|
||||
if include_lang and self.language:
|
||||
request_params.setdefault("lang", self.language)
|
||||
request_params.setdefault("locale", f"{self.language}_US")
|
||||
|
||||
url = BASE_URL + endpoint
|
||||
last_error: Exception | None = None
|
||||
|
||||
for attempt in range(self.max_retries + 1):
|
||||
try:
|
||||
response = self.session.request(
|
||||
method,
|
||||
url,
|
||||
params=request_params,
|
||||
data=data,
|
||||
timeout=self.timeout,
|
||||
)
|
||||
except requests.RequestException as exc:
|
||||
last_error = exc
|
||||
if attempt >= self.max_retries:
|
||||
raise NetworkError(f"Qobuz request failed: {exc}") from exc
|
||||
self._sleep(attempt)
|
||||
continue
|
||||
|
||||
status = response.status_code
|
||||
if status == 200:
|
||||
try:
|
||||
return response.json()
|
||||
except ValueError as exc:
|
||||
raise ProviderError("Qobuz returned invalid JSON") from exc
|
||||
|
||||
if status == 401:
|
||||
raise AuthExpired(
|
||||
"Qobuz rejected the token",
|
||||
details={"endpoint": endpoint, "status": status},
|
||||
)
|
||||
if status == 403:
|
||||
raise GeoBlocked(
|
||||
"Qobuz denied access to this release",
|
||||
details={"endpoint": endpoint, "status": status},
|
||||
)
|
||||
if status == 404:
|
||||
raise NotFound("Qobuz item not found", details={"endpoint": endpoint})
|
||||
if status == 429:
|
||||
if attempt >= self.max_retries:
|
||||
raise RateLimited()
|
||||
retry_after = _retry_after(response)
|
||||
self._sleep(attempt, retry_after)
|
||||
continue
|
||||
if status >= 500:
|
||||
if attempt >= self.max_retries:
|
||||
raise NetworkError(
|
||||
f"Qobuz server error {status}", details={"endpoint": endpoint}
|
||||
)
|
||||
self._sleep(attempt)
|
||||
continue
|
||||
|
||||
message = _error_message(response)
|
||||
if "invalid app secret" in message.lower():
|
||||
raise ProviderError(message, code="INVALID_SECRET")
|
||||
if status == 400:
|
||||
raise ProviderError(message or "Qobuz rejected the request", code="BAD_REQUEST")
|
||||
raise ProviderError(message or f"Qobuz returned HTTP {status}")
|
||||
|
||||
raise NetworkError(f"Qobuz request failed: {last_error}")
|
||||
|
||||
def _sleep(self, attempt: int, retry_after: float | None = None) -> None:
|
||||
delay = retry_after if retry_after is not None else min(2**attempt, 16)
|
||||
time.sleep(delay + random.uniform(0, 0.25))
|
||||
|
||||
# -- account -------------------------------------------------------
|
||||
|
||||
def get_user(self) -> Account:
|
||||
try:
|
||||
data = self._request("user/get")
|
||||
except AuthExpired as exc:
|
||||
raise AuthInvalid("Qobuz token is invalid or expired") from exc
|
||||
account = Account.from_api(data)
|
||||
self.user_id = account.id
|
||||
return account
|
||||
|
||||
def login_with_token(self) -> dict[str, Any]:
|
||||
"""Exchange/refresh a token via `user/login` with `extra=partner`.
|
||||
|
||||
The OAuth callback returns a preliminary token. Qobuz's official web
|
||||
player then calls `user/login`, which returns the long-lived
|
||||
`user_auth_token` plus the full user profile.
|
||||
"""
|
||||
return self._request(
|
||||
"user/login",
|
||||
method="POST",
|
||||
data={"extra": "partner"},
|
||||
include_lang=False,
|
||||
)
|
||||
|
||||
# -- catalog -------------------------------------------------------
|
||||
|
||||
def get_album(self, album_id: str) -> ReleaseInfo:
|
||||
data = self._request("album/get", {"album_id": album_id})
|
||||
return ReleaseInfo.from_api(data)
|
||||
|
||||
def get_track(self, track_id: str) -> TrackInfo:
|
||||
data = self._request("track/get", {"track_id": track_id})
|
||||
return TrackInfo.from_api(data)
|
||||
|
||||
def _paginate(
|
||||
self,
|
||||
endpoint: str,
|
||||
params: dict[str, Any],
|
||||
key: str,
|
||||
total_key: str | None = None,
|
||||
) -> dict[str, Any]:
|
||||
limit = 500
|
||||
offset = 0
|
||||
items: list[dict[str, Any]] = []
|
||||
first: dict[str, Any] | None = None
|
||||
while True:
|
||||
data = self._request(
|
||||
endpoint,
|
||||
{**params, "limit": limit, "offset": offset},
|
||||
)
|
||||
if first is None:
|
||||
first = data
|
||||
block = data.get(key) if isinstance(data.get(key), dict) else {}
|
||||
batch = block.get("items") or []
|
||||
items.extend(item for item in batch if isinstance(item, dict))
|
||||
total = block.get("total")
|
||||
if total is None and total_key:
|
||||
total = data.get(total_key)
|
||||
offset += len(batch)
|
||||
if not batch:
|
||||
break
|
||||
if total is not None and offset >= int(total):
|
||||
break
|
||||
if len(batch) < limit and total is None:
|
||||
break
|
||||
|
||||
merged = dict(first or {})
|
||||
merged[key] = {
|
||||
**(first.get(key) if first and isinstance(first.get(key), dict) else {}),
|
||||
"items": items,
|
||||
"total": len(items),
|
||||
}
|
||||
return merged
|
||||
|
||||
def get_playlist(self, playlist_id: str) -> dict[str, Any]:
|
||||
return self._paginate(
|
||||
"playlist/get",
|
||||
{"playlist_id": playlist_id, "extra": "tracks"},
|
||||
"tracks",
|
||||
"tracks_count",
|
||||
)
|
||||
|
||||
def get_playlist_info(self, playlist_id: str) -> PlaylistInfo:
|
||||
return PlaylistInfo.from_api(self.get_playlist(playlist_id))
|
||||
|
||||
def get_artist(self, artist_id: str) -> ArtistInfo:
|
||||
data = self._paginate(
|
||||
"artist/get",
|
||||
{"artist_id": artist_id, "extra": "albums"},
|
||||
"albums",
|
||||
"albums_count",
|
||||
)
|
||||
return ArtistInfo.from_api(data)
|
||||
|
||||
def get_label(self, label_id: str) -> LabelInfo:
|
||||
data = self._paginate(
|
||||
"label/get",
|
||||
{"label_id": label_id, "extra": "albums"},
|
||||
"albums",
|
||||
"albums_count",
|
||||
)
|
||||
return LabelInfo.from_api(data)
|
||||
|
||||
def get_all_favorites(self, fav_type: str = "albums") -> list[dict[str, Any]]:
|
||||
items: list[dict[str, Any]] = []
|
||||
offset = 0
|
||||
while True:
|
||||
data = self.get_favorites(fav_type, limit=500, offset=offset)
|
||||
block = data.get(fav_type) if isinstance(data.get(fav_type), dict) else {}
|
||||
batch = block.get("items") or []
|
||||
items.extend(item for item in batch if isinstance(item, dict))
|
||||
total = block.get("total")
|
||||
offset += len(batch)
|
||||
if not batch or (total is not None and offset >= int(total)):
|
||||
break
|
||||
return items
|
||||
|
||||
def get_favorites(
|
||||
self,
|
||||
fav_type: str = "albums",
|
||||
*,
|
||||
limit: int = 500,
|
||||
offset: int = 0,
|
||||
) -> dict[str, Any]:
|
||||
if fav_type not in ("albums", "tracks", "artists", "labels"):
|
||||
raise ProviderError(f"Unsupported favorites type: {fav_type}", code="BAD_REQUEST")
|
||||
if not self.user_id:
|
||||
self.get_user()
|
||||
secret = self.ensure_secret()
|
||||
timestamp = int(time.time())
|
||||
signature = hashlib.md5(
|
||||
f"favoritegetUserFavorites{timestamp}{secret}".encode()
|
||||
).hexdigest()
|
||||
params = {
|
||||
"app_id": self.bundle.app_id,
|
||||
"user_auth_token": self.token,
|
||||
"user_id": self.user_id,
|
||||
"type": fav_type,
|
||||
"limit": max(1, min(limit, 500)),
|
||||
"offset": max(0, offset),
|
||||
"request_ts": timestamp,
|
||||
"request_sig": signature,
|
||||
}
|
||||
return self._request(
|
||||
"favorite/getUserFavorites",
|
||||
params=params,
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
|
||||
def search_tracks_raw(self, query: str, *, limit: int = 10) -> list[dict[str, Any]]:
|
||||
data = self._request(
|
||||
"catalog/search",
|
||||
{"query": query, "type": "tracks", "limit": max(1, min(limit, 50))},
|
||||
)
|
||||
items = data.get("tracks", {}).get("items", []) or []
|
||||
return [item for item in items if isinstance(item, dict) and item.get("id")]
|
||||
|
||||
def search(
|
||||
self,
|
||||
query: str,
|
||||
*,
|
||||
item_type: str = "album",
|
||||
limit: int = 20,
|
||||
) -> list[SearchItem]:
|
||||
type_map = {
|
||||
"album": "albums",
|
||||
"track": "tracks",
|
||||
"artist": "artists",
|
||||
"playlist": "playlists",
|
||||
}
|
||||
plural = type_map.get(item_type)
|
||||
if plural is None:
|
||||
raise ProviderError(f"Unsupported search type: {item_type}", code="BAD_REQUEST")
|
||||
|
||||
data = self._request(
|
||||
"catalog/search",
|
||||
{"query": query, "type": plural, "limit": max(1, min(limit, 100))},
|
||||
)
|
||||
items = data.get(plural, {}).get("items", []) or []
|
||||
parsers = {
|
||||
"album": SearchItem.from_album,
|
||||
"track": SearchItem.from_track,
|
||||
"artist": SearchItem.from_artist,
|
||||
"playlist": SearchItem.from_playlist,
|
||||
}
|
||||
parser = parsers[item_type]
|
||||
return [parser(item) for item in items if isinstance(item, dict) and item.get("id")]
|
||||
|
||||
# -- signed endpoints ---------------------------------------------
|
||||
|
||||
def ensure_secret(self) -> str:
|
||||
with self._secret_lock:
|
||||
if self._working_secret:
|
||||
return self._working_secret
|
||||
|
||||
last_error: MuseaterError | None = None
|
||||
for secret in self.bundle.secrets:
|
||||
try:
|
||||
self._request(
|
||||
"track/getFileUrl",
|
||||
_signed_track_params(TEST_TRACK_ID, 5, secret),
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
self._working_secret = secret
|
||||
return secret
|
||||
except AuthExpired:
|
||||
raise
|
||||
except MuseaterError as exc:
|
||||
# A stale secret can fail with a generic 400 signature error,
|
||||
# not only with INVALID_SECRET. Try the next one.
|
||||
last_error = exc
|
||||
continue
|
||||
raise last_error or ProviderError(
|
||||
"None of the Qobuz app secrets work", code="INVALID_SECRET"
|
||||
)
|
||||
|
||||
def get_track_url(self, track_id: str, format_id: int) -> dict[str, Any]:
|
||||
"""Return a direct URL, or a segmented payload as a fallback."""
|
||||
secret = self.ensure_secret()
|
||||
try:
|
||||
direct = self._request(
|
||||
"track/getFileUrl",
|
||||
_signed_track_params(track_id, format_id, secret),
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
if direct.get("url"):
|
||||
return _normalize_stream_payload(direct)
|
||||
except AuthExpired:
|
||||
raise
|
||||
except MuseaterError as exc:
|
||||
logger.debug("Direct URL unavailable for %s: %s", track_id, exc)
|
||||
|
||||
segment = self.get_file_url(track_id, format_id)
|
||||
return _normalize_stream_payload(segment)
|
||||
|
||||
def start_session(self) -> dict[str, Any]:
|
||||
with self._session_lock:
|
||||
if self.session_id and self.session_key:
|
||||
return {"session_id": self.session_id}
|
||||
|
||||
secret = self.ensure_secret()
|
||||
params = {"profile": "qbz-1"}
|
||||
params.update(_signed_modern("session/start", params, secret))
|
||||
data = self._request(
|
||||
"session/start",
|
||||
method="POST",
|
||||
data=params,
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
self.session_id = data.get("session_id")
|
||||
self.session_secret = secret
|
||||
infos = data.get("infos")
|
||||
if not self.session_id or not infos:
|
||||
raise ProviderError(
|
||||
"Qobuz session/start returned no session", code="STREAM_SESSION"
|
||||
)
|
||||
self.session_key = derive_session_key(str(infos), secret)
|
||||
self.session.headers.update({"X-Session-Id": str(self.session_id)})
|
||||
return data
|
||||
|
||||
def get_lyrics_url(self, track_id: str) -> dict[str, Any]:
|
||||
secret = self.ensure_secret()
|
||||
params = {"track_id": track_id}
|
||||
params.update(_signed_modern("track/lyricsUrl", params, secret))
|
||||
return self._request(
|
||||
"track/lyricsUrl",
|
||||
params=params,
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
|
||||
def get_file_url(self, track_id: str, format_id: int) -> dict[str, Any]:
|
||||
with self._session_lock:
|
||||
if not self.session_id or not self.session_key or not self.session_secret:
|
||||
self.start_session()
|
||||
|
||||
params = {
|
||||
"track_id": track_id,
|
||||
"format_id": format_id,
|
||||
"intent": "import",
|
||||
}
|
||||
params.update(_signed_modern("file/url", params, str(self.session_secret)))
|
||||
data = self._request(
|
||||
"file/url",
|
||||
params=params,
|
||||
include_lang=False,
|
||||
include_app_id=False,
|
||||
)
|
||||
if "key" in data and self.session_key:
|
||||
data["raw_key"] = unwrap_track_key(str(data["key"]), self.session_key)
|
||||
return data
|
||||
|
||||
|
||||
def _normalize_stream_payload(data: dict[str, Any]) -> dict[str, Any]:
|
||||
if "bits_depth" in data and "bit_depth" not in data:
|
||||
data["bit_depth"] = data["bits_depth"]
|
||||
sampling_rate = data.get("sampling_rate")
|
||||
try:
|
||||
if sampling_rate and float(sampling_rate) > 1000:
|
||||
data["sampling_rate"] = float(sampling_rate) / 1000
|
||||
except (TypeError, ValueError):
|
||||
pass
|
||||
return data
|
||||
|
||||
|
||||
def _signed_track_params(track_id: str, format_id: int, secret: str) -> dict[str, Any]:
|
||||
timestamp = int(time.time())
|
||||
raw = f"trackgetFileUrlformat_id{format_id}intentstreamtrack_id{track_id}{timestamp}{secret}"
|
||||
signature = hashlib.md5(raw.encode("utf-8")).hexdigest()
|
||||
return {
|
||||
"track_id": track_id,
|
||||
"format_id": format_id,
|
||||
"intent": "stream",
|
||||
"request_ts": timestamp,
|
||||
"request_sig": signature,
|
||||
}
|
||||
|
||||
|
||||
def _signed_modern(endpoint: str, params: dict[str, Any], secret: str) -> dict[str, Any]:
|
||||
object_name, method = endpoint.split("/", 1)
|
||||
timestamp = int(time.time())
|
||||
parts = [object_name, method]
|
||||
for key in sorted(params):
|
||||
value = params[key]
|
||||
if isinstance(value, (str, int, float)):
|
||||
parts.extend((key, str(value)))
|
||||
parts.extend((str(timestamp), secret))
|
||||
signature = hashlib.md5("".join(parts).encode("utf-8")).hexdigest()
|
||||
return {"request_ts": timestamp, "request_sig": signature}
|
||||
|
||||
|
||||
def _error_message(response: requests.Response) -> str:
|
||||
try:
|
||||
data = response.json()
|
||||
except ValueError:
|
||||
return response.text.strip()[:500]
|
||||
if isinstance(data, dict):
|
||||
return str(data.get("message") or data.get("error") or "").strip()
|
||||
return ""
|
||||
|
||||
|
||||
def _retry_after(response: requests.Response) -> float | None:
|
||||
value = response.headers.get("Retry-After")
|
||||
if not value:
|
||||
return None
|
||||
try:
|
||||
return max(0.0, float(value))
|
||||
except ValueError:
|
||||
return None
|
||||
@@ -0,0 +1,100 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Derived from qobuz-dl-ultimate (https://github.com/Sei969/qobuz-dl).
|
||||
# Modified by museater contributors, 2026: isolated crypto helpers.
|
||||
"""Qobuz web-player stream crypto.
|
||||
|
||||
Qobuz's segmented endpoint wraps a per-track AES key and encrypts individual
|
||||
MP4 frames with AES-CTR. These helpers are deliberately small and testable.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
|
||||
from cryptography.hazmat.primitives import hashes, padding
|
||||
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
||||
from cryptography.hazmat.primitives.kdf.hkdf import HKDF
|
||||
|
||||
|
||||
def b64url_decode(value: str) -> bytes:
|
||||
return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4))
|
||||
|
||||
|
||||
def derive_session_key(session_infos: str, secret: str) -> bytes:
|
||||
"""Derive the 16-byte AES session key from `session/start` infos."""
|
||||
salt, info = session_infos.split(".")
|
||||
return HKDF(
|
||||
algorithm=hashes.SHA256(),
|
||||
length=16,
|
||||
salt=b64url_decode(salt),
|
||||
info=b64url_decode(info),
|
||||
).derive(bytes.fromhex(secret))
|
||||
|
||||
|
||||
def unwrap_track_key(key_token: str, session_key: bytes) -> bytes:
|
||||
"""Decrypt the AES-CBC wrapped per-track key."""
|
||||
_, wrapped, iv = key_token.split(".")
|
||||
decryptor = Cipher(
|
||||
algorithms.AES(session_key),
|
||||
modes.CBC(b64url_decode(iv)),
|
||||
).decryptor()
|
||||
padded = decryptor.update(b64url_decode(wrapped)) + decryptor.finalize()
|
||||
unpadder = padding.PKCS7(128).unpadder()
|
||||
return unpadder.update(padded) + unpadder.finalize()
|
||||
|
||||
|
||||
def segment_uuid(segment_data: bytes) -> bytes | None:
|
||||
"""Find the track UUID inside the MP4 boxes of a segment."""
|
||||
pos = 0
|
||||
while pos + 24 <= len(segment_data):
|
||||
size = int.from_bytes(segment_data[pos : pos + 4], "big")
|
||||
if size <= 0 or pos + size > len(segment_data):
|
||||
break
|
||||
if segment_data[pos + 4 : pos + 8] == b"uuid":
|
||||
return segment_data[pos + 8 : pos + 24]
|
||||
pos += size
|
||||
return None
|
||||
|
||||
|
||||
def decrypt_segment(segment_data: bytes, raw_key: bytes, track_uuid: bytes | None) -> bytes:
|
||||
"""Decrypt the AES-CTR frames inside one Qobuz segment."""
|
||||
if track_uuid is None:
|
||||
return segment_data
|
||||
|
||||
buf = bytearray(segment_data)
|
||||
pos = 0
|
||||
while pos + 8 <= len(buf):
|
||||
size = int.from_bytes(buf[pos : pos + 4], "big")
|
||||
if size <= 0 or pos + size > len(buf):
|
||||
break
|
||||
|
||||
if buf[pos + 4 : pos + 8] == b"uuid" and buf[pos + 8 : pos + 24] == track_uuid:
|
||||
pointer = pos + 28
|
||||
data_end = pos + int.from_bytes(buf[pointer : pointer + 4], "big")
|
||||
pointer += 4
|
||||
counter_len = buf[pointer]
|
||||
pointer += 1
|
||||
frame_count = int.from_bytes(buf[pointer : pointer + 3], "big")
|
||||
pointer += 3
|
||||
|
||||
for _ in range(frame_count):
|
||||
frame_len = int.from_bytes(buf[pointer : pointer + 4], "big")
|
||||
pointer += 6
|
||||
flags = int.from_bytes(buf[pointer : pointer + 2], "big")
|
||||
pointer += 2
|
||||
frame_start, data_end = data_end, data_end + frame_len
|
||||
|
||||
if flags:
|
||||
counter = bytes(buf[pointer : pointer + counter_len]) + (
|
||||
b"\x00" * (16 - counter_len)
|
||||
)
|
||||
decryptor = Cipher(
|
||||
algorithms.AES(raw_key), modes.CTR(counter)
|
||||
).decryptor()
|
||||
buf[frame_start:data_end] = (
|
||||
decryptor.update(bytes(buf[frame_start:data_end]))
|
||||
+ decryptor.finalize()
|
||||
)
|
||||
pointer += counter_len
|
||||
pos += size
|
||||
return bytes(buf)
|
||||
@@ -0,0 +1,423 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Normalized Qobuz models.
|
||||
|
||||
The Qobuz API is loosely typed and changes shape between endpoints. These
|
||||
models keep the CLI and JSON contract stable.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import asdict, dataclass, field
|
||||
from typing import Any
|
||||
|
||||
|
||||
def _get(data: dict[str, Any] | None, *keys: str, default: Any = None) -> Any:
|
||||
current: Any = data
|
||||
for key in keys:
|
||||
if not isinstance(current, dict) or key not in current:
|
||||
return default
|
||||
current = current[key]
|
||||
return current
|
||||
|
||||
|
||||
def _text(value: Any) -> str | None:
|
||||
if value is None:
|
||||
return None
|
||||
text = str(value).strip()
|
||||
return text or None
|
||||
|
||||
|
||||
def _int(value: Any) -> int | None:
|
||||
try:
|
||||
return int(value)
|
||||
except (TypeError, ValueError):
|
||||
return None
|
||||
|
||||
|
||||
def _float(value: Any) -> float | None:
|
||||
try:
|
||||
return float(value)
|
||||
except (TypeError, ValueError):
|
||||
return None
|
||||
|
||||
|
||||
def _display_title(title: str, version: str | None) -> str:
|
||||
title = title.strip()
|
||||
version = version.strip() if version else None
|
||||
return f"{title} ({version})" if version and version not in title else title
|
||||
|
||||
|
||||
def _cover(data: dict[str, Any] | None) -> str | None:
|
||||
image = (data or {}).get("image") or {}
|
||||
for key in ("extralarge", "large", "thumbnail", "small"):
|
||||
value = _text(image.get(key))
|
||||
if value:
|
||||
return value
|
||||
return None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ArtistRef:
|
||||
id: str | None
|
||||
name: str
|
||||
roles: tuple[str, ...] = ()
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any] | None) -> ArtistRef | None:
|
||||
if not isinstance(data, dict) or not data.get("name"):
|
||||
return None
|
||||
roles = data.get("roles") or ()
|
||||
return cls(
|
||||
id=_text(data.get("id")),
|
||||
name=str(data["name"]),
|
||||
roles=tuple(str(role) for role in roles if role),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TrackInfo:
|
||||
id: str
|
||||
title: str
|
||||
version: str | None = None
|
||||
track_number: int | None = None
|
||||
disc_number: int | None = None
|
||||
duration_seconds: int | None = None
|
||||
isrc: str | None = None
|
||||
performers: str | None = None
|
||||
composer: str | None = None
|
||||
artist: str | None = None
|
||||
album_id: str | None = None
|
||||
album_title: str | None = None
|
||||
cover_url: str | None = None
|
||||
streamable: bool | None = None
|
||||
parental_warning: bool | None = None
|
||||
replaygain_track_gain: float | None = None
|
||||
replaygain_track_peak: float | None = None
|
||||
|
||||
@property
|
||||
def display_title(self) -> str:
|
||||
return _display_title(self.title, self.version)
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> TrackInfo:
|
||||
album = data.get("album") if isinstance(data.get("album"), dict) else {}
|
||||
performer = data.get("performer") if isinstance(data.get("performer"), dict) else {}
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
title=_text(data.get("title")) or "Unknown",
|
||||
version=_text(data.get("version")),
|
||||
track_number=_int(data.get("track_number")),
|
||||
disc_number=_int(data.get("media_number")),
|
||||
duration_seconds=_int(data.get("duration")),
|
||||
isrc=_text(data.get("isrc")),
|
||||
performers=_text(data.get("performers")),
|
||||
composer=_text(data.get("composer")),
|
||||
artist=_text(performer.get("name")) or _text(_get(data, "artist", "name")),
|
||||
album_id=_text(album.get("id")),
|
||||
album_title=_text(album.get("title")),
|
||||
cover_url=_cover(album) or _cover(data),
|
||||
streamable=data.get("streamable"),
|
||||
parental_warning=data.get("parental_warning"),
|
||||
replaygain_track_gain=_float(_get(data, "audio_info", "replaygain_track_gain")),
|
||||
replaygain_track_peak=_float(_get(data, "audio_info", "replaygain_track_peak")),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["display_title"] = self.display_title
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ReleaseInfo:
|
||||
id: str
|
||||
title: str
|
||||
version: str | None = None
|
||||
artist: str | None = None
|
||||
artists: tuple[ArtistRef, ...] = ()
|
||||
release_date: str | None = None
|
||||
year: int | None = None
|
||||
label: str | None = None
|
||||
label_id: str | None = None
|
||||
upc: str | None = None
|
||||
genre: str | None = None
|
||||
genres: tuple[str, ...] = ()
|
||||
cover_url: str | None = None
|
||||
track_count: int | None = None
|
||||
disc_count: int | None = None
|
||||
duration_seconds: int | None = None
|
||||
streamable: bool | None = None
|
||||
parental_warning: bool | None = None
|
||||
maximum_bit_depth: int | None = None
|
||||
maximum_sampling_rate: float | None = None
|
||||
tracks: tuple[TrackInfo, ...] = field(default_factory=tuple)
|
||||
|
||||
@property
|
||||
def display_title(self) -> str:
|
||||
return _display_title(self.title, self.version)
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> ReleaseInfo:
|
||||
artist = ArtistRef.from_api(data.get("artist"))
|
||||
artists = tuple(
|
||||
item
|
||||
for item in (ArtistRef.from_api(entry) for entry in data.get("artists") or [])
|
||||
if item is not None
|
||||
)
|
||||
release_date = _text(data.get("release_date_original")) or _text(
|
||||
data.get("release_date")
|
||||
)
|
||||
label_data = data.get("label") if isinstance(data.get("label"), dict) else {}
|
||||
genre_data = data.get("genre") if isinstance(data.get("genre"), dict) else {}
|
||||
genres = tuple(
|
||||
str(entry.get("name"))
|
||||
for entry in data.get("genres_list") or []
|
||||
if isinstance(entry, dict) and entry.get("name")
|
||||
)
|
||||
tracks_data = _get(data, "tracks", "items", default=[]) or []
|
||||
tracks = tuple(
|
||||
TrackInfo.from_api(track)
|
||||
for track in tracks_data
|
||||
if isinstance(track, dict) and track.get("id")
|
||||
)
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
title=_text(data.get("title")) or "Unknown",
|
||||
version=_text(data.get("version")),
|
||||
artist=artist.name if artist else _text(_get(data, "artist", "name")),
|
||||
artists=artists,
|
||||
release_date=release_date,
|
||||
year=int(release_date[:4]) if release_date and release_date[:4].isdigit() else None,
|
||||
label=_text(label_data.get("name")),
|
||||
label_id=_text(label_data.get("id")),
|
||||
upc=_text(data.get("upc")),
|
||||
genre=_text(genre_data.get("name")),
|
||||
genres=genres,
|
||||
cover_url=_cover(data),
|
||||
track_count=_int(data.get("tracks_count")) or (len(tracks) or None),
|
||||
disc_count=_int(data.get("media_count")),
|
||||
duration_seconds=_int(data.get("duration")),
|
||||
streamable=data.get("streamable"),
|
||||
parental_warning=data.get("parental_warning"),
|
||||
maximum_bit_depth=_int(data.get("maximum_bit_depth")),
|
||||
maximum_sampling_rate=_float(data.get("maximum_sampling_rate")),
|
||||
tracks=tracks,
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["display_title"] = self.display_title
|
||||
payload["artists"] = [artist.to_dict() for artist in self.artists]
|
||||
payload["tracks"] = [track.to_dict() for track in self.tracks]
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SearchItem:
|
||||
type: str
|
||||
id: str
|
||||
title: str
|
||||
artist: str | None = None
|
||||
year: int | None = None
|
||||
track_count: int | None = None
|
||||
duration_seconds: int | None = None
|
||||
cover_url: str | None = None
|
||||
url: str | None = None
|
||||
|
||||
@classmethod
|
||||
def from_album(cls, data: dict[str, Any]) -> SearchItem:
|
||||
release = ReleaseInfo.from_api(data)
|
||||
return cls(
|
||||
type="album",
|
||||
id=release.id,
|
||||
title=release.display_title,
|
||||
artist=release.artist,
|
||||
year=release.year,
|
||||
track_count=release.track_count,
|
||||
duration_seconds=release.duration_seconds,
|
||||
cover_url=release.cover_url,
|
||||
url=f"https://play.qobuz.com/album/{release.id}",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def from_track(cls, data: dict[str, Any]) -> SearchItem:
|
||||
track = TrackInfo.from_api(data)
|
||||
return cls(
|
||||
type="track",
|
||||
id=track.id,
|
||||
title=track.display_title,
|
||||
artist=track.artist,
|
||||
duration_seconds=track.duration_seconds,
|
||||
cover_url=track.cover_url,
|
||||
url=f"https://play.qobuz.com/track/{track.id}",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def from_artist(cls, data: dict[str, Any]) -> SearchItem:
|
||||
return cls(
|
||||
type="artist",
|
||||
id=str(data.get("id", "")),
|
||||
title=str(data.get("name") or "Unknown"),
|
||||
cover_url=_cover(data),
|
||||
url=f"https://play.qobuz.com/artist/{data.get('id', '')}",
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def from_playlist(cls, data: dict[str, Any]) -> SearchItem:
|
||||
return cls(
|
||||
type="playlist",
|
||||
id=str(data.get("id", "")),
|
||||
title=str(data.get("name") or data.get("title") or "Unknown"),
|
||||
track_count=_int(data.get("tracks_count")),
|
||||
duration_seconds=_int(data.get("duration")),
|
||||
cover_url=_cover(data),
|
||||
url=f"https://play.qobuz.com/playlist/{data.get('id', '')}",
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
|
||||
|
||||
def _playlist_cover(data: dict[str, Any]) -> str | None:
|
||||
for key in ("images300", "images150", "image_rectangle"):
|
||||
value = _text(data.get(key))
|
||||
if value:
|
||||
return value
|
||||
images = data.get("images")
|
||||
if isinstance(images, list):
|
||||
for item in images:
|
||||
if isinstance(item, str) and item:
|
||||
return item
|
||||
if isinstance(item, dict):
|
||||
value = _text(item.get("url")) or _text(item.get("large"))
|
||||
if value:
|
||||
return value
|
||||
return None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PlaylistInfo:
|
||||
id: str
|
||||
name: str
|
||||
description: str | None = None
|
||||
owner: str | None = None
|
||||
track_count: int | None = None
|
||||
duration_seconds: int | None = None
|
||||
cover_url: str | None = None
|
||||
tracks: tuple[TrackInfo, ...] = field(default_factory=tuple)
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> PlaylistInfo:
|
||||
tracks_data = _get(data, "tracks", "items", default=[]) or []
|
||||
tracks = tuple(
|
||||
TrackInfo.from_api(track)
|
||||
for track in tracks_data
|
||||
if isinstance(track, dict) and track.get("id")
|
||||
)
|
||||
owner = data.get("owner") if isinstance(data.get("owner"), dict) else {}
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
name=str(data.get("name") or "Unknown"),
|
||||
description=_text(data.get("description")),
|
||||
owner=_text(owner.get("name")),
|
||||
track_count=_int(data.get("tracks_count")) or (len(tracks) or None),
|
||||
duration_seconds=_int(data.get("duration")),
|
||||
cover_url=_playlist_cover(data),
|
||||
tracks=tracks,
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["tracks"] = [track.to_dict() for track in self.tracks]
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ArtistInfo:
|
||||
id: str
|
||||
name: str
|
||||
image: str | None = None
|
||||
albums_count: int | None = None
|
||||
albums: tuple[ReleaseInfo, ...] = field(default_factory=tuple)
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> ArtistInfo:
|
||||
albums_data = _get(data, "albums", "items", default=[]) or []
|
||||
albums = tuple(
|
||||
ReleaseInfo.from_api(item)
|
||||
for item in albums_data
|
||||
if isinstance(item, dict) and item.get("id")
|
||||
)
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
name=str(data.get("name") or "Unknown"),
|
||||
image=_text(data.get("image")) or _text(data.get("picture")),
|
||||
albums_count=_int(data.get("albums_count")) or (len(albums) or None),
|
||||
albums=albums,
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["albums"] = [album.to_dict() for album in self.albums]
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class LabelInfo:
|
||||
id: str
|
||||
name: str
|
||||
description: str | None = None
|
||||
albums_count: int | None = None
|
||||
albums: tuple[ReleaseInfo, ...] = field(default_factory=tuple)
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> LabelInfo:
|
||||
albums_data = _get(data, "albums", "items", default=[]) or []
|
||||
albums = tuple(
|
||||
ReleaseInfo.from_api(item)
|
||||
for item in albums_data
|
||||
if isinstance(item, dict) and item.get("id")
|
||||
)
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
name=str(data.get("name") or "Unknown"),
|
||||
description=_text(data.get("description")),
|
||||
albums_count=_int(data.get("albums_count")) or (len(albums) or None),
|
||||
albums=albums,
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["albums"] = [album.to_dict() for album in self.albums]
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Account:
|
||||
id: str | None = None
|
||||
email: str | None = None
|
||||
display_name: str | None = None
|
||||
membership: str | None = None
|
||||
label: str | None = None
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> Account:
|
||||
credential = data.get("credential") or _get(data, "user", "credential", default={}) or {}
|
||||
parameters = credential.get("parameters") or {}
|
||||
return cls(
|
||||
id=_text(data.get("id"))
|
||||
or _text(data.get("user_id"))
|
||||
or _text(_get(data, "user", "id")),
|
||||
email=_text(data.get("email")) or _text(_get(data, "user", "email")),
|
||||
display_name=_text(data.get("display_name"))
|
||||
or _text(_get(data, "user", "display_name")),
|
||||
membership=_text(parameters.get("short_label"))
|
||||
or _text(parameters.get("label")),
|
||||
label=_text(parameters.get("label")),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
@@ -0,0 +1,27 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Spotify provider."""
|
||||
|
||||
from museater.providers.spotify.auth import (
|
||||
SpotifyAuthRequired,
|
||||
SpotifyOAuth,
|
||||
SpotifyTokens,
|
||||
SpotifyTokenStore,
|
||||
)
|
||||
from museater.providers.spotify.client import SpotifyClient, parse_playlist_id
|
||||
from museater.providers.spotify.models import (
|
||||
SpotifyPlaylist,
|
||||
SpotifyTrack,
|
||||
SpotifyUser,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"SpotifyAuthRequired",
|
||||
"SpotifyClient",
|
||||
"SpotifyOAuth",
|
||||
"SpotifyPlaylist",
|
||||
"SpotifyTokenStore",
|
||||
"SpotifyTokens",
|
||||
"SpotifyTrack",
|
||||
"SpotifyUser",
|
||||
"parse_playlist_id",
|
||||
]
|
||||
@@ -0,0 +1,447 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Spotify OAuth 2.0 Authorization Code with PKCE.
|
||||
|
||||
Spotify no longer allows `localhost` as a redirect host: register a loopback
|
||||
literal such as `http://127.0.0.1/callback` (port optional) and let museater
|
||||
add a dynamic port at auth time.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
import hashlib
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import secrets
|
||||
import socket
|
||||
import threading
|
||||
import time
|
||||
import webbrowser
|
||||
from collections.abc import Callable
|
||||
from contextlib import suppress
|
||||
from dataclasses import dataclass
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
|
||||
|
||||
import requests
|
||||
|
||||
from museater.errors import AuthInvalid, AuthRequired, InputRequired, MuseaterError
|
||||
from museater.paths import cache_dir, credentials_path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
AUTH_URL = "https://accounts.spotify.com/authorize"
|
||||
TOKEN_URL = "https://accounts.spotify.com/api/token"
|
||||
SCOPES = (
|
||||
"playlist-read-private",
|
||||
"playlist-read-collaborative",
|
||||
"user-read-private",
|
||||
)
|
||||
KEYRING_SERVICE = "museater-spotify"
|
||||
KEYRING_USER = "refresh_token"
|
||||
ENV_REFRESH = "MUSEATER_SPOTIFY_REFRESH_TOKEN"
|
||||
|
||||
|
||||
class SpotifyError(MuseaterError):
|
||||
def __init__(self, message: str, *, code: str = "SPOTIFY") -> None:
|
||||
super().__init__(message, code=code, exit_code=10)
|
||||
|
||||
|
||||
class SpotifyAuthRequired(AuthRequired):
|
||||
def __init__(self, message: str = "Spotify authentication is required") -> None:
|
||||
super().__init__(message, hint="Run: museater spotify auth --client-id <id>")
|
||||
|
||||
|
||||
class SpotifyAuthInvalid(AuthInvalid):
|
||||
def __init__(self, message: str = "Spotify token is invalid", **kwargs: Any) -> None:
|
||||
super().__init__(message, hint="Run: museater spotify auth", **kwargs)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SpotifyTokens:
|
||||
access_token: str
|
||||
refresh_token: str
|
||||
expires_at: float
|
||||
|
||||
@property
|
||||
def expired(self) -> bool:
|
||||
return time.time() >= self.expires_at - 60
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return {
|
||||
"access_token": self.access_token,
|
||||
"refresh_token": self.refresh_token,
|
||||
"expires_at": self.expires_at,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, data: dict[str, Any]) -> SpotifyTokens:
|
||||
return cls(
|
||||
access_token=str(data.get("access_token") or ""),
|
||||
refresh_token=str(data.get("refresh_token") or ""),
|
||||
expires_at=float(data.get("expires_at") or 0),
|
||||
)
|
||||
|
||||
|
||||
class SpotifyTokenStore:
|
||||
def __init__(
|
||||
self,
|
||||
path: Path | None = None,
|
||||
*,
|
||||
no_keyring: bool = False,
|
||||
) -> None:
|
||||
self.path = path or credentials_path()
|
||||
self.no_keyring = no_keyring
|
||||
|
||||
def load(self) -> SpotifyTokens | None:
|
||||
env_refresh = os.environ.get(ENV_REFRESH)
|
||||
data = self._file_get()
|
||||
refresh = env_refresh or (data or {}).get("refresh_token")
|
||||
if not refresh:
|
||||
refresh = self._keyring_get()
|
||||
if not refresh:
|
||||
return None
|
||||
return SpotifyTokens(
|
||||
access_token=str((data or {}).get("access_token") or ""),
|
||||
refresh_token=str(refresh),
|
||||
expires_at=float((data or {}).get("expires_at") or 0),
|
||||
)
|
||||
|
||||
def save(self, tokens: SpotifyTokens) -> str:
|
||||
if not self.no_keyring and self._keyring_set(tokens.refresh_token):
|
||||
self._file_set(tokens, include_refresh=False)
|
||||
return "keyring"
|
||||
self._file_set(tokens, include_refresh=True)
|
||||
return "file"
|
||||
|
||||
def clear(self) -> None:
|
||||
if not self.no_keyring:
|
||||
self._keyring_delete()
|
||||
self._file_delete()
|
||||
|
||||
# -- keyring -------------------------------------------------------
|
||||
|
||||
def _keyring_get(self) -> str | None:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
return keyring.get_password(KEYRING_SERVICE, KEYRING_USER)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug("Spotify keyring read failed: %s", exc)
|
||||
return None
|
||||
|
||||
def _keyring_set(self, refresh_token: str) -> bool:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
keyring.set_password(KEYRING_SERVICE, KEYRING_USER, refresh_token)
|
||||
return True
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug("Spotify keyring write failed: %s", exc)
|
||||
return False
|
||||
|
||||
def _keyring_delete(self) -> None:
|
||||
try:
|
||||
import keyring
|
||||
|
||||
keyring.delete_password(KEYRING_SERVICE, KEYRING_USER)
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
|
||||
# -- file ----------------------------------------------------------
|
||||
|
||||
def _read_all(self) -> dict[str, Any]:
|
||||
try:
|
||||
data = json.loads(self.path.read_text(encoding="utf-8"))
|
||||
return data if isinstance(data, dict) else {}
|
||||
except (OSError, ValueError):
|
||||
return {}
|
||||
|
||||
def _file_get(self) -> dict[str, Any] | None:
|
||||
data = self._read_all().get("spotify")
|
||||
return data if isinstance(data, dict) else None
|
||||
|
||||
def _file_set(self, tokens: SpotifyTokens, *, include_refresh: bool) -> None:
|
||||
self.path.parent.mkdir(parents=True, exist_ok=True)
|
||||
data = self._read_all()
|
||||
spotify = data.get("spotify") if isinstance(data.get("spotify"), dict) else {}
|
||||
spotify["access_token"] = tokens.access_token
|
||||
spotify["expires_at"] = tokens.expires_at
|
||||
if include_refresh:
|
||||
spotify["refresh_token"] = tokens.refresh_token
|
||||
else:
|
||||
spotify.pop("refresh_token", None)
|
||||
data["spotify"] = spotify
|
||||
tmp = self.path.with_suffix(".tmp")
|
||||
tmp.write_text(json.dumps(data, ensure_ascii=False), encoding="utf-8")
|
||||
os.chmod(tmp, 0o600)
|
||||
tmp.replace(self.path)
|
||||
|
||||
def _file_delete(self) -> None:
|
||||
data = self._read_all()
|
||||
if "spotify" not in data:
|
||||
return
|
||||
data.pop("spotify", None)
|
||||
with suppress(OSError):
|
||||
self.path.write_text(json.dumps(data, ensure_ascii=False), encoding="utf-8")
|
||||
os.chmod(self.path, 0o600)
|
||||
|
||||
|
||||
def code_verifier() -> str:
|
||||
return secrets.token_urlsafe(64)
|
||||
|
||||
|
||||
def code_challenge(verifier: str) -> str:
|
||||
digest = hashlib.sha256(verifier.encode("ascii")).digest()
|
||||
return base64.urlsafe_b64encode(digest).decode("ascii").rstrip("=")
|
||||
|
||||
|
||||
class SpotifyOAuth:
|
||||
def __init__(
|
||||
self,
|
||||
client_id: str,
|
||||
redirect_uri: str,
|
||||
*,
|
||||
scopes: tuple[str, ...] = SCOPES,
|
||||
timeout: float = 300.0,
|
||||
) -> None:
|
||||
if not client_id:
|
||||
raise SpotifyAuthRequired()
|
||||
self.client_id = client_id
|
||||
self.redirect_uri = redirect_uri
|
||||
self.scopes = scopes
|
||||
self.timeout = timeout
|
||||
|
||||
def authorization_url(
|
||||
self,
|
||||
*,
|
||||
verifier: str,
|
||||
state: str,
|
||||
redirect_uri: str | None = None,
|
||||
) -> str:
|
||||
params = {
|
||||
"client_id": self.client_id,
|
||||
"response_type": "code",
|
||||
"redirect_uri": redirect_uri or self.redirect_uri,
|
||||
"code_challenge_method": "S256",
|
||||
"code_challenge": code_challenge(verifier),
|
||||
"state": state,
|
||||
"scope": " ".join(self.scopes),
|
||||
}
|
||||
return f"{AUTH_URL}?{urlencode(params)}"
|
||||
|
||||
def browser_flow(
|
||||
self,
|
||||
*,
|
||||
on_url: Callable[[str], None] | None = None,
|
||||
open_browser: bool = True,
|
||||
) -> SpotifyTokens:
|
||||
port = _free_port()
|
||||
redirect_uri = _with_port(self.redirect_uri, port)
|
||||
verifier = code_verifier()
|
||||
state = secrets.token_urlsafe(24)
|
||||
url = self.authorization_url(
|
||||
verifier=verifier, state=state, redirect_uri=redirect_uri
|
||||
)
|
||||
if on_url:
|
||||
on_url(url)
|
||||
if open_browser:
|
||||
with suppress(Exception):
|
||||
webbrowser.open(url)
|
||||
|
||||
code, returned_state = _wait_for_callback(port, self.timeout)
|
||||
if returned_state != state:
|
||||
raise SpotifyAuthInvalid("Spotify OAuth state mismatch")
|
||||
return self.exchange(code=code, verifier=verifier, redirect_uri=redirect_uri)
|
||||
|
||||
def print_url(self) -> tuple[str, str]:
|
||||
port = _free_port()
|
||||
redirect_uri = _with_port(self.redirect_uri, port)
|
||||
verifier = code_verifier()
|
||||
state = secrets.token_urlsafe(24)
|
||||
_save_pending(verifier, state, redirect_uri)
|
||||
return (
|
||||
self.authorization_url(
|
||||
verifier=verifier, state=state, redirect_uri=redirect_uri
|
||||
),
|
||||
redirect_uri,
|
||||
)
|
||||
|
||||
def exchange_code(self, code_or_url: str) -> SpotifyTokens:
|
||||
pending = _load_pending()
|
||||
if not pending:
|
||||
raise SpotifyAuthInvalid(
|
||||
"No pending Spotify OAuth flow",
|
||||
hint="Run: museater spotify auth --print-url",
|
||||
)
|
||||
code, state = _extract_code(code_or_url)
|
||||
if not code:
|
||||
raise InputRequired("No Spotify authorization code found")
|
||||
if state and state != pending["state"]:
|
||||
raise SpotifyAuthInvalid("Spotify OAuth state mismatch")
|
||||
tokens = self.exchange(
|
||||
code=code,
|
||||
verifier=str(pending["verifier"]),
|
||||
redirect_uri=str(pending["redirect_uri"]),
|
||||
)
|
||||
_clear_pending()
|
||||
return tokens
|
||||
|
||||
def exchange(self, *, code: str, verifier: str, redirect_uri: str) -> SpotifyTokens:
|
||||
response = requests.post(
|
||||
TOKEN_URL,
|
||||
data={
|
||||
"client_id": self.client_id,
|
||||
"grant_type": "authorization_code",
|
||||
"code": code,
|
||||
"redirect_uri": redirect_uri,
|
||||
"code_verifier": verifier,
|
||||
},
|
||||
timeout=30,
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise SpotifyAuthInvalid(
|
||||
f"Spotify token exchange failed with HTTP {response.status_code}",
|
||||
details={"body": response.text[:300]},
|
||||
)
|
||||
data = response.json()
|
||||
refresh = data.get("refresh_token")
|
||||
if not refresh:
|
||||
raise SpotifyAuthInvalid("Spotify token exchange returned no refresh token")
|
||||
return SpotifyTokens(
|
||||
access_token=str(data.get("access_token") or ""),
|
||||
refresh_token=str(refresh),
|
||||
expires_at=time.time() + int(data.get("expires_in") or 3600),
|
||||
)
|
||||
|
||||
def refresh(self, refresh_token: str) -> SpotifyTokens:
|
||||
response = requests.post(
|
||||
TOKEN_URL,
|
||||
data={
|
||||
"client_id": self.client_id,
|
||||
"grant_type": "refresh_token",
|
||||
"refresh_token": refresh_token,
|
||||
},
|
||||
timeout=30,
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise SpotifyAuthInvalid(
|
||||
f"Spotify token refresh failed with HTTP {response.status_code}",
|
||||
details={"body": response.text[:300]},
|
||||
)
|
||||
data = response.json()
|
||||
return SpotifyTokens(
|
||||
access_token=str(data.get("access_token") or ""),
|
||||
refresh_token=str(data.get("refresh_token") or refresh_token),
|
||||
expires_at=time.time() + int(data.get("expires_in") or 3600),
|
||||
)
|
||||
|
||||
|
||||
def _wait_for_callback(port: int, timeout: float) -> tuple[str, str]:
|
||||
result: dict[str, str] = {}
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
def do_GET(self) -> None: # noqa: N802
|
||||
parsed = urlparse(self.path)
|
||||
if not parsed.path.startswith("/callback"):
|
||||
self.send_response(404)
|
||||
self.end_headers()
|
||||
return
|
||||
params = parse_qs(parsed.query)
|
||||
result["code"] = params.get("code", [""])[0]
|
||||
result["state"] = params.get("state", [""])[0]
|
||||
self.send_response(200 if result["code"] else 400)
|
||||
self.send_header("Content-Type", "text/html; charset=utf-8")
|
||||
self.end_headers()
|
||||
body = (
|
||||
"<html><body style='font-family:system-ui;text-align:center;padding:60px'>"
|
||||
"<h2>Spotify login successful</h2>"
|
||||
"<p>You can close this tab and return to the terminal.</p>"
|
||||
"</body></html>"
|
||||
)
|
||||
self.wfile.write(body.encode("utf-8"))
|
||||
|
||||
def log_message(self, format: str, *args: object) -> None: # noqa: A002
|
||||
return
|
||||
|
||||
server = HTTPServer(("127.0.0.1", port), Handler)
|
||||
|
||||
def serve() -> None:
|
||||
deadline = time.time() + timeout
|
||||
while not result.get("code") and time.time() < deadline:
|
||||
server.timeout = max(0.1, deadline - time.time())
|
||||
server.handle_request()
|
||||
|
||||
thread = threading.Thread(target=serve, daemon=True)
|
||||
thread.start()
|
||||
thread.join(timeout + 5)
|
||||
server.server_close()
|
||||
if not result.get("code"):
|
||||
raise SpotifyAuthInvalid("Spotify OAuth callback did not return a code")
|
||||
return result["code"], result.get("state", "")
|
||||
|
||||
|
||||
def _extract_code(value: str) -> tuple[str, str]:
|
||||
value = value.strip()
|
||||
if not value:
|
||||
return "", ""
|
||||
if "code=" in value:
|
||||
params = parse_qs(urlparse(value).query)
|
||||
return params.get("code", [""])[0], params.get("state", [""])[0]
|
||||
return value, ""
|
||||
|
||||
|
||||
def _with_port(redirect_uri: str, port: int) -> str:
|
||||
parsed = urlparse(redirect_uri)
|
||||
if parsed.port:
|
||||
return redirect_uri
|
||||
host = parsed.hostname or "127.0.0.1"
|
||||
netloc = f"{host}:{port}"
|
||||
return urlunparse(parsed._replace(netloc=netloc))
|
||||
|
||||
|
||||
def _free_port() -> int:
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
return int(sock.getsockname()[1])
|
||||
|
||||
|
||||
def _pending_path() -> Path:
|
||||
return cache_dir() / "spotify_pkce.json"
|
||||
|
||||
|
||||
def _save_pending(verifier: str, state: str, redirect_uri: str) -> None:
|
||||
path = _pending_path()
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
path.write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"verifier": verifier,
|
||||
"state": state,
|
||||
"redirect_uri": redirect_uri,
|
||||
"created_at": time.time(),
|
||||
}
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
with suppress(OSError):
|
||||
os.chmod(path, 0o600)
|
||||
|
||||
|
||||
def _load_pending() -> dict[str, Any] | None:
|
||||
path = _pending_path()
|
||||
try:
|
||||
data = json.loads(path.read_text(encoding="utf-8"))
|
||||
except (OSError, ValueError):
|
||||
return None
|
||||
if time.time() - float(data.get("created_at") or 0) > 600:
|
||||
return None
|
||||
return data if isinstance(data, dict) else None
|
||||
|
||||
|
||||
def _clear_pending() -> None:
|
||||
with suppress(OSError):
|
||||
_pending_path().unlink()
|
||||
@@ -0,0 +1,230 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Minimal Spotify Web API client."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
from museater.errors import NetworkError, NotFound, RateLimited, UsageError
|
||||
from museater.providers.spotify.auth import (
|
||||
SpotifyAuthInvalid,
|
||||
SpotifyAuthRequired,
|
||||
SpotifyError,
|
||||
SpotifyOAuth,
|
||||
SpotifyTokens,
|
||||
SpotifyTokenStore,
|
||||
)
|
||||
from museater.providers.spotify.models import (
|
||||
SpotifyPlaylist,
|
||||
SpotifyTrack,
|
||||
SpotifyUser,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
BASE_URL = "https://api.spotify.com/v1/"
|
||||
_PLAYLIST_RE = re.compile(r"playlist[/:]([A-Za-z0-9]+)")
|
||||
_BARE_ID_RE = re.compile(r"^[A-Za-z0-9]{10,}$")
|
||||
|
||||
|
||||
class SpotifyForbidden(SpotifyError):
|
||||
def __init__(self, message: str = "Spotify denied access to this playlist") -> None:
|
||||
super().__init__(
|
||||
message
|
||||
+ "; Spotify only allows owned or collaborative playlists via this endpoint",
|
||||
code="SPOTIFY_FORBIDDEN",
|
||||
)
|
||||
self.exit_code = 4
|
||||
|
||||
|
||||
class SpotifyClient:
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
client_id: str,
|
||||
token_store: SpotifyTokenStore,
|
||||
market: str = "",
|
||||
redirect_uri: str = "http://127.0.0.1/callback",
|
||||
timeout: float = 30.0,
|
||||
) -> None:
|
||||
if not client_id:
|
||||
raise SpotifyAuthRequired()
|
||||
self.client_id = client_id
|
||||
self.token_store = token_store
|
||||
self.market = market
|
||||
self.oauth = SpotifyOAuth(client_id, redirect_uri)
|
||||
self.timeout = timeout
|
||||
self.session = requests.Session()
|
||||
self.tokens: SpotifyTokens | None = None
|
||||
|
||||
def ensure_token(self) -> str:
|
||||
tokens = self.token_store.load()
|
||||
if not tokens:
|
||||
raise SpotifyAuthRequired()
|
||||
if tokens.expired or not tokens.access_token:
|
||||
tokens = self.oauth.refresh(tokens.refresh_token)
|
||||
self.token_store.save(tokens)
|
||||
self.tokens = tokens
|
||||
return tokens.access_token
|
||||
|
||||
def _request(
|
||||
self,
|
||||
path: str,
|
||||
*,
|
||||
params: dict[str, Any] | None = None,
|
||||
retry_auth: bool = True,
|
||||
) -> dict[str, Any]:
|
||||
url = BASE_URL + path.lstrip("/")
|
||||
last_error: Exception | None = None
|
||||
for attempt in range(4):
|
||||
token = self.ensure_token()
|
||||
try:
|
||||
response = self.session.get(
|
||||
url,
|
||||
params=params,
|
||||
headers={"Authorization": f"Bearer {token}"},
|
||||
timeout=self.timeout,
|
||||
)
|
||||
except requests.RequestException as exc:
|
||||
last_error = exc
|
||||
time.sleep(min(2**attempt, 8))
|
||||
continue
|
||||
|
||||
if response.status_code == 200:
|
||||
try:
|
||||
return response.json()
|
||||
except ValueError as exc:
|
||||
raise SpotifyError("Spotify returned invalid JSON") from exc
|
||||
if response.status_code == 401 and retry_auth:
|
||||
# Force a refresh and retry once.
|
||||
tokens = self.token_store.load()
|
||||
if not tokens:
|
||||
raise SpotifyAuthRequired()
|
||||
refreshed = self.oauth.refresh(tokens.refresh_token)
|
||||
self.token_store.save(refreshed)
|
||||
return self._request(path, params=params, retry_auth=False)
|
||||
if response.status_code == 403:
|
||||
raise SpotifyForbidden()
|
||||
if response.status_code == 404:
|
||||
raise NotFound("Spotify playlist/item not found")
|
||||
if response.status_code == 429:
|
||||
if attempt == 3:
|
||||
raise RateLimited("Spotify rate limit reached")
|
||||
retry_after = response.headers.get("Retry-After")
|
||||
try:
|
||||
wait = float(retry_after) if retry_after else min(2**attempt, 8)
|
||||
except ValueError:
|
||||
wait = min(2**attempt, 8)
|
||||
time.sleep(wait)
|
||||
continue
|
||||
if response.status_code >= 500:
|
||||
last_error = SpotifyError(f"Spotify server error {response.status_code}")
|
||||
time.sleep(min(2**attempt, 8))
|
||||
continue
|
||||
raise SpotifyError(
|
||||
f"Spotify returned HTTP {response.status_code}: {response.text[:200]}"
|
||||
)
|
||||
raise NetworkError(f"Spotify request failed: {last_error}")
|
||||
|
||||
# -- user ----------------------------------------------------------
|
||||
|
||||
def me(self) -> SpotifyUser:
|
||||
return SpotifyUser.from_api(self._request("me"))
|
||||
|
||||
# -- playlists -----------------------------------------------------
|
||||
|
||||
def get_playlists(self, *, limit: int = 500) -> list[SpotifyPlaylist]:
|
||||
playlists: list[SpotifyPlaylist] = []
|
||||
offset = 0
|
||||
while len(playlists) < limit:
|
||||
data = self._request(
|
||||
"me/playlists", params={"limit": 50, "offset": offset}
|
||||
)
|
||||
items = data.get("items") or []
|
||||
for item in items:
|
||||
if isinstance(item, dict) and item.get("id"):
|
||||
playlists.append(SpotifyPlaylist.from_api(item))
|
||||
offset += len(items)
|
||||
if not items or offset >= int(data.get("total") or 0):
|
||||
break
|
||||
return playlists[:limit]
|
||||
|
||||
def get_playlist(self, playlist_id: str) -> SpotifyPlaylist:
|
||||
return SpotifyPlaylist.from_api(self._request(f"playlists/{playlist_id}"))
|
||||
|
||||
def get_playlist_tracks(
|
||||
self, playlist_id: str, *, limit: int = 10000
|
||||
) -> list[SpotifyTrack]:
|
||||
tracks: list[SpotifyTrack] = []
|
||||
offset = 0
|
||||
use_items = True
|
||||
while len(tracks) < limit:
|
||||
path = (
|
||||
f"playlists/{playlist_id}/items"
|
||||
if use_items
|
||||
else f"playlists/{playlist_id}/tracks"
|
||||
)
|
||||
params = {
|
||||
"limit": 50,
|
||||
"offset": offset,
|
||||
"additional_types": "track",
|
||||
}
|
||||
if self.market:
|
||||
params["market"] = self.market
|
||||
try:
|
||||
data = self._request(path, params=params)
|
||||
except SpotifyForbidden:
|
||||
if use_items:
|
||||
# Older public playlists may still be readable via the
|
||||
# deprecated endpoint. Try once, then surface the error.
|
||||
use_items = False
|
||||
offset = 0
|
||||
tracks = []
|
||||
continue
|
||||
raise
|
||||
except NotFound:
|
||||
if use_items:
|
||||
use_items = False
|
||||
offset = 0
|
||||
tracks = []
|
||||
continue
|
||||
raise
|
||||
items = data.get("items") or []
|
||||
for entry in items:
|
||||
if not isinstance(entry, dict):
|
||||
continue
|
||||
track_data = entry.get("item") or entry.get("track")
|
||||
track = SpotifyTrack.from_api(
|
||||
track_data,
|
||||
is_local=bool(entry.get("is_local")),
|
||||
)
|
||||
if track:
|
||||
tracks.append(track)
|
||||
offset += len(items)
|
||||
if not items or offset >= int(data.get("total") or 0):
|
||||
break
|
||||
return tracks[:limit]
|
||||
|
||||
|
||||
def parse_playlist_id(value: str) -> str:
|
||||
raw = value.strip()
|
||||
match = _PLAYLIST_RE.search(raw)
|
||||
if match:
|
||||
return match.group(1)
|
||||
if _BARE_ID_RE.fullmatch(raw):
|
||||
return raw
|
||||
raise UsageError(f"Unrecognized Spotify playlist: {value}")
|
||||
|
||||
|
||||
__all__ = [
|
||||
"SpotifyClient",
|
||||
"SpotifyForbidden",
|
||||
"SpotifyAuthRequired",
|
||||
"SpotifyAuthInvalid",
|
||||
"parse_playlist_id",
|
||||
]
|
||||
@@ -0,0 +1,127 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Spotify playlist -> Qobuz match -> download pipeline."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from museater.cancel import CancelToken
|
||||
from museater.config import Config
|
||||
from museater.download import DownloadOptions, _download_playlist_obj
|
||||
from museater.progress import Progress
|
||||
from museater.providers.qobuz.client import QobuzClient
|
||||
from museater.providers.qobuz.models import PlaylistInfo, TrackInfo
|
||||
from museater.providers.spotify.client import SpotifyClient
|
||||
from museater.providers.spotify.match import QobuzMatcher
|
||||
from museater.storage import Database
|
||||
from museater.urls import Target
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def import_playlist(
|
||||
*,
|
||||
spotify: SpotifyClient,
|
||||
qobuz: QobuzClient,
|
||||
config: Config,
|
||||
playlist_id: str,
|
||||
dry_run: bool = False,
|
||||
refresh_matches: bool = False,
|
||||
no_db: bool = False,
|
||||
no_cover: bool = False,
|
||||
no_tags: bool = False,
|
||||
playlist_as_albums: bool = False,
|
||||
limit: int | None = None,
|
||||
progress: Progress | None = None,
|
||||
cancel: CancelToken | None = None,
|
||||
) -> dict[str, Any]:
|
||||
progress = progress or Progress("off")
|
||||
cancel = cancel or CancelToken()
|
||||
db = None if no_db else Database()
|
||||
if db:
|
||||
db.init()
|
||||
|
||||
playlist = spotify.get_playlist(playlist_id)
|
||||
tracks = spotify.get_playlist_tracks(playlist_id, limit=limit or 10000)
|
||||
if limit:
|
||||
tracks = tracks[:limit]
|
||||
|
||||
matcher = QobuzMatcher(qobuz, db=db, refresh=refresh_matches)
|
||||
reports: list[dict[str, Any]] = []
|
||||
matched: list[TrackInfo] = []
|
||||
counts = {"matched": 0, "ambiguous": 0, "not_found": 0}
|
||||
|
||||
for position, track in enumerate(tracks, start=1):
|
||||
if cancel.cancelled:
|
||||
break
|
||||
result = matcher.match(track)
|
||||
counts[result.status] = counts.get(result.status, 0) + 1
|
||||
if result.status == "matched" and result.qobuz:
|
||||
matched.append(result.qobuz)
|
||||
reports.append(
|
||||
{
|
||||
"position": position,
|
||||
**result.to_dict(),
|
||||
}
|
||||
)
|
||||
|
||||
summary: dict[str, Any] = {
|
||||
"total": len(tracks),
|
||||
"matched": counts["matched"],
|
||||
"ambiguous": counts["ambiguous"],
|
||||
"not_found": counts["not_found"],
|
||||
"downloaded": 0,
|
||||
"skipped": 0,
|
||||
"failed": 0,
|
||||
"cancelled": 0,
|
||||
}
|
||||
download_result = None
|
||||
if matched and not dry_run and not cancel.cancelled:
|
||||
pseudo = PlaylistInfo(
|
||||
id=f"spotify:{playlist.id}",
|
||||
name=playlist.name,
|
||||
description=playlist.description,
|
||||
owner=playlist.owner or "Spotify",
|
||||
track_count=len(matched),
|
||||
cover_url=playlist.cover_url or matched[0].cover_url,
|
||||
tracks=tuple(matched),
|
||||
)
|
||||
options = DownloadOptions(
|
||||
dry_run=False,
|
||||
force=False,
|
||||
no_cover=no_cover,
|
||||
no_tags=no_tags,
|
||||
playlist_as_albums=playlist_as_albums,
|
||||
cancel=cancel,
|
||||
)
|
||||
download_result = _download_playlist_obj(
|
||||
_QobuzAdapter(qobuz),
|
||||
config,
|
||||
Target("playlist", f"spotify:{playlist.id}"),
|
||||
pseudo,
|
||||
options,
|
||||
db,
|
||||
progress,
|
||||
)
|
||||
for key in ("downloaded", "skipped", "failed", "cancelled"):
|
||||
summary[key] = int(download_result.get("summary", {}).get(key, 0))
|
||||
|
||||
cancelled = bool(summary["cancelled"] or cancel.cancelled)
|
||||
return {
|
||||
"playlist": playlist.to_dict(),
|
||||
"items": reports,
|
||||
"summary": summary,
|
||||
"cancelled": cancelled,
|
||||
"download": download_result,
|
||||
}
|
||||
|
||||
|
||||
class _QobuzAdapter:
|
||||
"""Minimal adapter so `_download_playlist_obj` can fetch album metadata."""
|
||||
|
||||
def __init__(self, client: QobuzClient) -> None:
|
||||
self.qobuz = client
|
||||
|
||||
def get_release(self, album_id: str):
|
||||
return self.qobuz.get_album(album_id)
|
||||
@@ -0,0 +1,177 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Match Spotify tracks to Qobuz tracks.
|
||||
|
||||
ISRC is the primary key: Qobuz catalog search accepts an ISRC and returns the
|
||||
exact track. The artist/title/duration fallback is intentionally strict; when
|
||||
the result is ambiguous the caller gets a report instead of a wrong download.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import difflib
|
||||
import logging
|
||||
import re
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
from museater.providers.qobuz.client import QobuzClient
|
||||
from museater.providers.qobuz.models import TrackInfo
|
||||
from museater.providers.spotify.models import SpotifyTrack
|
||||
from museater.storage import Database
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
MATCH_THRESHOLD = 0.85
|
||||
AMBIGUITY_MARGIN = 0.05
|
||||
|
||||
|
||||
@dataclass
|
||||
class MatchResult:
|
||||
status: str
|
||||
spotify: SpotifyTrack
|
||||
qobuz: TrackInfo | None = None
|
||||
score: float | None = None
|
||||
candidates: list[dict[str, Any]] = field(default_factory=list)
|
||||
reason: str | None = None
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return {
|
||||
"status": self.status,
|
||||
"spotify": self.spotify.to_dict(),
|
||||
"qobuz": self.qobuz.to_dict() if self.qobuz else None,
|
||||
"score": self.score,
|
||||
"candidates": self.candidates,
|
||||
"reason": self.reason,
|
||||
}
|
||||
|
||||
|
||||
class QobuzMatcher:
|
||||
def __init__(
|
||||
self,
|
||||
client: QobuzClient,
|
||||
*,
|
||||
db: Database | None = None,
|
||||
refresh: bool = False,
|
||||
) -> None:
|
||||
self.client = client
|
||||
self.db = db
|
||||
self.refresh = refresh
|
||||
if self.db:
|
||||
self.db.init()
|
||||
|
||||
def match(self, track: SpotifyTrack) -> MatchResult:
|
||||
cached = None if self.refresh else (self.db.get_spotify_match(track.id) if self.db else None)
|
||||
if cached and cached.get("status") == "matched" and cached.get("qobuz_track_id"):
|
||||
try:
|
||||
qobuz = self.client.get_track(str(cached["qobuz_track_id"]))
|
||||
return MatchResult(
|
||||
"matched",
|
||||
track,
|
||||
qobuz,
|
||||
float(cached.get("score") or 1.0),
|
||||
reason="cache",
|
||||
)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug("Cached Qobuz match is stale: %s", exc)
|
||||
|
||||
result = self._match_uncached(track)
|
||||
if self.db:
|
||||
self.db.save_spotify_match(
|
||||
track.id,
|
||||
isrc=track.isrc,
|
||||
qobuz_track_id=result.qobuz.id if result.qobuz else None,
|
||||
status=result.status,
|
||||
score=result.score,
|
||||
title=track.title,
|
||||
artist=track.artist,
|
||||
)
|
||||
return result
|
||||
|
||||
def _match_uncached(self, track: SpotifyTrack) -> MatchResult:
|
||||
if track.isrc:
|
||||
try:
|
||||
items = self.client.search_tracks_raw(track.isrc, limit=10)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug("ISRC search failed for %s: %s", track.isrc, exc)
|
||||
items = []
|
||||
exact = [
|
||||
item
|
||||
for item in items
|
||||
if str(item.get("isrc") or "").upper() == track.isrc.upper()
|
||||
]
|
||||
if exact:
|
||||
qobuz = TrackInfo.from_api(exact[0])
|
||||
return MatchResult("matched", track, qobuz, 1.0, reason="isrc")
|
||||
|
||||
query = " ".join(part for part in (track.artist, track.title) if part)
|
||||
if not query:
|
||||
return MatchResult("not_found", track, reason="no artist/title")
|
||||
try:
|
||||
items = self.client.search_tracks_raw(query, limit=10)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug("Qobuz search failed for %s: %s", query, exc)
|
||||
return MatchResult("not_found", track, reason="search error")
|
||||
|
||||
scored: list[tuple[float, TrackInfo]] = []
|
||||
for item in items:
|
||||
qobuz = TrackInfo.from_api(item)
|
||||
scored.append((_score(track, qobuz), qobuz))
|
||||
scored.sort(key=lambda pair: pair[0], reverse=True)
|
||||
candidates = [
|
||||
{
|
||||
"id": qobuz.id,
|
||||
"title": qobuz.display_title,
|
||||
"artist": qobuz.artist,
|
||||
"duration_seconds": qobuz.duration_seconds,
|
||||
"score": round(score, 4),
|
||||
}
|
||||
for score, qobuz in scored[:5]
|
||||
]
|
||||
|
||||
if not scored:
|
||||
return MatchResult("not_found", track, candidates=[])
|
||||
best_score, best = scored[0]
|
||||
second_score = scored[1][0] if len(scored) > 1 else 0.0
|
||||
if best_score >= MATCH_THRESHOLD and best_score - second_score >= AMBIGUITY_MARGIN:
|
||||
return MatchResult("matched", track, best, round(best_score, 4), candidates=candidates)
|
||||
if best_score >= 0.6:
|
||||
return MatchResult(
|
||||
"ambiguous",
|
||||
track,
|
||||
score=round(best_score, 4),
|
||||
candidates=candidates,
|
||||
reason="multiple close candidates"
|
||||
if second_score
|
||||
else "weak match",
|
||||
)
|
||||
return MatchResult("not_found", track, score=round(best_score, 4), candidates=candidates)
|
||||
|
||||
|
||||
def _score(spotify: SpotifyTrack, qobuz: TrackInfo) -> float:
|
||||
if spotify.isrc and qobuz.isrc and spotify.isrc.upper() == qobuz.isrc.upper():
|
||||
return 1.0
|
||||
|
||||
title_ratio = _ratio(spotify.title, qobuz.display_title)
|
||||
artist_ratio = _ratio(spotify.artist, qobuz.artist or "")
|
||||
if spotify.duration_seconds and qobuz.duration_seconds:
|
||||
diff = abs(spotify.duration_seconds - qobuz.duration_seconds)
|
||||
duration_ratio = max(0.0, 1.0 - diff / 15.0)
|
||||
return title_ratio * 0.5 + artist_ratio * 0.3 + duration_ratio * 0.2
|
||||
return title_ratio * 0.6 + artist_ratio * 0.4
|
||||
|
||||
|
||||
def _ratio(left: str, right: str) -> float:
|
||||
a = _normalize(left)
|
||||
b = _normalize(right)
|
||||
if not a or not b:
|
||||
return 0.0
|
||||
if a == b:
|
||||
return 1.0
|
||||
return difflib.SequenceMatcher(None, a, b).ratio()
|
||||
|
||||
|
||||
def _normalize(value: str) -> str:
|
||||
value = value.lower().strip()
|
||||
value = re.sub(r"\s*[\(\[].*?[\)\]]\s*", " ", value)
|
||||
value = re.sub(r"[^\w\s]", " ", value)
|
||||
return re.sub(r"\s+", " ", value).strip()
|
||||
@@ -0,0 +1,132 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Normalized Spotify models."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import asdict, dataclass
|
||||
from typing import Any
|
||||
|
||||
|
||||
def _text(value: Any) -> str | None:
|
||||
if value is None:
|
||||
return None
|
||||
text = str(value).strip()
|
||||
return text or None
|
||||
|
||||
|
||||
def _first_image(images: Any) -> str | None:
|
||||
if isinstance(images, list):
|
||||
for image in images:
|
||||
if isinstance(image, dict) and image.get("url"):
|
||||
return str(image["url"])
|
||||
return None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SpotifyPlaylist:
|
||||
id: str
|
||||
name: str
|
||||
owner: str | None = None
|
||||
description: str | None = None
|
||||
track_count: int | None = None
|
||||
cover_url: str | None = None
|
||||
public: bool | None = None
|
||||
collaborative: bool | None = None
|
||||
url: str | None = None
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> SpotifyPlaylist:
|
||||
owner = data.get("owner") if isinstance(data.get("owner"), dict) else {}
|
||||
tracks = data.get("tracks") if isinstance(data.get("tracks"), dict) else {}
|
||||
return cls(
|
||||
id=str(data.get("id", "")),
|
||||
name=str(data.get("name") or "Unknown"),
|
||||
owner=_text(owner.get("display_name")) or _text(owner.get("id")),
|
||||
description=_text(data.get("description")),
|
||||
track_count=tracks.get("total") if isinstance(tracks.get("total"), int) else None,
|
||||
cover_url=_first_image(data.get("images")),
|
||||
public=data.get("public"),
|
||||
collaborative=data.get("collaborative"),
|
||||
url=_text((data.get("external_urls") or {}).get("spotify")),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SpotifyTrack:
|
||||
id: str
|
||||
title: str
|
||||
artists: tuple[str, ...] = ()
|
||||
album: str | None = None
|
||||
duration_seconds: int | None = None
|
||||
isrc: str | None = None
|
||||
is_local: bool = False
|
||||
is_playable: bool | None = None
|
||||
cover_url: str | None = None
|
||||
url: str | None = None
|
||||
|
||||
@property
|
||||
def artist(self) -> str:
|
||||
return ", ".join(self.artists)
|
||||
|
||||
@classmethod
|
||||
def from_api(
|
||||
cls,
|
||||
data: dict[str, Any],
|
||||
*,
|
||||
is_local: bool = False,
|
||||
) -> SpotifyTrack | None:
|
||||
if not isinstance(data, dict):
|
||||
return None
|
||||
if data.get("type") not in (None, "track"):
|
||||
return None
|
||||
if is_local or data.get("is_local"):
|
||||
return None
|
||||
track_id = _text(data.get("id"))
|
||||
if not track_id:
|
||||
return None
|
||||
artists = tuple(
|
||||
str(artist.get("name"))
|
||||
for artist in data.get("artists") or []
|
||||
if isinstance(artist, dict) and artist.get("name")
|
||||
)
|
||||
album = data.get("album") if isinstance(data.get("album"), dict) else {}
|
||||
duration_ms = data.get("duration_ms")
|
||||
duration = int(duration_ms / 1000) if isinstance(duration_ms, (int, float)) else None
|
||||
return cls(
|
||||
id=track_id,
|
||||
title=str(data.get("name") or "Unknown").strip(),
|
||||
artists=artists,
|
||||
album=_text(album.get("name")),
|
||||
duration_seconds=duration,
|
||||
isrc=_text((data.get("external_ids") or {}).get("isrc")),
|
||||
is_local=bool(data.get("is_local")),
|
||||
is_playable=data.get("is_playable"),
|
||||
cover_url=_first_image(album.get("images")),
|
||||
url=_text((data.get("external_urls") or {}).get("spotify")),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
payload = asdict(self)
|
||||
payload["artist"] = self.artist
|
||||
return payload
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SpotifyUser:
|
||||
id: str | None
|
||||
display_name: str | None = None
|
||||
country: str | None = None
|
||||
|
||||
@classmethod
|
||||
def from_api(cls, data: dict[str, Any]) -> SpotifyUser:
|
||||
return cls(
|
||||
id=_text(data.get("id")),
|
||||
display_name=_text(data.get("display_name")),
|
||||
country=_text(data.get("country")),
|
||||
)
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
@@ -0,0 +1,395 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""SQLite download history and idempotency.
|
||||
|
||||
The database is intentionally a cache/index, not the source of truth. If a
|
||||
recorded file is gone, museater downloads it again. If a recorded album folder
|
||||
was renamed, a `.museater.json` marker lets us find it without re-downloading.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import logging
|
||||
import sqlite3
|
||||
from collections.abc import Iterable
|
||||
from contextlib import closing
|
||||
from dataclasses import dataclass
|
||||
from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from museater.paths import database_path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
SCHEMA_VERSION = 1
|
||||
MARKER_NAME = ".museater.json"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class DownloadRecord:
|
||||
provider: str
|
||||
item_type: str
|
||||
item_id: str
|
||||
requested_quality: int
|
||||
delivered_quality: int | None = None
|
||||
file_format: str | None = None
|
||||
bit_depth: int | None = None
|
||||
sample_rate: float | None = None
|
||||
path: str | None = None
|
||||
status: str = "completed"
|
||||
title: str | None = None
|
||||
artist: str | None = None
|
||||
album: str | None = None
|
||||
release_date: str | None = None
|
||||
url: str | None = None
|
||||
file_size: int | None = None
|
||||
parent_id: str | None = None
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
return {
|
||||
"provider": self.provider,
|
||||
"item_type": self.item_type,
|
||||
"item_id": self.item_id,
|
||||
"parent_id": self.parent_id,
|
||||
"requested_quality": self.requested_quality,
|
||||
"delivered_quality": self.delivered_quality,
|
||||
"file_format": self.file_format,
|
||||
"bit_depth": self.bit_depth,
|
||||
"sample_rate": self.sample_rate,
|
||||
"path": self.path,
|
||||
"status": self.status,
|
||||
"title": self.title,
|
||||
"artist": self.artist,
|
||||
"album": self.album,
|
||||
"release_date": self.release_date,
|
||||
"url": self.url,
|
||||
"file_size": self.file_size,
|
||||
}
|
||||
|
||||
|
||||
class Database:
|
||||
def __init__(self, path: Path | None = None) -> None:
|
||||
self.path = path or database_path()
|
||||
|
||||
def connect(self) -> sqlite3.Connection:
|
||||
self.path.parent.mkdir(parents=True, exist_ok=True)
|
||||
connection = sqlite3.connect(self.path, timeout=30)
|
||||
connection.row_factory = sqlite3.Row
|
||||
connection.execute("PRAGMA busy_timeout=30000")
|
||||
connection.execute("PRAGMA journal_mode=WAL")
|
||||
return connection
|
||||
|
||||
def init(self) -> None:
|
||||
with closing(self.connect()) as connection, connection:
|
||||
connection.execute(
|
||||
"CREATE TABLE IF NOT EXISTS schema_version (version INTEGER NOT NULL)"
|
||||
)
|
||||
row = connection.execute("SELECT version FROM schema_version LIMIT 1").fetchone()
|
||||
if row is None:
|
||||
connection.execute("INSERT INTO schema_version(version) VALUES (?)", (SCHEMA_VERSION,))
|
||||
connection.execute(
|
||||
"""
|
||||
CREATE TABLE IF NOT EXISTS downloads (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
provider TEXT NOT NULL DEFAULT 'qobuz',
|
||||
item_type TEXT NOT NULL,
|
||||
item_id TEXT NOT NULL,
|
||||
parent_id TEXT,
|
||||
requested_quality INTEGER NOT NULL,
|
||||
delivered_quality INTEGER,
|
||||
file_format TEXT,
|
||||
bit_depth INTEGER,
|
||||
sample_rate REAL,
|
||||
path TEXT,
|
||||
status TEXT NOT NULL DEFAULT 'completed',
|
||||
title TEXT,
|
||||
artist TEXT,
|
||||
album TEXT,
|
||||
release_date TEXT,
|
||||
url TEXT,
|
||||
file_size INTEGER,
|
||||
created_at TEXT NOT NULL,
|
||||
updated_at TEXT NOT NULL,
|
||||
UNIQUE(provider, item_type, item_id, requested_quality)
|
||||
)
|
||||
"""
|
||||
)
|
||||
connection.execute(
|
||||
"CREATE INDEX IF NOT EXISTS idx_downloads_parent "
|
||||
"ON downloads(provider, parent_id)"
|
||||
)
|
||||
connection.execute(
|
||||
"CREATE INDEX IF NOT EXISTS idx_downloads_updated "
|
||||
"ON downloads(updated_at)"
|
||||
)
|
||||
connection.execute(
|
||||
"""
|
||||
CREATE TABLE IF NOT EXISTS spotify_matches (
|
||||
spotify_id TEXT PRIMARY KEY,
|
||||
isrc TEXT,
|
||||
qobuz_track_id TEXT,
|
||||
status TEXT NOT NULL,
|
||||
score REAL,
|
||||
title TEXT,
|
||||
artist TEXT,
|
||||
updated_at TEXT NOT NULL
|
||||
)
|
||||
"""
|
||||
)
|
||||
|
||||
def record(self, record: DownloadRecord) -> None:
|
||||
self.record_many([record])
|
||||
|
||||
def record_many(self, records: Iterable[DownloadRecord]) -> None:
|
||||
now = _now()
|
||||
rows = [
|
||||
(
|
||||
record.provider,
|
||||
record.item_type,
|
||||
record.item_id,
|
||||
record.parent_id,
|
||||
record.requested_quality,
|
||||
record.delivered_quality,
|
||||
record.file_format,
|
||||
record.bit_depth,
|
||||
record.sample_rate,
|
||||
record.path,
|
||||
record.status,
|
||||
record.title,
|
||||
record.artist,
|
||||
record.album,
|
||||
record.release_date,
|
||||
record.url,
|
||||
record.file_size,
|
||||
now,
|
||||
now,
|
||||
)
|
||||
for record in records
|
||||
]
|
||||
if not rows:
|
||||
return
|
||||
with closing(self.connect()) as connection, connection:
|
||||
connection.executemany(
|
||||
"""
|
||||
INSERT INTO downloads (
|
||||
provider, item_type, item_id, parent_id, requested_quality,
|
||||
delivered_quality, file_format, bit_depth, sample_rate, path,
|
||||
status, title, artist, album, release_date, url, file_size,
|
||||
created_at, updated_at
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
ON CONFLICT(provider, item_type, item_id, requested_quality)
|
||||
DO UPDATE SET
|
||||
parent_id=excluded.parent_id,
|
||||
delivered_quality=excluded.delivered_quality,
|
||||
file_format=excluded.file_format,
|
||||
bit_depth=excluded.bit_depth,
|
||||
sample_rate=excluded.sample_rate,
|
||||
path=excluded.path,
|
||||
status=excluded.status,
|
||||
title=excluded.title,
|
||||
artist=excluded.artist,
|
||||
album=excluded.album,
|
||||
release_date=excluded.release_date,
|
||||
url=excluded.url,
|
||||
file_size=excluded.file_size,
|
||||
updated_at=excluded.updated_at
|
||||
WHERE downloads.status != 'completed' OR excluded.status = 'completed'
|
||||
""",
|
||||
rows,
|
||||
)
|
||||
|
||||
def find_completed(
|
||||
self,
|
||||
*,
|
||||
item_type: str,
|
||||
item_id: str,
|
||||
requested_quality: int,
|
||||
provider: str = "qobuz",
|
||||
) -> DownloadRecord | None:
|
||||
with closing(self.connect()) as connection:
|
||||
row = connection.execute(
|
||||
"""
|
||||
SELECT * FROM downloads
|
||||
WHERE provider = ? AND item_type = ? AND item_id = ?
|
||||
AND requested_quality >= ? AND status = 'completed'
|
||||
ORDER BY requested_quality DESC, updated_at DESC
|
||||
LIMIT 1
|
||||
""",
|
||||
(provider, item_type, item_id, requested_quality),
|
||||
).fetchone()
|
||||
return _record_from_row(row) if row else None
|
||||
|
||||
def update_path(
|
||||
self,
|
||||
*,
|
||||
item_type: str,
|
||||
item_id: str,
|
||||
path: str,
|
||||
provider: str = "qobuz",
|
||||
) -> None:
|
||||
with closing(self.connect()) as connection, connection:
|
||||
connection.execute(
|
||||
"""
|
||||
UPDATE downloads SET path = ?, updated_at = ?
|
||||
WHERE provider = ? AND item_type = ? AND item_id = ?
|
||||
AND status = 'completed'
|
||||
""",
|
||||
(path, _now(), provider, item_type, item_id),
|
||||
)
|
||||
|
||||
def get_spotify_match(self, spotify_id: str) -> dict[str, Any] | None:
|
||||
with closing(self.connect()) as connection:
|
||||
row = connection.execute(
|
||||
"SELECT * FROM spotify_matches WHERE spotify_id = ?",
|
||||
(spotify_id,),
|
||||
).fetchone()
|
||||
return dict(row) if row else None
|
||||
|
||||
def save_spotify_match(
|
||||
self,
|
||||
spotify_id: str,
|
||||
*,
|
||||
isrc: str | None,
|
||||
qobuz_track_id: str | None,
|
||||
status: str,
|
||||
score: float | None,
|
||||
title: str | None,
|
||||
artist: str | None,
|
||||
) -> None:
|
||||
with closing(self.connect()) as connection, connection:
|
||||
connection.execute(
|
||||
"""
|
||||
INSERT INTO spotify_matches (
|
||||
spotify_id, isrc, qobuz_track_id, status, score, title, artist,
|
||||
updated_at
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
||||
ON CONFLICT(spotify_id) DO UPDATE SET
|
||||
isrc=excluded.isrc,
|
||||
qobuz_track_id=excluded.qobuz_track_id,
|
||||
status=excluded.status,
|
||||
score=excluded.score,
|
||||
title=excluded.title,
|
||||
artist=excluded.artist,
|
||||
updated_at=excluded.updated_at
|
||||
""",
|
||||
(
|
||||
spotify_id,
|
||||
isrc,
|
||||
qobuz_track_id,
|
||||
status,
|
||||
score,
|
||||
title,
|
||||
artist,
|
||||
_now(),
|
||||
),
|
||||
)
|
||||
|
||||
def clear_spotify_matches(self) -> None:
|
||||
with closing(self.connect()) as connection, connection:
|
||||
connection.execute("DELETE FROM spotify_matches")
|
||||
|
||||
def history(self, limit: int = 50) -> list[dict[str, Any]]:
|
||||
with closing(self.connect()) as connection:
|
||||
rows = connection.execute(
|
||||
"""
|
||||
SELECT * FROM downloads
|
||||
ORDER BY updated_at DESC
|
||||
LIMIT ?
|
||||
""",
|
||||
(max(1, min(limit, 1000)),),
|
||||
).fetchall()
|
||||
return [dict(row) for row in rows]
|
||||
|
||||
def stats(self) -> dict[str, Any]:
|
||||
with closing(self.connect()) as connection:
|
||||
total = connection.execute("SELECT COUNT(*) FROM downloads").fetchone()[0]
|
||||
albums = connection.execute(
|
||||
"SELECT COUNT(*) FROM downloads WHERE item_type = 'album'"
|
||||
).fetchone()[0]
|
||||
tracks = connection.execute(
|
||||
"SELECT COUNT(*) FROM downloads WHERE item_type = 'track'"
|
||||
).fetchone()[0]
|
||||
artists = connection.execute(
|
||||
"SELECT COUNT(DISTINCT artist) FROM downloads WHERE artist IS NOT NULL AND artist != ''"
|
||||
).fetchone()[0]
|
||||
bytes_total = connection.execute(
|
||||
"SELECT COALESCE(SUM(file_size), 0) FROM downloads WHERE item_type = 'track'"
|
||||
).fetchone()[0]
|
||||
last = connection.execute(
|
||||
"SELECT updated_at FROM downloads ORDER BY updated_at DESC LIMIT 1"
|
||||
).fetchone()
|
||||
return {
|
||||
"records": total,
|
||||
"albums": albums,
|
||||
"tracks": tracks,
|
||||
"artists": artists,
|
||||
"bytes": bytes_total,
|
||||
"last_download": last[0] if last else None,
|
||||
}
|
||||
|
||||
|
||||
def write_marker(
|
||||
folder: Path,
|
||||
*,
|
||||
release_id: str,
|
||||
title: str,
|
||||
artist: str | None,
|
||||
requested_quality: int,
|
||||
status: str,
|
||||
tracks: list[dict[str, Any]],
|
||||
) -> Path:
|
||||
path = folder / MARKER_NAME
|
||||
payload = {
|
||||
"provider": "qobuz",
|
||||
"album_id": release_id,
|
||||
"title": title,
|
||||
"artist": artist,
|
||||
"requested_quality": requested_quality,
|
||||
"status": status,
|
||||
"updated_at": _now(),
|
||||
"tracks": tracks,
|
||||
}
|
||||
path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
return path
|
||||
|
||||
|
||||
def find_marker(root: Path, album_id: str) -> Path | None:
|
||||
"""Find a renamed album folder by its marker.
|
||||
|
||||
Only called when the DB path is gone, so the usual cost is zero. A full
|
||||
`rglob` on a huge library is still cheaper than re-downloading an album.
|
||||
"""
|
||||
root = root.expanduser()
|
||||
if not root.exists():
|
||||
return None
|
||||
try:
|
||||
for marker in root.rglob(MARKER_NAME):
|
||||
try:
|
||||
data = json.loads(marker.read_text(encoding="utf-8"))
|
||||
except (OSError, ValueError):
|
||||
continue
|
||||
if str(data.get("album_id")) == str(album_id):
|
||||
return marker.parent
|
||||
except OSError:
|
||||
return None
|
||||
return None
|
||||
|
||||
|
||||
def read_marker(folder: Path) -> dict[str, Any] | None:
|
||||
try:
|
||||
return json.loads((folder / MARKER_NAME).read_text(encoding="utf-8"))
|
||||
except (OSError, ValueError):
|
||||
return None
|
||||
|
||||
|
||||
def _record_from_row(row: sqlite3.Row) -> DownloadRecord:
|
||||
payload = dict(row)
|
||||
payload.pop("id", None)
|
||||
payload.pop("created_at", None)
|
||||
payload.pop("updated_at", None)
|
||||
return DownloadRecord(**payload)
|
||||
|
||||
|
||||
def _now() -> str:
|
||||
return datetime.now(UTC).isoformat()
|
||||
@@ -0,0 +1,55 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""Qobuz URL and ID parsing."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from dataclasses import dataclass
|
||||
|
||||
from museater.errors import UsageError
|
||||
|
||||
TARGET_TYPES = ("album", "track", "playlist", "artist", "label")
|
||||
|
||||
_URL_RE = re.compile(
|
||||
r"(?:https?://(?:www|open|play)\.qobuz\.com)?"
|
||||
r"(?:/[a-z]{2}-[a-z]{2})?/"
|
||||
r"(album|artist|track|playlist|label)"
|
||||
r"(?:/[-\w\d]+)?/([\w\d]+)",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
_BARE_ID_RE = re.compile(r"^[A-Za-z0-9]{5,32}$")
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Target:
|
||||
type: str
|
||||
id: str
|
||||
url: str | None = None
|
||||
original: str | None = None
|
||||
|
||||
def to_dict(self) -> dict[str, str | None]:
|
||||
return {"type": self.type, "id": self.id, "url": self.url}
|
||||
|
||||
|
||||
def parse_target(value: str, *, default_type: str | None = None) -> Target:
|
||||
raw = value.strip()
|
||||
if not raw:
|
||||
raise UsageError("Empty target")
|
||||
|
||||
match = _URL_RE.search(raw)
|
||||
if match:
|
||||
target_type, target_id = match.groups()
|
||||
return Target(target_type.lower(), target_id, url=raw, original=raw)
|
||||
|
||||
if _BARE_ID_RE.fullmatch(raw):
|
||||
target_type = (default_type or "album").lower()
|
||||
if target_type not in TARGET_TYPES:
|
||||
raise UsageError(
|
||||
f"Unknown target type '{target_type}'", hint=f"Use one of: {', '.join(TARGET_TYPES)}"
|
||||
)
|
||||
return Target(target_type, raw, url=None, original=raw)
|
||||
|
||||
raise UsageError(
|
||||
f"Unrecognized Qobuz target: {value}",
|
||||
hint="Pass a play.qobuz.com/open.qobuz.com URL, a www.qobuz.com URL, or a bare ID with --type",
|
||||
)
|
||||
@@ -0,0 +1,36 @@
|
||||
import os
|
||||
import stat
|
||||
|
||||
from museater.providers.qobuz.auth import TokenStore, extract_code
|
||||
|
||||
|
||||
def test_token_store_file_roundtrip(tmp_path):
|
||||
path = tmp_path / "credentials.json"
|
||||
store = TokenStore(path, no_keyring=True)
|
||||
assert store.load() is None
|
||||
|
||||
assert store.save("abc123") == "file"
|
||||
loaded = store.load()
|
||||
assert loaded is not None
|
||||
assert loaded.token == "abc123"
|
||||
assert loaded.source == "file"
|
||||
assert stat.S_IMODE(os.stat(path).st_mode) == 0o600
|
||||
|
||||
store.clear()
|
||||
assert store.load() is None
|
||||
|
||||
|
||||
def test_env_token_has_priority(tmp_path, monkeypatch):
|
||||
store = TokenStore(tmp_path / "credentials.json", no_keyring=True)
|
||||
store.save("file-token")
|
||||
monkeypatch.setenv("MUSEATER_QOBUZ_TOKEN", "env-token")
|
||||
loaded = store.load()
|
||||
assert loaded is not None
|
||||
assert loaded.token == "env-token"
|
||||
assert loaded.source == "env"
|
||||
|
||||
|
||||
def test_extract_code():
|
||||
assert extract_code("abc") == "abc"
|
||||
assert extract_code("https://localhost:1234/?code=xyz") == "xyz"
|
||||
assert extract_code("https://localhost:1234/?code_autorisation=xyz") == "xyz"
|
||||
@@ -0,0 +1,17 @@
|
||||
import pytest
|
||||
|
||||
from museater.cancel import CancelToken
|
||||
from museater.errors import CancelledError
|
||||
|
||||
|
||||
def test_cancel_token():
|
||||
token = CancelToken()
|
||||
assert token.cancelled is False
|
||||
token.raise_if_cancelled()
|
||||
|
||||
token.cancel()
|
||||
assert token.cancelled is True
|
||||
with pytest.raises(CancelledError) as exc:
|
||||
token.raise_if_cancelled()
|
||||
assert exc.value.code == "CANCELLED"
|
||||
assert exc.value.exit_code == 130
|
||||
@@ -0,0 +1,59 @@
|
||||
import json
|
||||
|
||||
import pytest
|
||||
|
||||
from museater.cli import main
|
||||
|
||||
|
||||
def test_help_exits_zero():
|
||||
with pytest.raises(SystemExit) as exc:
|
||||
main(["--help"])
|
||||
assert exc.value.code == 0
|
||||
|
||||
|
||||
def test_schema_is_json(capsys):
|
||||
assert main(["--json", "schema"]) == 0
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["ok"] is True
|
||||
assert payload["command"] == "schema"
|
||||
assert payload["data"]["properties"]["schema_version"]["const"] == "1"
|
||||
|
||||
|
||||
def test_config_path_json(capsys, tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("MUSEATER_CONFIG", str(tmp_path / "config.toml"))
|
||||
assert main(["--json", "config", "path"]) == 0
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["data"]["path"] == str(tmp_path / "config.toml")
|
||||
|
||||
|
||||
def test_doctor_offline_json(capsys, tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("MUSEATER_OUTPUT_DIR", str(tmp_path / "out"))
|
||||
monkeypatch.setenv("MUSEATER_DATA_DIR", str(tmp_path / "data"))
|
||||
monkeypatch.setenv("MUSEATER_CONFIG", str(tmp_path / "config.toml"))
|
||||
assert main(["--json", "doctor", "--offline"]) == 0
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["command"] == "doctor"
|
||||
assert payload["data"]["ok"] is True
|
||||
names = {check["name"] for check in payload["data"]["checks"]}
|
||||
assert {"python", "output_dir", "ffmpeg"} <= names
|
||||
|
||||
|
||||
def test_stats_empty_json(capsys, tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("MUSEATER_DATA_DIR", str(tmp_path / "data"))
|
||||
assert main(["--json", "stats"]) == 0
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["data"]["records"] == 0
|
||||
|
||||
|
||||
def test_history_empty_json(capsys, tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("MUSEATER_DATA_DIR", str(tmp_path / "data"))
|
||||
assert main(["--json", "history"]) == 0
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["data"]["items"] == []
|
||||
|
||||
|
||||
def test_usage_error_is_structured(capsys):
|
||||
assert main(["--json", "qobuz", "search"]) == 2
|
||||
payload = json.loads(capsys.readouterr().out)
|
||||
assert payload["ok"] is False
|
||||
assert payload["error"]["code"] == "USAGE"
|
||||
@@ -0,0 +1,27 @@
|
||||
from museater.download import _write_playlist_file
|
||||
from museater.providers.qobuz.models import TrackInfo
|
||||
|
||||
|
||||
def test_write_playlist_file_order(tmp_path):
|
||||
first = tmp_path / "Artist - First.flac"
|
||||
second = tmp_path / "Artist - Second.flac"
|
||||
first.write_bytes(b"a")
|
||||
second.write_bytes(b"b")
|
||||
tracks = [
|
||||
TrackInfo(id="t1", title="First", duration_seconds=10, artist="Artist"),
|
||||
TrackInfo(id="t2", title="Second", duration_seconds=20, artist="Artist"),
|
||||
]
|
||||
results = [
|
||||
{"id": "t1", "status": "downloaded", "path": str(first)},
|
||||
{"id": "t2", "status": "downloaded", "path": str(second)},
|
||||
]
|
||||
path = _write_playlist_file(tmp_path, "Mix", tracks, results)
|
||||
assert path is not None
|
||||
text = path.read_text(encoding="utf-8")
|
||||
assert text.splitlines() == [
|
||||
"#EXTM3U",
|
||||
"#EXTINF:10,Artist - First",
|
||||
"Artist - First.flac",
|
||||
"#EXTINF:20,Artist - Second",
|
||||
"Artist - Second.flac",
|
||||
]
|
||||
@@ -0,0 +1,54 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from museater.config import Config, load_config, save_config
|
||||
from museater.errors import ConfigError
|
||||
|
||||
|
||||
def test_defaults_without_file(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("MUSEATER_OUTPUT_DIR", str(tmp_path / "out"))
|
||||
cfg = load_config(tmp_path / "missing.toml")
|
||||
assert cfg.qobuz.quality == 27
|
||||
assert cfg.qobuz.auto_downgrade is True
|
||||
assert cfg.general.output_dir == tmp_path / "out"
|
||||
|
||||
|
||||
def test_load_toml(tmp_path):
|
||||
path = tmp_path / "config.toml"
|
||||
path.write_text(
|
||||
"""
|
||||
[general]
|
||||
output_dir = "~/music"
|
||||
non_interactive = true
|
||||
|
||||
[qobuz]
|
||||
quality = 6
|
||||
auto_downgrade = false
|
||||
concurrency = 99
|
||||
delay = 1.5
|
||||
""",
|
||||
encoding="utf-8",
|
||||
)
|
||||
cfg = load_config(path)
|
||||
assert cfg.general.non_interactive is True
|
||||
assert cfg.qobuz.quality == 6
|
||||
assert cfg.qobuz.auto_downgrade is False
|
||||
assert cfg.qobuz.concurrency == 16
|
||||
assert cfg.qobuz.delay == 1.5
|
||||
|
||||
|
||||
def test_invalid_quality(tmp_path):
|
||||
path = tmp_path / "config.toml"
|
||||
path.write_text("[qobuz]\nquality = 12\n", encoding="utf-8")
|
||||
with pytest.raises(ConfigError):
|
||||
load_config(path)
|
||||
|
||||
|
||||
def test_save_roundtrip(tmp_path):
|
||||
cfg = Config()
|
||||
cfg.qobuz.quality = 7
|
||||
target = save_config(cfg, tmp_path / "config.toml")
|
||||
loaded = load_config(target)
|
||||
assert loaded.qobuz.quality == 7
|
||||
assert Path(loaded.general.output_dir).is_absolute()
|
||||
@@ -0,0 +1,43 @@
|
||||
from museater.download import (
|
||||
_quality_fields,
|
||||
_quality_tiers,
|
||||
_render,
|
||||
_safe_component,
|
||||
)
|
||||
|
||||
|
||||
def test_quality_tiers():
|
||||
assert _quality_tiers(27, True) == [27, 7, 6, 5]
|
||||
assert _quality_tiers(7, True) == [7, 6, 5]
|
||||
assert _quality_tiers(6, False) == [6]
|
||||
|
||||
|
||||
def test_quality_fields_normalizes_sampling_rate():
|
||||
fmt, depth, rate = _quality_fields(
|
||||
{"format_id": 27, "bit_depth": 24, "sampling_rate": 96000}, 27
|
||||
)
|
||||
assert fmt == "FLAC"
|
||||
assert depth == 24
|
||||
assert rate == 96.0
|
||||
|
||||
|
||||
def test_quality_fields_mp3_has_no_bit_depth():
|
||||
fmt, depth, rate = _quality_fields(
|
||||
{"format_id": 5, "bit_depth": 16, "sampling_rate": 44100}, 5
|
||||
)
|
||||
assert fmt == "MP3"
|
||||
assert depth == 0
|
||||
assert rate == 44.1
|
||||
|
||||
|
||||
def test_render_missing_keys_and_subdirs():
|
||||
attrs = {"album_artist": "Daft Punk", "album_title": "Discovery", "year": 2001}
|
||||
assert _render("{album_artist}/{album_title} ({year})", attrs, allow_subdirs=True) == (
|
||||
"Daft Punk/Discovery (2001)"
|
||||
)
|
||||
assert _render("{missing}", attrs, allow_subdirs=False) == "Unknown"
|
||||
|
||||
|
||||
def test_safe_component():
|
||||
assert _safe_component('a/b:c*?"') == "a_b_c___"
|
||||
assert _safe_component("..") == "Unknown"
|
||||
@@ -0,0 +1,43 @@
|
||||
from museater.lyrics import (
|
||||
LyricsResult,
|
||||
LyricsService,
|
||||
parse_qobuz_lyrics,
|
||||
write_lrc,
|
||||
)
|
||||
|
||||
|
||||
def test_parse_qobuz_synced():
|
||||
text, synced = parse_qobuz_lyrics(
|
||||
{
|
||||
"original": {
|
||||
"lines": [
|
||||
{"line": "Hello", "start": 1000},
|
||||
{"line": "World", "start": 62500},
|
||||
]
|
||||
}
|
||||
}
|
||||
)
|
||||
assert synced is True
|
||||
assert text == "[00:01.00] Hello\n[01:02.50] World"
|
||||
|
||||
|
||||
def test_parse_qobuz_plain():
|
||||
text, synced = parse_qobuz_lyrics(
|
||||
{"original": {"lines": [{"line": "Hello"}, {"line": "World"}]}}
|
||||
)
|
||||
assert synced is False
|
||||
assert text == "Hello\nWorld"
|
||||
|
||||
|
||||
def test_fuzzy_match_rejects_wrong_track():
|
||||
service = LyricsService()
|
||||
assert service._match("Daft Punk", "One More Time", "Daft Punk", "One More Time")
|
||||
assert not service._match("Daft Punk", "One More Time", "Daft Punk", "Aerodynamic")
|
||||
|
||||
|
||||
def test_write_lrc(tmp_path):
|
||||
audio = tmp_path / "track.flac"
|
||||
audio.write_bytes(b"not-real")
|
||||
result = LyricsResult("lrclib", "[00:01.00] Hello", True)
|
||||
lrc = write_lrc(audio, result)
|
||||
assert lrc.read_text(encoding="utf-8") == "[00:01.00] Hello\n"
|
||||
@@ -0,0 +1,170 @@
|
||||
from museater.providers.qobuz.models import (
|
||||
Account,
|
||||
ArtistInfo,
|
||||
LabelInfo,
|
||||
PlaylistInfo,
|
||||
ReleaseInfo,
|
||||
SearchItem,
|
||||
TrackInfo,
|
||||
)
|
||||
|
||||
|
||||
def test_release_normalization():
|
||||
data = {
|
||||
"id": "album1",
|
||||
"title": "Discovery",
|
||||
"version": "Remastered",
|
||||
"artist": {"id": "a1", "name": "Daft Punk"},
|
||||
"artists": [{"id": "a1", "name": "Daft Punk", "roles": ["main-artist"]}],
|
||||
"release_date_original": "2001-03-12",
|
||||
"label": {"id": "l1", "name": "Parlophone"},
|
||||
"upc": "123",
|
||||
"genre": {"name": "Electronic"},
|
||||
"genres_list": [{"name": "Electronic"}, {"name": "Dance"}],
|
||||
"image": {"large": "https://img/large.jpg"},
|
||||
"tracks_count": 1,
|
||||
"media_count": 1,
|
||||
"streamable": True,
|
||||
"maximum_bit_depth": 24,
|
||||
"maximum_sampling_rate": 44.1,
|
||||
"tracks": {
|
||||
"items": [
|
||||
{
|
||||
"id": "t1",
|
||||
"title": "One More Time",
|
||||
"track_number": 1,
|
||||
"media_number": 1,
|
||||
"duration": 320,
|
||||
"isrc": "FR123",
|
||||
"performer": {"name": "Daft Punk"},
|
||||
"composer": "Thomas Bangalter",
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
release = ReleaseInfo.from_api(data)
|
||||
assert release.id == "album1"
|
||||
assert release.display_title == "Discovery (Remastered)"
|
||||
assert release.year == 2001
|
||||
assert release.artist == "Daft Punk"
|
||||
assert release.label == "Parlophone"
|
||||
assert release.genres == ("Electronic", "Dance")
|
||||
assert release.track_count == 1
|
||||
assert release.tracks[0].title == "One More Time"
|
||||
assert release.tracks[0].display_title == "One More Time"
|
||||
|
||||
|
||||
def test_search_item_album():
|
||||
item = SearchItem.from_album(
|
||||
{
|
||||
"id": "album1",
|
||||
"title": "Discovery",
|
||||
"artist": {"name": "Daft Punk"},
|
||||
"release_date_original": "2001-03-12",
|
||||
}
|
||||
)
|
||||
assert item.type == "album"
|
||||
assert item.url == "https://play.qobuz.com/album/album1"
|
||||
|
||||
|
||||
def test_account_normalization():
|
||||
account = Account.from_api(
|
||||
{
|
||||
"id": "u1",
|
||||
"email": "a@b.c",
|
||||
"display_name": "Listener",
|
||||
"credential": {"parameters": {"short_label": "Studio", "label": "Studio"}},
|
||||
}
|
||||
)
|
||||
assert account.membership == "Studio"
|
||||
assert account.email == "a@b.c"
|
||||
|
||||
|
||||
def test_track_normalization():
|
||||
track = TrackInfo.from_api(
|
||||
{
|
||||
"id": "t1",
|
||||
"title": "Around the World",
|
||||
"version": "Radio Edit",
|
||||
"track_number": 7,
|
||||
"duration": 240,
|
||||
"performer": {"name": "Daft Punk"},
|
||||
"album": {"id": "a1", "title": "Homework"},
|
||||
"audio_info": {
|
||||
"replaygain_track_gain": -5.65,
|
||||
"replaygain_track_peak": 0.979767,
|
||||
},
|
||||
}
|
||||
)
|
||||
assert track.display_title == "Around the World (Radio Edit)"
|
||||
assert track.album_id == "a1"
|
||||
assert track.artist == "Daft Punk"
|
||||
assert track.replaygain_track_gain == -5.65
|
||||
assert track.replaygain_track_peak == 0.979767
|
||||
|
||||
|
||||
def test_playlist_normalization():
|
||||
playlist = PlaylistInfo.from_api(
|
||||
{
|
||||
"id": "p1",
|
||||
"name": "Mix",
|
||||
"description": "A mix",
|
||||
"owner": {"name": "Listener"},
|
||||
"tracks_count": 1,
|
||||
"duration": 240,
|
||||
"images300": "https://img/p.jpg",
|
||||
"tracks": {
|
||||
"items": [
|
||||
{
|
||||
"id": "t1",
|
||||
"title": "Song",
|
||||
"track_number": 1,
|
||||
"performer": {"name": "Artist"},
|
||||
"album": {"id": "a1", "title": "Album"},
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
)
|
||||
assert playlist.name == "Mix"
|
||||
assert playlist.owner == "Listener"
|
||||
assert playlist.cover_url == "https://img/p.jpg"
|
||||
assert playlist.track_count == 1
|
||||
assert playlist.tracks[0].title == "Song"
|
||||
|
||||
|
||||
def test_artist_and_label_normalization():
|
||||
artist = ArtistInfo.from_api(
|
||||
{
|
||||
"id": "ar1",
|
||||
"name": "Artist",
|
||||
"albums_count": 1,
|
||||
"image": "https://img/a.jpg",
|
||||
"albums": {
|
||||
"items": [
|
||||
{
|
||||
"id": "a1",
|
||||
"title": "Album",
|
||||
"artist": {"name": "Artist"},
|
||||
"release_date_original": "2020-01-01",
|
||||
"tracks_count": 1,
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
)
|
||||
assert artist.name == "Artist"
|
||||
assert artist.albums_count == 1
|
||||
assert artist.albums[0].title == "Album"
|
||||
|
||||
label = LabelInfo.from_api(
|
||||
{
|
||||
"id": "l1",
|
||||
"name": "Label",
|
||||
"description": "Desc",
|
||||
"albums_count": 1,
|
||||
"albums": {"items": [{"id": "a1", "title": "Album"}]},
|
||||
}
|
||||
)
|
||||
assert label.name == "Label"
|
||||
assert label.albums[0].id == "a1"
|
||||
@@ -0,0 +1,77 @@
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from museater.providers.qobuz.auth import OAuthFlow
|
||||
from museater.providers.qobuz.bundle import QobuzBundle
|
||||
from museater.providers.qobuz.client import QobuzClient
|
||||
from museater.providers.qobuz.models import Account
|
||||
|
||||
|
||||
def _bundle():
|
||||
return QobuzBundle(
|
||||
app_id="798273057",
|
||||
secrets=("secret",),
|
||||
private_key="6lz8C03UDIC7",
|
||||
fetched_at=0,
|
||||
)
|
||||
|
||||
|
||||
def _response(payload, status=200):
|
||||
response = Mock()
|
||||
response.status_code = status
|
||||
response.json.return_value = payload
|
||||
response.text = str(payload)
|
||||
return response
|
||||
|
||||
|
||||
def test_exchange_accepts_token_and_user_id():
|
||||
flow = OAuthFlow(_bundle())
|
||||
with (
|
||||
patch(
|
||||
"museater.providers.qobuz.auth.requests.get",
|
||||
return_value=_response({"token": "preliminary", "user_id": 42}),
|
||||
),
|
||||
patch.object(
|
||||
QobuzClient,
|
||||
"login_with_token",
|
||||
return_value={
|
||||
"user_auth_token": "final",
|
||||
"user": {"id": 42, "credential": {"parameters": {"short_label": "Studio"}}},
|
||||
},
|
||||
),
|
||||
):
|
||||
result = flow.exchange_code("code")
|
||||
assert result.token == "final"
|
||||
assert result.account.id == "42"
|
||||
assert result.account.membership == "Studio"
|
||||
|
||||
|
||||
def test_exchange_accepts_legacy_user_auth_token():
|
||||
flow = OAuthFlow(_bundle())
|
||||
with (
|
||||
patch(
|
||||
"museater.providers.qobuz.auth.requests.get",
|
||||
return_value=_response({"user_auth_token": "preliminary"}),
|
||||
),
|
||||
patch.object(
|
||||
QobuzClient,
|
||||
"login_with_token",
|
||||
return_value={"user_auth_token": "final"},
|
||||
),
|
||||
):
|
||||
result = flow.exchange_code("code")
|
||||
assert result.token == "final"
|
||||
|
||||
|
||||
def test_account_parses_user_id():
|
||||
account = Account.from_api({"user_id": 42})
|
||||
assert account.id == "42"
|
||||
|
||||
|
||||
def test_account_parses_nested_credential():
|
||||
account = Account.from_api(
|
||||
{
|
||||
"id": 42,
|
||||
"credential": {"parameters": {"short_label": "Studio", "label": "Studio"}},
|
||||
}
|
||||
)
|
||||
assert account.membership == "Studio"
|
||||
@@ -0,0 +1,37 @@
|
||||
import io
|
||||
import json
|
||||
|
||||
from museater.progress import Progress, human_bytes
|
||||
|
||||
|
||||
def test_ndjson_events():
|
||||
stream = io.StringIO()
|
||||
progress = Progress("ndjson", stream=stream)
|
||||
progress.album_start("Album", 1, "/music/album")
|
||||
progress.track_start(1, 1, "t1", "Track")
|
||||
progress.track_progress("t1", 1024, 2048)
|
||||
progress.track_done(1, 1, "t1", "Track", "downloaded", path="/music/a.flac", bytes_total=2048)
|
||||
progress.album_done("completed", 1, 0, 0)
|
||||
|
||||
events = [json.loads(line) for line in stream.getvalue().splitlines()]
|
||||
assert events[0]["event"] == "album_start"
|
||||
assert events[1]["event"] == "track_start"
|
||||
assert events[2]["event"] == "track_progress"
|
||||
assert events[3]["status"] == "downloaded"
|
||||
assert events[-1]["event"] == "album_done"
|
||||
|
||||
|
||||
def test_auto_mode_json_uses_ndjson():
|
||||
progress = Progress.from_mode("auto", json_mode=True, stream=io.StringIO())
|
||||
assert progress.mode == "ndjson"
|
||||
|
||||
|
||||
def test_quiet_disables_progress():
|
||||
progress = Progress.from_mode("text", quiet=True, stream=io.StringIO())
|
||||
assert progress.mode == "off"
|
||||
|
||||
|
||||
def test_human_bytes():
|
||||
assert human_bytes(512) == "512 B"
|
||||
assert human_bytes(2048) == "2.0 KB"
|
||||
assert human_bytes(None) == "?"
|
||||
@@ -0,0 +1,162 @@
|
||||
|
||||
from museater.providers.qobuz.models import TrackInfo
|
||||
from museater.providers.spotify.auth import (
|
||||
SpotifyTokens,
|
||||
SpotifyTokenStore,
|
||||
_with_port,
|
||||
code_challenge,
|
||||
)
|
||||
from museater.providers.spotify.client import parse_playlist_id
|
||||
from museater.providers.spotify.match import QobuzMatcher
|
||||
from museater.providers.spotify.models import SpotifyPlaylist, SpotifyTrack
|
||||
from museater.storage import Database
|
||||
|
||||
|
||||
def test_code_challenge_rfc_vector():
|
||||
verifier = "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
|
||||
assert code_challenge(verifier) == "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
|
||||
|
||||
|
||||
def test_redirect_port():
|
||||
assert _with_port("http://127.0.0.1/callback", 8888) == (
|
||||
"http://127.0.0.1:8888/callback"
|
||||
)
|
||||
assert _with_port("http://127.0.0.1:9999/callback", 8888) == (
|
||||
"http://127.0.0.1:9999/callback"
|
||||
)
|
||||
|
||||
|
||||
def test_parse_playlist_id():
|
||||
assert parse_playlist_id("https://open.spotify.com/playlist/abc123?si=x") == "abc123"
|
||||
assert parse_playlist_id("spotify:playlist:abc123") == "abc123"
|
||||
|
||||
|
||||
def test_token_store_file(tmp_path):
|
||||
store = SpotifyTokenStore(tmp_path / "credentials.json", no_keyring=True)
|
||||
tokens = SpotifyTokens("access", "refresh", 123456)
|
||||
assert store.save(tokens) == "file"
|
||||
loaded = store.load()
|
||||
assert loaded is not None
|
||||
assert loaded.refresh_token == "refresh"
|
||||
store.clear()
|
||||
assert store.load() is None
|
||||
|
||||
|
||||
def test_playlist_and_track_models():
|
||||
playlist = SpotifyPlaylist.from_api(
|
||||
{
|
||||
"id": "p1",
|
||||
"name": "Mix",
|
||||
"owner": {"display_name": "Me"},
|
||||
"tracks": {"total": 2},
|
||||
"images": [{"url": "https://img"}],
|
||||
"public": True,
|
||||
}
|
||||
)
|
||||
assert playlist.owner == "Me"
|
||||
assert playlist.track_count == 2
|
||||
|
||||
track = SpotifyTrack.from_api(
|
||||
{
|
||||
"id": "t1",
|
||||
"name": "Song",
|
||||
"artists": [{"name": "Artist"}],
|
||||
"album": {"name": "Album", "images": [{"url": "https://cover"}]},
|
||||
"duration_ms": 123000,
|
||||
"external_ids": {"isrc": "ABC123"},
|
||||
"type": "track",
|
||||
}
|
||||
)
|
||||
assert track is not None
|
||||
assert track.artist == "Artist"
|
||||
assert track.duration_seconds == 123
|
||||
assert track.isrc == "ABC123"
|
||||
|
||||
|
||||
def test_local_track_is_skipped():
|
||||
assert (
|
||||
SpotifyTrack.from_api(
|
||||
{"id": "t1", "name": "Local", "type": "track"}, is_local=True
|
||||
)
|
||||
is None
|
||||
)
|
||||
assert SpotifyTrack.from_api({"id": "e1", "name": "Episode", "type": "episode"}) is None
|
||||
|
||||
|
||||
class FakeQobuz:
|
||||
def __init__(self, by_isrc=None, by_query=None):
|
||||
self.by_isrc = by_isrc or {}
|
||||
self.by_query = by_query or {}
|
||||
self.calls = []
|
||||
|
||||
def search_tracks_raw(self, query, *, limit=10):
|
||||
self.calls.append(query)
|
||||
return self.by_isrc.get(query, self.by_query.get(query, []))
|
||||
|
||||
def get_track(self, track_id):
|
||||
for items in [*self.by_isrc.values(), *self.by_query.values()]:
|
||||
for item in items:
|
||||
if str(item["id"]) == str(track_id):
|
||||
return TrackInfo.from_api(item)
|
||||
raise KeyError(track_id)
|
||||
|
||||
|
||||
def _track(**overrides):
|
||||
data = {
|
||||
"id": "s1",
|
||||
"name": "One More Time",
|
||||
"artists": [{"name": "Daft Punk"}],
|
||||
"duration_ms": 320000,
|
||||
"external_ids": {"isrc": "GBDUW0000053"},
|
||||
"type": "track",
|
||||
}
|
||||
data.update(overrides)
|
||||
return SpotifyTrack.from_api(data)
|
||||
|
||||
|
||||
def _qobuz_item(**overrides):
|
||||
data = {
|
||||
"id": "q1",
|
||||
"title": "One More Time",
|
||||
"isrc": "GBDUW0000053",
|
||||
"duration": 320,
|
||||
"performer": {"name": "Daft Punk"},
|
||||
"album": {"id": "a1", "title": "Discovery"},
|
||||
}
|
||||
data.update(overrides)
|
||||
return data
|
||||
|
||||
|
||||
def test_match_by_isrc(tmp_path):
|
||||
fake = FakeQobuz(by_isrc={"GBDUW0000053": [_qobuz_item()]})
|
||||
matcher = QobuzMatcher(fake, db=Database(tmp_path / "db.sqlite"))
|
||||
result = matcher.match(_track())
|
||||
assert result.status == "matched"
|
||||
assert result.qobuz is not None
|
||||
assert result.score == 1.0
|
||||
assert result.reason == "isrc"
|
||||
|
||||
|
||||
def test_match_fuzzy(tmp_path):
|
||||
fake = FakeQobuz(
|
||||
by_query={"Daft Punk One More Time": [_qobuz_item(isrc="OTHER")]}
|
||||
)
|
||||
matcher = QobuzMatcher(fake, db=Database(tmp_path / "db.sqlite"))
|
||||
result = matcher.match(_track(external_ids={}))
|
||||
assert result.status == "matched"
|
||||
assert result.qobuz is not None
|
||||
|
||||
|
||||
def test_match_ambiguous(tmp_path):
|
||||
fake = FakeQobuz(
|
||||
by_query={
|
||||
"Daft Punk One More Time": [
|
||||
_qobuz_item(id="q1", isrc="A", title="One More Time"),
|
||||
_qobuz_item(id="q2", isrc="B", title="One More Time (Edit)"),
|
||||
]
|
||||
}
|
||||
)
|
||||
matcher = QobuzMatcher(fake, db=Database(tmp_path / "db.sqlite"))
|
||||
result = matcher.match(_track(external_ids={}))
|
||||
assert result.status == "ambiguous"
|
||||
assert len(result.candidates) == 2
|
||||
@@ -0,0 +1,108 @@
|
||||
from museater.storage import (
|
||||
Database,
|
||||
DownloadRecord,
|
||||
find_marker,
|
||||
read_marker,
|
||||
write_marker,
|
||||
)
|
||||
|
||||
|
||||
def _record(**overrides):
|
||||
data = {
|
||||
"provider": "qobuz",
|
||||
"item_type": "album",
|
||||
"item_id": "a1",
|
||||
"requested_quality": 27,
|
||||
"delivered_quality": 6,
|
||||
"file_format": "FLAC",
|
||||
"bit_depth": 16,
|
||||
"sample_rate": 44.1,
|
||||
"path": "/music/a1",
|
||||
"status": "completed",
|
||||
"title": "Album",
|
||||
"artist": "Artist",
|
||||
"album": "Album",
|
||||
"file_size": 123,
|
||||
}
|
||||
data.update(overrides)
|
||||
return DownloadRecord(**data)
|
||||
|
||||
|
||||
def test_record_and_lookup_quality(tmp_path):
|
||||
db = Database(tmp_path / "museater.db")
|
||||
db.init()
|
||||
db.record(_record())
|
||||
|
||||
assert db.find_completed(item_type="album", item_id="a1", requested_quality=27)
|
||||
assert db.find_completed(item_type="album", item_id="a1", requested_quality=6)
|
||||
assert not db.find_completed(item_type="album", item_id="a1", requested_quality=28)
|
||||
|
||||
|
||||
def test_partial_is_not_completed(tmp_path):
|
||||
db = Database(tmp_path / "museater.db")
|
||||
db.init()
|
||||
db.record(_record(status="partial"))
|
||||
assert db.find_completed(item_type="album", item_id="a1", requested_quality=27) is None
|
||||
|
||||
|
||||
def test_completed_record_is_not_downgraded(tmp_path):
|
||||
db = Database(tmp_path / "museater.db")
|
||||
db.init()
|
||||
db.record(_record(status="completed", path="/old"))
|
||||
db.record(_record(status="partial", path="/new"))
|
||||
found = db.find_completed(item_type="album", item_id="a1", requested_quality=27)
|
||||
assert found is not None
|
||||
assert found.status == "completed"
|
||||
assert found.path == "/old"
|
||||
|
||||
|
||||
def test_history_and_stats(tmp_path):
|
||||
db = Database(tmp_path / "museater.db")
|
||||
db.init()
|
||||
db.record(_record(item_type="track", item_id="t1", parent_id="a1"))
|
||||
db.record(_record())
|
||||
stats = db.stats()
|
||||
assert stats["records"] == 2
|
||||
assert stats["albums"] == 1
|
||||
assert stats["tracks"] == 1
|
||||
assert stats["bytes"] == 123
|
||||
assert len(db.history()) == 2
|
||||
|
||||
|
||||
def test_spotify_match_cache(tmp_path):
|
||||
db = Database(tmp_path / "museater.db")
|
||||
db.init()
|
||||
db.save_spotify_match(
|
||||
"s1",
|
||||
isrc="ABC",
|
||||
qobuz_track_id="q1",
|
||||
status="matched",
|
||||
score=1.0,
|
||||
title="Song",
|
||||
artist="Artist",
|
||||
)
|
||||
row = db.get_spotify_match("s1")
|
||||
assert row is not None
|
||||
assert row["qobuz_track_id"] == "q1"
|
||||
assert row["status"] == "matched"
|
||||
db.clear_spotify_matches()
|
||||
assert db.get_spotify_match("s1") is None
|
||||
|
||||
|
||||
def test_marker_roundtrip_and_rename(tmp_path):
|
||||
folder = tmp_path / "Artist - Album"
|
||||
folder.mkdir()
|
||||
write_marker(
|
||||
folder,
|
||||
release_id="a1",
|
||||
title="Album",
|
||||
artist="Artist",
|
||||
requested_quality=27,
|
||||
status="completed",
|
||||
tracks=[{"id": "t1", "relative_path": "01 - Track.flac"}],
|
||||
)
|
||||
assert read_marker(folder)["album_id"] == "a1"
|
||||
|
||||
renamed = tmp_path / "Renamed"
|
||||
folder.rename(renamed)
|
||||
assert find_marker(tmp_path, "a1") == renamed
|
||||
@@ -0,0 +1,34 @@
|
||||
import pytest
|
||||
|
||||
from museater.errors import UsageError
|
||||
from museater.urls import parse_target
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("value", "expected_type", "expected_id"),
|
||||
[
|
||||
("https://play.qobuz.com/album/qxjbxh1dc3xyb", "album", "qxjbxh1dc3xyb"),
|
||||
("https://open.qobuz.com/track/12345678", "track", "12345678"),
|
||||
(
|
||||
"https://www.qobuz.com/us-en/album/random-access-memories/0886443926956",
|
||||
"album",
|
||||
"0886443926956",
|
||||
),
|
||||
("https://play.qobuz.com/playlist/1234567", "playlist", "1234567"),
|
||||
("qxjbxh1dc3xyb", "album", "qxjbxh1dc3xyb"),
|
||||
],
|
||||
)
|
||||
def test_parse_target(value, expected_type, expected_id):
|
||||
target = parse_target(value)
|
||||
assert target.type == expected_type
|
||||
assert target.id == expected_id
|
||||
|
||||
|
||||
def test_parse_bare_id_with_type():
|
||||
target = parse_target("12345678", default_type="track")
|
||||
assert target.type == "track"
|
||||
|
||||
|
||||
def test_parse_target_rejects_garbage():
|
||||
with pytest.raises(UsageError):
|
||||
parse_target("https://example.com/not-qobuz")
|
||||
@@ -0,0 +1,922 @@
|
||||
version = 1
|
||||
revision = 5
|
||||
requires-python = ">=3.11"
|
||||
|
||||
[[package]]
|
||||
name = "backports-tarfile"
|
||||
version = "1.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/86/72/cd9b395f25e290e633655a100af28cb253e4393396264a98bd5f5951d50f/backports_tarfile-1.2.0.tar.gz", hash = "sha256:d75e02c268746e1b8144c278978b6e98e85de6ad16f8e4b0844a154557eca991", size = 86406, upload-time = "2024-05-28T17:01:54.731Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/fa/123043af240e49752f1c4bd24da5053b6bd00cad78c2be53c0d1e8b975bc/backports.tarfile-1.2.0-py3-none-any.whl", hash = "sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34", size = 30181, upload-time = "2024-05-28T17:01:53.112Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "build"
|
||||
version = "1.6.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "os_name == 'nt'" },
|
||||
{ name = "packaging" },
|
||||
{ name = "pyproject-hooks" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/bd/67/4898a44ea4f3f8e213b0954ec0aa0a16971d62a6212d6ea3931e97115b99/build-1.6.1.tar.gz", hash = "sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53", size = 113427, upload-time = "2026-09-10T07:56:00.417Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/9b/9fb3585dabcd73a1b2a6267f63f62649347c9e6d072c9fde365b105abb2c/build-1.6.1-py3-none-any.whl", hash = "sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7", size = 31179, upload-time = "2026-09-10T07:55:59.148Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "certifi"
|
||||
version = "2026.10.23"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cffi"
|
||||
version = "2.1.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pycparser", marker = "implementation_name != 'PyPy'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "charset-normalizer"
|
||||
version = "3.5.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/22/67/6a0b94a7960d5e1b5eacd2fb529f3fccc47db4644f7f0a7cfdcfc3be578a/charset_normalizer-3.5.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3d21b8b13c7592db2ac5e544a6d83187b995257472b0c9e8351b6d507ae37ed6", size = 370642, upload-time = "2026-09-30T04:35:06.91Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fb/94/01009e13b94041599004edf32e56e382c24e570f60f79bab8efe45cfe1eb/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d760fe2a4d7c3b226cb9026d6a842868d52a7901bd98420e1baf14e80da85cf5", size = 259280, upload-time = "2026-09-30T04:35:08.448Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/85/3b5358f60a13210f0b67d3755c168ef758701b021e655d88d4da28554467/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c9790464842f85f437dbbb54417eda1e0e6bfc52dd8d22d6fd1c994b73b2dc74", size = 245335, upload-time = "2026-09-30T04:35:10.104Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/75/77c1c479b09ecd751d1e767b251ea5c14d4d50ff757bf404afab2692f600/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4685902cf26edf013ed7a3da0f426ebba7a00ebb9541386d835afbf002c11cab", size = 291707, upload-time = "2026-09-30T04:35:11.575Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/0d/363f78cacb70f58f15f4b083961bbd9d292f335d3f5c66fc4f1cfe69cb90/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4495c5002a7b28557e7e222e77e0b661183e432b7d6d2e788101e3f240e05b8c", size = 286747, upload-time = "2026-09-30T04:35:13.022Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/ed/cf505d3011ffceb12c2067a7a5d3cfe92b875d4d44bb0ff0d69375e2c184/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:211d5a3eb6af8f513b8d4ca19a8c1b7accab1b5f0d3175f9826b03c1a920dc1f", size = 269972, upload-time = "2026-09-30T04:35:14.606Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/15/d8/f0a93a431d170e7ca681d4f6650fee3de934d18560e474e7267eb4b0f987/charset_normalizer-3.5.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ef4fcbf3327382cd4c9f540babd61248208af7b93eec4de397b4d5f58a09e288", size = 269339, upload-time = "2026-09-30T04:35:16.087Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/bd/9b2bd1c5b7af02462c9752d33994834ff972a96b4c483eefde9e594488e2/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:bd16aabe4a02a297c23417aa17ac6299dbd8c49f673bcd645b4929b11f5a4400", size = 261683, upload-time = "2026-09-30T04:35:17.488Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/a5/cac540ab0fd61f3fec88ad3dbb64509e71424593d73cfdfff5ab3e4db279/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:fb9e68df06293761f9fe66ade60a9bc6d0f5e42b8acf2939a9158af86ab0e5bd", size = 248143, upload-time = "2026-09-30T04:35:18.849Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/7a/ff467301deef2089fad87f72df9e000a26a78fec7acbb18e1999371b8369/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:59f63901b0031c3136cf64704dcb21de0bbae62ce2c9529bc39d27665463de37", size = 292358, upload-time = "2026-09-30T04:35:20.326Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/77/22d7e785d1e210afc2e2f58600dd1799d17a35665faf84383f002826c5f8/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:304d5463e65a35d7bb0850550e0780395395f6fcf452f04db7d5ca7cecc425ac", size = 268766, upload-time = "2026-09-30T04:35:21.72Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/91/e8e946267f1c2d9e2bd651726e2fbd2addf02c4d36cea5069e32ca9d7bb5/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9cf9b1a857e25c4baceeb3624e92a56df3668f398c4acba74e174d81fb4d1d3a", size = 287432, upload-time = "2026-09-30T04:35:23.273Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/88/7561d8a88d555e7df6623abe7c0070b4baf47549b9408783a2ae0a1a6cf7/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:114e4d0c92d618409ed82a99e22b5c5e768fe995f2973f78265f4524f49d4640", size = 272470, upload-time = "2026-09-30T04:35:24.655Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/35/7e/578c702301ec036f01455f30744a08d2b42f6ab35b9b2d4bf8cae0ef2a80/charset_normalizer-3.5.2-cp311-cp311-win32.whl", hash = "sha256:2625388c6c754520c37abaf3b41eb34d1cc4a373f457898f08606c8e362b891d", size = 186688, upload-time = "2026-09-30T04:35:26.225Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/fc/fdf8cf52ff21cd5bf158f20978991cf985325842f74283eb6df26c8a39d8/charset_normalizer-3.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:87e50a3e7cb90af586b6c5faf23e302a970415ac73bd7bd90a515a04b427ef96", size = 214932, upload-time = "2026-09-30T04:35:27.796Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/97/66/3e45a506d8110b632541faf9a9470185aa9878f1ed44020f31346c1c5e5b/charset_normalizer-3.5.2-cp311-cp311-win_arm64.whl", hash = "sha256:254eb48b9fa5ee9898a3c445825a1f340fe53712a098904b39b0bddba8ea3cb1", size = 202828, upload-time = "2026-09-30T04:35:29.259Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/c8/693809898870237d82785a03f3b2b58fe4c9f14669f84a7d4e623c92a59e/charset_normalizer-3.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ed2a239c0ea213acc1908150a3037257083c7c083128f1a4cec2ec4b97dca491", size = 367780, upload-time = "2026-09-30T04:35:30.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/87/2fea8c13dc24b3ca9c6f803a5b2dfdeae73eb4f9e12c7885ed908ff0433c/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b91363207bd9dc966a691e959bb47f64b30f7ac4b072be9968b366982f7db77c", size = 246730, upload-time = "2026-09-30T04:35:32.286Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/9e/09efac30b937722f46d3110ba30b875b24b2e3a266ed746cc4e376a94d80/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:38a873987f3be698494da8b2e3085e29da02da7b633dce73e79c699a113d7bf0", size = 237707, upload-time = "2026-09-30T04:35:33.709Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9e/18/70d76670b13686237863a379928d60bd10e021f17d243ab3d7014c4a5f4e/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:355ad8011081dec5412240c087a9a0c9d4d5039f3ed11a3f13e18c2b29b56c51", size = 273050, upload-time = "2026-09-30T04:35:35.138Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/e2/77a8b09d5adc013ed07b95b01b8b8fa5441c4e810e83ee7e4aae2fa4d91a/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ee21e28f0430bd6dc9086c6e525d5e818a44a5ad19720c8a0ef766792f3eb5e5", size = 270345, upload-time = "2026-09-30T04:35:36.502Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/c5/38806a25ab5e65fc178f39affeda20858efafede2fce1ffc2556cfc9fe73/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649", size = 257601, upload-time = "2026-09-30T04:35:37.919Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/8d/213565184708fdb263ae55e2c04ee1ff748129dd65d48ed0e3502da9c85a/charset_normalizer-3.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5cde776b7cc66e4f6c99612cea4aa7269aa65863f7a15841b2c264f103822f4e", size = 252222, upload-time = "2026-09-30T04:35:39.544Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/24/76d2cefc25472531e4c5c7dfff68865eb1c39b78482f0fdc15b46f047830/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ae4f5fea5b8b8ccff88238cc8569303e5ee95efae67fa62922a311397a71f346", size = 248482, upload-time = "2026-09-30T04:35:41.088Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/dc/65a801b66ab4c197e22c433ab25e7ac24324ac6f45a2269aca42cce309bf/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f7d486c83842422badd511868fd8a9a20e9407ace71564b6af47ce7e60a336c1", size = 241206, upload-time = "2026-09-30T04:35:42.59Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/95/ca9b5eabde673002c6f1e7ada1b223916fe18f6d661da7aabd4d643718f1/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11a4d68a6ecda3292cb1e50239e111543ba5d709bb62a6b4ea1afcfa729d8875", size = 273190, upload-time = "2026-09-30T04:35:44.347Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/8b/803b4d2a3f6e1740f63f1e87b04d14b42f3d4fdfe6ed7d4db2d34102b14f/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d6734d2ef8a50fbf8445c139477da401f50d62a0606bf00e20ec6d87773fefb1", size = 253527, upload-time = "2026-09-30T04:35:45.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/55/93c0e5dbd085ae0471346026abbe7e0db9ea2d6fea74e51f0b5a46f233a7/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a815775b6c38d4e0ff7bcffbeba67feded90202bb6a226b8dd35f1c855217413", size = 271285, upload-time = "2026-09-30T04:35:47.49Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/69/0dbd0e0b9b16cfa816cdfcb3e2e3854a1f680dc07fb1245ea125e7448060/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23851fb4e1b85ed3f6c2a27b777cdfe2e19fb5b38429a8faf38c7542b7665869", size = 260010, upload-time = "2026-09-30T04:35:48.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/9d/e7b88e7b1bf403590c3b573277b5e1e488c68c7a6fbacca310a2c324e90c/charset_normalizer-3.5.2-cp312-cp312-win32.whl", hash = "sha256:db19d07e2e0129e974a0e65d0064fc222a446cd5122c2fd4184d2af9fc734a9e", size = 184125, upload-time = "2026-09-30T04:35:50.777Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/e6/e6e083884cbcfd49c64865af05027fe7011be7b2d9179524f099a1b611f3/charset_normalizer-3.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:780fbe7cab297b81dad9fb8dc5eb003c0468ffb0d9e5f65068c53a34661a96bc", size = 207486, upload-time = "2026-09-30T04:35:52.194Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/e3/017aea0911ada7405a825c7d937eb3a13009664e2f5b38e8c4bbf2abf894/charset_normalizer-3.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:e2af3aad578aa6bd1384bcf4750fc285e5a9de53f40b7d41e5a0bf748edeb2b3", size = 196734, upload-time = "2026-09-30T04:35:53.636Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "colorama"
|
||||
version = "0.4.6"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "coverage"
|
||||
version = "7.17.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d2/79/e78bd8f75a9b8e32233ce92d4607f0a21ce88a9156cace2884e7175a82f5/coverage-7.17.0.tar.gz", hash = "sha256:cc010a0a7fbdd9bb8bdfd0d3f04a5151275860213cbd7e2b876b29778489c712", size = 991021, upload-time = "2026-10-22T16:06:50.009Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/75/25/79a66272edd250031aeee6db87d500a0bf76390d0d5f8c2f431fe354715f/coverage-7.17.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:99a7b390cbccc6bf029ca4da3f0f607c218bb4085e9cd6b58a90d14ca12993c3", size = 225837, upload-time = "2026-10-22T16:03:55.622Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/a6/f5f6fefb2fc1305363927edad1d0a60ce6ef80d6c1a74a79e825f0f670eb/coverage-7.17.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f72640e02a470b57b15cd655820133f6892760209283a363a60e2df932d5f0fe", size = 226257, upload-time = "2026-10-22T16:03:57.164Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/61/72889bac8eb44c51f8043edb227df551dfdca1fc4819a6c6d67b3f69427b/coverage-7.17.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2dc9233f39149b5a4f4aba17a4b6bc5cca22e52cfc4b06fdb07d014439b8b2ea", size = 258282, upload-time = "2026-10-22T16:03:58.521Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/e4/03e4a5644df9b73de0d44d1b82acd18b06c42b5abc3f1433be8363fa983d/coverage-7.17.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8e8113d3852e9377421a61de1917df27b3abb25404a4ecf69f9e64612c4345b5", size = 260506, upload-time = "2026-10-22T16:04:00.116Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/4e/949022286df7e59e8633a3a7e6635e0e6b53af7d57074cb0bf8f500373fb/coverage-7.17.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c86a39539d10d666bb819c16c94d7edfc1aa2e0531b937f7c549b83d15177c6e", size = 262600, upload-time = "2026-10-22T16:04:01.49Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/cf/7d67f60df081006315699b7edb9402c1b47142caf1383f4e56ae8ff1a501/coverage-7.17.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:559f748446ee799803686b5784e3deb54c70d655ac386a860e06b11672504ba7", size = 264609, upload-time = "2026-10-22T16:04:03.286Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/e0/9293d94afbc099990a085e88229a51c79b00828aba0f2adda32dc4cc16d1/coverage-7.17.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34d65c9e8e257f48a654908005046fbf1bc48d9540ae3776ad08c0acd010e10c", size = 258382, upload-time = "2026-10-22T16:04:04.804Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/c8/bcd28efedf262c074dae76f61098739eb02b15f3f716f80cc86f9885b8a9/coverage-7.17.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:5b7fa0997b8eba7378ac66f31ec7f70164490353ab79b9667d37c0d365e50177", size = 260299, upload-time = "2026-10-22T16:04:06.291Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/dc/503f55e5e2200933403c90d619d9f779b5060ddd338b1bdc63cd235592cb/coverage-7.17.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6ae0453a3390e67f7bfbe34417bbdf5b4ebfc21db23fb446a0a41115eeeca6ca", size = 258314, upload-time = "2026-10-22T16:04:07.729Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/b1/f1a57c36077cc516240636f7eff0d1427939ed795f096dd2c7769213a56c/coverage-7.17.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:96151262832f3c230ebae23b2d6911ad549e1738465946c97004913ff06112ba", size = 262239, upload-time = "2026-10-22T16:04:09.116Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/4f/c2e59d4a132936c7c207b9b69ab99c0f27b14c3c93266e9922aa3b562b37/coverage-7.17.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:cd7397de6cc782f00fe5ac1d75e9b306bcfa49c8b6b8dd6ed1f7709393ad40b3", size = 257841, upload-time = "2026-10-22T16:04:10.509Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/04/50742c0ee8b6c85826ff11737c93ed957fea4c9acf4b4b99804bdac1dd84/coverage-7.17.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9d1fdf82c6fea57b5e9dada509f9ce9638c8334664e2c98c7f6f1ccf3d143ad2", size = 259039, upload-time = "2026-10-22T16:04:11.916Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/cd/83ad4bbbfcb6d045a33c14cdca313f6c9275737c67f3b7300222e3239a37/coverage-7.17.0-cp311-cp311-win32.whl", hash = "sha256:38c86e5d74bbfd88a393fa3f91257c1225c63aa6db6d5918de3e49ab04f91c6e", size = 227687, upload-time = "2026-10-22T16:04:13.537Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/c8/dcc5a7effa79707eb8a61e699b141cff7c9b46036771274cfb48ea7b765f/coverage-7.17.0-cp311-cp311-win_amd64.whl", hash = "sha256:2ed3097c6817bc1a7fc8ae0a6131db74aa1150d863cccc308237ff362d3226b2", size = 228290, upload-time = "2026-10-22T16:04:14.899Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/58/a8553e0dcd38d8136df63964638d2b588e0a4a916bff1bca996244fda693/coverage-7.17.0-cp311-cp311-win_arm64.whl", hash = "sha256:6052e878b628abcd38fa5f2b64abebc686eed4e2267da42434017a9c6d24f241", size = 228199, upload-time = "2026-10-22T16:04:16.351Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/25/989fd3b495c4274ac0cf54cb6664326415e60183a7f8a73dd9bbb0b11e34/coverage-7.17.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:0cfdc938ca3319d873d1f1252e60620a39aee4ebf9dbd7cc58238109ebda9c51", size = 225938, upload-time = "2026-10-22T16:04:18.113Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/cb/14726426bf3241657facbf0f7df7babd8f7d3fcf8e4609b7929f9dceecbc/coverage-7.17.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d523da3c2e4bca49417768bcdb1a443c5b359dc44b8b93a3102e118fce912c40", size = 226166, upload-time = "2026-10-22T16:04:19.524Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/97/f95ed32cd3cfbe261a3598e694cb770cefc7b2d13ff013418d6f70a44dde/coverage-7.17.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:adbf3450c0f3f2b2854e282a8758f2b3eddf787eeff24ec9c9bc2cbc38328cc1", size = 258462, upload-time = "2026-10-22T16:04:21.079Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/ac/eb4c31f741509a9ef48cf6f28385e98e9de0785599282252eee252ff8af7/coverage-7.17.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:85932227e9dd38e62cd29c17fefdfecfb919eead6af1e3259522d03cf85de983", size = 261789, upload-time = "2026-10-22T16:04:23.037Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/3e/d9cd006d1a3cc5deab07beb29b86cb4a10dd84d66b330820363fb8d310d6/coverage-7.17.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:30f5477aac9c9e4a0a641c55f8f8fddd7f3bd91176c912c50f40ffced96b4034", size = 262322, upload-time = "2026-10-22T16:04:24.94Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/3a/4c872c6ae0762b09cdb8e856891bb3f584848cb60b6dda2bacb85fe2f3f0/coverage-7.17.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0b8bb651a4406fb6a983a905309fec1783443c65e1771b41e92740a0f4a1176b", size = 264600, upload-time = "2026-10-22T16:04:26.444Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/98/1d41a2373fa98b423bcd70adb91d75e38eafb417955426dbb920b10016f3/coverage-7.17.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0edeb6594f080c8de1263cccb239cb316ef77aeb959e2e0f38f2953fcc72a49e", size = 258678, upload-time = "2026-10-22T16:04:27.832Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/6a/fe04b5e63e76506daa63d90bdfb00a53767fe5df18546b437d6226918d6b/coverage-7.17.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:da94ec0484e84fce5c7bf8d0f54b97767a90d992653a129b35634699d516e0a5", size = 260210, upload-time = "2026-10-22T16:04:29.275Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/c3/5c5a78dc19dd4799be9c6ec022316fb25ababaeacfaf0f52f24c56a57b43/coverage-7.17.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a25cc5e8c23a590815c6a7aa43624234d25cb23b21b484adb8a0daed59860db5", size = 258375, upload-time = "2026-10-22T16:04:30.647Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/e7/4c1d8eaff4d756fefd15d58c4953a78ab656782fd0e32c5a3465dba61aa0/coverage-7.17.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:db645c81cf4d6bcb392ea1894aad65d55d1588a8472c834b25ca575da3029a56", size = 262422, upload-time = "2026-10-22T16:04:32.053Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a6/2a/0b17c3e2e7b6ff1a5d92eb58915c0d1026668928f961d14dac73cf1b6096/coverage-7.17.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:6a80a11b90c4a03df1502304cf24ff953255b6b5d076ef79066ecf88baaff31f", size = 257875, upload-time = "2026-10-22T16:04:33.824Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/2d/eb0cbde0535342df0d17a667163030a3afb67e5eb9e3ad94af9540041584/coverage-7.17.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e4eaf11d6b0f2147f46cfbf06fe7edcca6f095d0120da00ddc2458995ee869fc", size = 260361, upload-time = "2026-10-22T16:04:35.661Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/47/1be2a6db7eb655d0a1d899217c3f2469f9121cbbeddac35c1c8173b1482e/coverage-7.17.0-cp312-cp312-win32.whl", hash = "sha256:912a29f338798541d795e2e25903c6fe7a99dee70a40fe4706a9a124649b523e", size = 227747, upload-time = "2026-10-22T16:04:37.102Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/c5/201c894c57de81875d8b8cc527ba222aa350e8cfb183eb3f6df45d06ad8e/coverage-7.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:88a1a9fb0075b83389dd9b403bb3fce976031b3c2aa0e05e3e57143cf639de69", size = 228325, upload-time = "2026-10-22T16:04:38.989Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/5d/196095339b19758cf83f507fb598bc42820ae124745feb3084662729e17a/coverage-7.17.0-cp312-cp312-win_arm64.whl", hash = "sha256:2c680e838ff9e68d491158625ca2c1ddb17d78d791bba96a31f8b839b4990438", size = 228131, upload-time = "2026-10-22T16:04:40.654Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/e6/1f01afbc9f4fa8ca5e1fa6fdf537a5c58b5765d1b4167ee284cddb9acc72/coverage-7.17.0-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:84538c040f4e6214f663459d89372ce4e6b2bbdd9d397ef0dca7b3ecd56b8eb2", size = 227080, upload-time = "2026-10-22T16:04:42.325Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/7a/bdb7e6260c4a211389aeac9b89dc31662ebe122153ad0ecfd156897912df/coverage-7.17.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:6abfb6a4cf1cb1b67bc8fccdde177e2d2b781d0d34449e7078156547025140e5", size = 227152, upload-time = "2026-10-22T16:04:43.737Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/4e/276e7d5b3cfb124871bdb544c27b004a8b4e270e6bf8e7414149c54b5e5b/coverage-7.17.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:ef65e96f0fc1a7c8b7644c7011d47a8228555e7888ac4d6246f715a7f3d7c398", size = 225397, upload-time = "2026-10-22T16:04:45.292Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/7d/dac073db12f3c131598a6693253aded581e4d7d622a89864f11bfb0ca2f5/coverage-7.17.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:55939ea4c097fda2edabf80fac5e49bef15597b950a9f29fc56292a895245feb", size = 225705, upload-time = "2026-10-22T16:04:46.603Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/45/877b0a9248e921080ae91d115c13192d17e308f5aee86bcc7f7bc2a54ed1/coverage-7.17.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:bfb6f868af552c0ceb2d19220b8cbcc2be096ca26163ac30e682a13041433429", size = 225828, upload-time = "2026-10-22T16:04:48.065Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/f5/2c48d47abec0e4590b302920334be5ee3854f96bbd22524feabb8d92b220/coverage-7.17.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8d823d66afd59566030539c49c7a6acaf3083996682be2dda760c63555842094", size = 226088, upload-time = "2026-10-22T16:04:49.513Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/a0/ec0442f3f372c7fd742f49b3022edd392f79e37a0048e1fa333f56d01ec3/coverage-7.17.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:50678474e714c684b82c108e63fbb8f1bcf1266d8293a49980f1d08526f093b5", size = 257257, upload-time = "2026-10-22T16:04:50.982Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/e2/eb0927ba93809f76eee69fa1e47999825fc7dbbabc3e0e1a2744f2677acb/coverage-7.17.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:045c1eeb19fb4eae949850a761102fffb3a5f638b97f977912f95843e54f6669", size = 260165, upload-time = "2026-10-22T16:04:52.409Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/a2/8d4c6055efb32099b15c9cc33d007b8aabebc4832f372a3274de5ba0afc5/coverage-7.17.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dfb12891a773cbc2132349c77c690a045a882fe3f98b4bda50dfabb01893f9bd", size = 261098, upload-time = "2026-10-22T16:04:53.763Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/1e/93412288688a7b03f152a734c8ef086e395108a0a6a746985d3967e220f2/coverage-7.17.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3067608b4429629f640c1b23d2f69b05d2fd45e00ebb6ee9e8fad220a6c11722", size = 263164, upload-time = "2026-10-22T16:04:55.386Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/20/7eb8d805c4f1a212245cef20181dfbf39535357985073d49730ee9cf08d4/coverage-7.17.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a1762e85cbbe3b5ff9c6dcbcc1b89d5c72320094292b7b9572bf882c85e428b7", size = 257287, upload-time = "2026-10-22T16:04:56.976Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/c1/1df29630b4ed17e135c76390afcc6bd273c3dc5ba2a21a76813a600fe98c/coverage-7.17.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62bb77987d3f72a0aaa77c567ee7f9806bc2e748c8f46fafbe1fdb90dd148398", size = 259256, upload-time = "2026-10-22T16:04:58.545Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a1/79/2365d1008d28aafe468a450a24c6c63363de794b5140223d67685cd0e205/coverage-7.17.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:6cc31f27240d4e080437e3b8229d92f1d809c9a4f233607385373b73974e183e", size = 257178, upload-time = "2026-10-22T16:05:00.103Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/9f/f002952d295d772688dffce0d991e3822795b1e3aad158073712a5a5e86e/coverage-7.17.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:61cde5222f1933d476647c5a25ed1a8678b7703098cb5a15f4a0aa39967d8c28", size = 261275, upload-time = "2026-10-22T16:05:01.462Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/fe/f9e15fbb426be97cd679ee5d359151e046f103bcd76b5092c318c26ed596/coverage-7.17.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:11f5f7fb2d97a0fe865f5e7bad4eb0619b957637f676bc088d13844adf26ba95", size = 257029, upload-time = "2026-10-22T16:05:02.8Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/4a/3c398f38694387334ff4c9f71afc8e15b4fa7db7bc0bea4d5b6032eb0df0/coverage-7.17.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e09612b1b82c9df1d2b6c85dee88d5aad3e73d77a8ec0b16ac6a7322cbdf5d9", size = 259109, upload-time = "2026-10-22T16:05:04.241Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/a9/908a3cf1a2335aec1c788682a06c2f742a62a4f987033f080de1c5fd1997/coverage-7.17.0-cp313-cp313-win32.whl", hash = "sha256:bd3e9eb493631ff1ca34bf5efac25b5c66724f837bf6182c4fc771c55946423d", size = 227691, upload-time = "2026-10-22T16:05:05.636Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/13/f7/8cdd7bfd8a63b3e6b133fc395ecfc7b1cb6f561926e7e2ad050de85b83e7/coverage-7.17.0-cp313-cp313-win_amd64.whl", hash = "sha256:f1fc9a7cea899c51d8a53e66c2f082a3d9e461ece32418d3ef0a0b90c32bfd3d", size = 228418, upload-time = "2026-10-22T16:05:07.057Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/cf/0b3fc57f735cd3831ca13d0be5312a5477d5934066683c5d34018cab7541/coverage-7.17.0-cp313-cp313-win_arm64.whl", hash = "sha256:e65a1e61a68493fbfbe44d8bec71b3231d81b9917f62d3dafe0e105072147e83", size = 228142, upload-time = "2026-10-22T16:05:08.435Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4d/e1/722462fe79912ebebc101497bd16c42413cde2dbae771017f1ec0acb84c2/coverage-7.17.0-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:dc5936491e306f2f6f095bd5fba593de11eb0375cee787ca1f245c3a333a523a", size = 227197, upload-time = "2026-10-22T16:05:09.846Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/74/826b9c09f2ebfea803bccb391d935688a25309bff8e819fc446bc629c108/coverage-7.17.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:968c5fb6e0c83cab752d79a70209648ce4d90cae815c60fa229b59e264601062", size = 227314, upload-time = "2026-10-22T16:05:11.422Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/19/c8514d7f5e0659a96ff2bc7377119dca6d420e2761c5fc69ae37618734f8/coverage-7.17.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:12cb8a20ad904a5811e6660d829a586b216e5254b9b34b76dde8a4d65d827dc6", size = 225477, upload-time = "2026-10-22T16:05:12.761Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/74/ef9433ce599f07d8633b4ce6e6d6921505c4ef3f7f9006f8eb66e2c278cf/coverage-7.17.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:bb5ca66937c55bc85d1a5e9c5900a3e4693a8edf2280a9b3672b7b2661a84b95", size = 225787, upload-time = "2026-10-22T16:05:14.394Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d8/66/26e58981940e8b3944c6a9941bec5c7f50840e7009a046712e3f3bcd9e6a/coverage-7.17.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:5cc15faaf318ee5040d835a62c75bc6f122d837274f3b5efd47bf9fbd4ac5b85", size = 226019, upload-time = "2026-10-22T16:05:15.798Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/63/fe175310815cc8357b83b773c9b4c20943c269f217dd825a37c4b4bfe324/coverage-7.17.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7d6d9d396c8b7bcaf76d774a10140b218111484e54c73a5f2a1b75655381748e", size = 226169, upload-time = "2026-10-22T16:05:17.188Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/b0/ac84761f5b4bd226696b0ec4606903d2ef7208abda0aec06c14a4218def4/coverage-7.17.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:42e6f170d1ac04b7eb3363310a6c41cdfd82c1fe6bf9ffbc4a86f380bdf091c7", size = 258092, upload-time = "2026-10-22T16:05:18.691Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/58/d8bdd65a661913bc12eaaa3e59742b2cb8b94f2e7f78e62184f0a58ca493/coverage-7.17.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:acdb5f3c96046efff9dc6c572a6acb2b8d0da09372d7b9a9ed7249cf7d17434f", size = 261096, upload-time = "2026-10-22T16:05:20.089Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/15/5d82e2f0a75ea149e0a6412e137e1d610538772fdfd7199737db7fe234da/coverage-7.17.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3393209f6894713161ee82a9b0e673e58237e0f9733c6638e7a6c0c620ef0b33", size = 262080, upload-time = "2026-10-22T16:05:21.568Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/cc/e3ebfd295d1dd47c7bc84a17d73f150465a37ab388dd68fe82b495dc79a0/coverage-7.17.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e9494d9e99389d39e6a96227749af898d8924ff591cb63944f8a98e68582bf0e", size = 264558, upload-time = "2026-10-22T16:05:22.906Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/9d/e2adff76d6544bbc6df7366d74967923c2de37ba889a006bfb875bf5857b/coverage-7.17.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:032d4c2db4c677eb71d43f2f8b80bf64e9346f7a3f7b6ebb13f1782f3cc6c274", size = 257855, upload-time = "2026-10-22T16:05:24.343Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/fd/ecd1e9cddf1c36b5d03c438568b1f53e63db84bb3656539d71b454484c7d/coverage-7.17.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4343a9378b964eb3cb80fa90406385de91c7e982a769ca9314d848f93bc0d3f2", size = 259933, upload-time = "2026-10-22T16:05:25.79Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/b6/e17a19dccdbcad494c64691f71c1dba3e55c30625bc29ffbb88ac5a0aa8b/coverage-7.17.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:b609df3d6d900464207532c5170a65c6ede8d2e0b91f151f90008a866395cd76", size = 257972, upload-time = "2026-10-22T16:05:27.185Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/0d/37dac534709a3fa43a937c8b0604839bb44b8670b83d143a4b78fec20d1e/coverage-7.17.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:a01ef92caeedfa4f2ad171a3a8e6fece4565de871d8bca428151bf9929f41048", size = 262271, upload-time = "2026-10-22T16:05:28.619Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/17/7c05186925b4d64a46c271dfd944e3f0c1ad89db9095c31a6df157a75df2/coverage-7.17.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:a3914e2c98c34b94c26d2add3d2a61ccfd3534fc4eaa879ee290bdbb5184ba6c", size = 257604, upload-time = "2026-10-22T16:05:30.07Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/65/c241cdee66a0ff86c68f6d37328e735d10e3d30cd6ff66f356039eb688d2/coverage-7.17.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e8a72b26dc5c9a9422e45472b1d67ba5caf273c524c8668cc04b23062663755e", size = 259714, upload-time = "2026-10-22T16:05:31.402Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/09/e93233fe2405574ce0a31ed201c0cba3a860e085db5d2828bf12b7dc0790/coverage-7.17.0-cp314-cp314-win32.whl", hash = "sha256:03baf0688e14a5a44ffd1eefa8928dfc92b14565e521174e072b31b971aa1657", size = 227914, upload-time = "2026-10-22T16:05:32.78Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/77/04979eb217edb94b94afabb4bcc179f60c746f68d3fd0b12688ba9195730/coverage-7.17.0-cp314-cp314-win_amd64.whl", hash = "sha256:3a4459b0f389dd1e51aac3dbfc4ca35b30cae7dc99caa3c0a086d1997a985709", size = 228543, upload-time = "2026-10-22T16:05:34.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/38/155f2f2c6769f8c43eca8a5e581443faa0908828650090b97103b4a41376/coverage-7.17.0-cp314-cp314-win_arm64.whl", hash = "sha256:a32ee5831b15ba239bef5d272ae586ca8acea4a661b5f2941f5a0d380e518b23", size = 228396, upload-time = "2026-10-22T16:05:35.951Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/55/d6751572d9445485c4c5a51ec6ae11caa5c11b7ef2448cdccc884f7f54d9/coverage-7.17.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:9c083e253e96fdeeaf48133fe836cac86ace2db215d235700e7f7532420a200c", size = 226486, upload-time = "2026-10-22T16:05:37.363Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/a8/82d37760e537bfdb9fdee285fa1e1b45bc153293d23e2331c7befedd1990/coverage-7.17.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b88fb4d4d7608cbcebdc7ff7dbffc2115e3b81d6c33a79147cd79d54fcb080f4", size = 226861, upload-time = "2026-10-22T16:05:38.777Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/96/70ec00a9db6d7bdd3f914eba12057360769f5cb78a98456e71fe1937deb5/coverage-7.17.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2bf3ee38a40c0570c316b9e7507c472469586906a20f289705898528c31aaea8", size = 266849, upload-time = "2026-10-22T16:05:40.285Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/d8/d99be3bfbb208512f039c80b31e404138a86678fc929a17acd5b7135a6ae/coverage-7.17.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7c570293f001ea91598b90e90cb9b98fddee833e90bbede432cbd218331ccd8e", size = 269402, upload-time = "2026-10-22T16:05:41.585Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/50/6cbe8b5a5060edbd21ce8109c4e900f8b7656e8b72ede6dc4d82dc0b8bfb/coverage-7.17.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:791f9ee09814dd30d9562b4f4eb037a371485ec1c830b53999d2320d20c4e764", size = 272025, upload-time = "2026-10-22T16:05:42.921Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/05/d3633add01e5518dfdacfdbd1be41cb5c581412dd8bccd663edf6ef7fec8/coverage-7.17.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c7c5672ecf1b497de7a0b37743bef40e3b58e3207e9fe2ed6682cb0420836a88", size = 273515, upload-time = "2026-10-22T16:05:44.324Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/57/d9/b83387780271bf9ea9f96a3aeb01c1c302c4494a927923c4fa70cd170a3f/coverage-7.17.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:337f87e62e1c5f43c8198d879f677c342d152f84d3f157add12558853cbb8eaf", size = 266725, upload-time = "2026-10-22T16:05:45.713Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/be/8e80b29764ae3f4d70d44952eee3f3927eb36897490fe799e400adb7f5da/coverage-7.17.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c8a58baa8eb6154c6645eadcc19b6c089deab78c24a612a83206f2a8a5992a7c", size = 269312, upload-time = "2026-10-22T16:05:47.054Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/c9/e702f588fe8d83ca844f133270ad0a49bf650c8cf260551ff6f11a6b6bbf/coverage-7.17.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:fb5745048ee20f796b0e3ab61831049e749acff188563e2af32f58ede957ac1b", size = 266740, upload-time = "2026-10-22T16:05:48.343Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/11/ee13ad14b714d75ef07c490b6e43969574a8b8b8c6d67bc741fcbacbf9c3/coverage-7.17.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:7b5abcae74750302ac4bc77351eaee87c450e4abd3b6225eacde3858e260f8b2", size = 271036, upload-time = "2026-10-22T16:05:49.727Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/bc/854e8912c11c54aaf416e74602000589c6efbbe1f251dc90202fdabddcb6/coverage-7.17.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4e153f0bd6509dbf837fd585f489b3328bfd98f2a718a0b15ae63032148b285c", size = 266158, upload-time = "2026-10-22T16:05:51.141Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/dd/96432830ddf63bc42654de54eee77a0cd6949cc65769bda06f353323f23a/coverage-7.17.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e42a835271922fe7bf98c7a05c78d4032f4e52bf5b07fafa1eadfdfc2f0ad22f", size = 268088, upload-time = "2026-10-22T16:05:52.92Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/ee/230c6ec065a6629d41cc89323ceb54d37e2650c104f70fc108f4ee7c5051/coverage-7.17.0-cp314-cp314t-win32.whl", hash = "sha256:5900055351ec89fdffb34b27898815106529ded29a9496464c1ebd6313fd40fa", size = 228229, upload-time = "2026-10-22T16:05:54.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/1d/23eb6aadcb3c00764ff2961c0ff55f5dfa2543856d932b949bbc04fa68e9/coverage-7.17.0-cp314-cp314t-win_amd64.whl", hash = "sha256:5ee9c8bd13a59e301dc2aefe7aa8384633406808de051b1982775667094eb673", size = 229154, upload-time = "2026-10-22T16:05:55.682Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/f1/7df117e8e016b7a3ee459e833b3456f3610505afefd071f8727702d98439/coverage-7.17.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a9cb9a0fb58e6fff5442969af36094ecd6976f4907f179e33b27e15355d8f74", size = 228726, upload-time = "2026-10-22T16:05:57.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/a1/f9c24911755f91e6f451ca2e2c1804fbcbe9fecbc3310e341bbbbfa1d85b/coverage-7.17.0-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:adabc1079ba844b096799ba8638d8df434aca1613f95bb7d5791af320cf05559", size = 227196, upload-time = "2026-10-22T16:05:58.543Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/a5/2b665b40c626e6bb40e5e8e23d91170b48b5f2f57186f46b07f2fac42386/coverage-7.17.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:6b4593d2871c4c801656dd5861e759f8f5156febd6b6061b02f6a72d64618b7b", size = 227315, upload-time = "2026-10-22T16:06:00.409Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/8c/22b518d61b930b8a4d62905d046c76a03675ef19b466462011dfb16439a3/coverage-7.17.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c2c48a36bb970b7265b196032bfd4237c0b373f2b25ef7012d7e905b5b35c19c", size = 225490, upload-time = "2026-10-22T16:06:01.743Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/5b/d3b141455944e030cd4987f055f8c84a44a1a0b28d81ae93389f44051691/coverage-7.17.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f8bc2cd4c6aa58be1ca243fb8cddb6c3c42031fe4403991ad9cf2b3baed03d9f", size = 225797, upload-time = "2026-10-22T16:06:03.423Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/24/aab2156983f7022361352640c583d08f0238e4cd7463eb921172001b4cfe/coverage-7.17.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:cbf0b83ce927de6053279ba61342d9f8892afde1385fcba9144cd05d4023d109", size = 226025, upload-time = "2026-10-22T16:06:04.76Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/db/94697b9ccf4ec94cdad07bf94e2a21b9702247cb212d2d5f18d2b9c3d0de/coverage-7.17.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:66efc0fb99cee34626fc17d3adac9c3cd816bfdad563bb1e983c3ef432f566d4", size = 226193, upload-time = "2026-10-22T16:06:06.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/fd/db1c4ade4219831d590fff5aa5b7d9ceaf84586e8e60da6fff71b6182251/coverage-7.17.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58a304efdf2253fb2ea03d45d0a04cc174a92a0cd5279c28c5bb893ce7410968", size = 258046, upload-time = "2026-10-22T16:06:07.51Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/ee/84ed138990ed752abd73db4adffc1842d6152017d8e21809cc109a413fda/coverage-7.17.0-cp315-cp315-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:aed06129a9f530a948928260d7d2d81c47261355b0127e3c782251b38958463c", size = 261735, upload-time = "2026-10-22T16:06:08.861Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/ad/c1e4367bbd1e7d562d6bc979c82b542f2040544e95a8cd995b694caf0e1a/coverage-7.17.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f6cdb47a9be2d3313829bed1d296086287682a3ee901ff987b3432b45705b771", size = 262819, upload-time = "2026-10-22T16:06:10.49Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/3a/e8e8509b0940403eab15d86f70022790a01fce3e971a161919c544953f7a/coverage-7.17.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:804fbaf81d09b34e2f8b1159d01e211a50713d743d32fd9b2ca6cf0ae507a66f", size = 265194, upload-time = "2026-10-22T16:06:11.847Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/77/d64bbdbb734b1059ebcde2b5df567f142a9948079e51af9b0abf8c9ec17b/coverage-7.17.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b2afebb96da9a1bbca142f8cc12320c14e5c215e0a49cded4f191f5a31506a28", size = 258410, upload-time = "2026-10-22T16:06:13.234Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/29/7cf81f08a254532c074eb52cfe6b12bb753d08f2997269c9fac8de359541/coverage-7.17.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:bd04fd23206be9ad3de13b0b39313094fafa66a1f6baf70f5471c004a9fac47d", size = 260697, upload-time = "2026-10-22T16:06:14.595Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/56/bacea6dee2d5ccb31ab0cfffcee87ca7efa80ff048840209c8013aeaf02e/coverage-7.17.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:5ebfbc87836529a31d25c2dec1262c38eea852ec1c46c0f690a515a7339d9c5b", size = 258649, upload-time = "2026-10-22T16:06:16.265Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/97/fd8a6a63740f9ee177c53b59e2f4d0752369bb0fd154086a1e69aa1fb255/coverage-7.17.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:a59c3b470ac3b2432af3598a996affbeb10236cd899a005c1c4e517fcff8b592", size = 262989, upload-time = "2026-10-22T16:06:17.85Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/37/7cd3d3520d45db3788456452b65446182c08f2a7c276f40c9dd11966be02/coverage-7.17.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:7fef12cec4b96f59e09761cbd4fc9bdf4788062d1ae435b920241fc16c8a9549", size = 257955, upload-time = "2026-10-22T16:06:19.563Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/b9/80343a55e07d854927a915cc21a52e350ae1db9ead33f0248507b960785f/coverage-7.17.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:a14e8d69464da9cbe1dc29e7116dbd37296d1d51a695327c478e250349085089", size = 260512, upload-time = "2026-10-22T16:06:21.055Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/32/e4c816f0cb3efdc6392bb276ff88359729f9dec605bdd3c1c7a44776f759/coverage-7.17.0-cp315-cp315-win32.whl", hash = "sha256:9a66074231799d8884d267234d49f60c90b43a945dfe069646b72f3058cd4e67", size = 227913, upload-time = "2026-10-22T16:06:22.407Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/14/283120142ac281834808584249b89957de997c28573ddd65ae106b622121/coverage-7.17.0-cp315-cp315-win_amd64.whl", hash = "sha256:79cf71e5f9a48877ccfed5baa2c72f45af4feeaa596249e23eb15b473134830e", size = 228532, upload-time = "2026-10-22T16:06:23.756Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/bc/83dbc6c3bd58042afaefcb0cfd7d7a2e3076989a2f3d9bc6e6edac819784/coverage-7.17.0-cp315-cp315-win_arm64.whl", hash = "sha256:09e563b49c81cd0a33734e926d7a4a6ef1778d74304cde2dcc3aff8b30ea1036", size = 228393, upload-time = "2026-10-22T16:06:25.163Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/ed/9463d1cb1766a2570343a372c2871c7fb4d561e5051f029399f4d57ce947/coverage-7.17.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:a5e2e0625dfc789af0b2e10acfc106b352f314fffbd19e6392a7961c8cbe5d9a", size = 226481, upload-time = "2026-10-22T16:06:26.563Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/59/6536c7fa87be13236b4184fc395f14d18f622a5b8ef7448a6bfdf5f24ec0/coverage-7.17.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:194562ab1eff0d85aee8a17ce4c5c0bc1ebf70a629a7145257123156ad100fd6", size = 226876, upload-time = "2026-10-22T16:06:27.921Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/bc/4ffae6038f78382c9ab6a4969cb5fc01d50b083d119851085807629abe88/coverage-7.17.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:85682ca89bc4601125dcdff23fa70e6274e13c9ad502fba845e6c274ab2c6569", size = 267241, upload-time = "2026-10-22T16:06:29.356Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/60/cae4b708b4217d33ebf66b9c57f8910a257346b3eaf054a78d73605ddc4c/coverage-7.17.0-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:0d0fac604a962ff546beb038cba9a5a09d88e6e3f01612fb46f7bd4fe5dc8dca", size = 270079, upload-time = "2026-10-22T16:06:30.736Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/84/1225ab04e55a6a2e483e903a5eb0f8f081cb5325df833594534aa288d91c/coverage-7.17.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72edd4f9483ae30cd1ba4f230687840ef7b58a16afb1c9e81131fd6d64655f36", size = 272775, upload-time = "2026-10-22T16:06:32.247Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/ad/567f8dd9246a553aa8753732c41f0e0654e98e9a617d6282e64eae0e6aa8/coverage-7.17.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:91e487ad07c511da77b574820141a7c2da09bc2a4b4090b5be2424295d100697", size = 274110, upload-time = "2026-10-22T16:06:33.859Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/5f/e0ee76895df40601e4aedffb6b8e71ea48e276a629fb4488b92cffffca14/coverage-7.17.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1cabb31531002fef5197de5df3c84730aef01e750e25154b9813a2583435aba2", size = 267775, upload-time = "2026-10-22T16:06:35.193Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/6d/d19c6e45e940e5b9ba697b7be9a8e63cef73d90bdea45b670a59df466717/coverage-7.17.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c9ac886242bbd50fb35a2242ba79555a99891e657da33f98b7ca968e3488a350", size = 270268, upload-time = "2026-10-22T16:06:36.597Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/a3/b2731bb7aef2db800b330603675c3fa58a6497a05d5b5f8625f3b6285f68/coverage-7.17.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:d45cdc495671fc99268ff3653e0da4244972e9fc0e1fc3ea9de18781ad28963a", size = 267298, upload-time = "2026-10-22T16:06:37.973Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/75/d0c90a81b6b6607933109914dc8b0ef0a5f4cacf9482ca868ae773ee5d0b/coverage-7.17.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:12961f738d717a046d4bf3f8d1727eb3ebe2ed5478ff96cd6233d4dfc39323d3", size = 271899, upload-time = "2026-10-22T16:06:39.389Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/1e/f038f3a2614e9ef839a40a184713aca40b8ed79e626ab5cdc388771045df/coverage-7.17.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:1ee0a982b0e1230b3edf768a7dd022bd2377303763895327ac62deb5efacee03", size = 267380, upload-time = "2026-10-22T16:06:40.97Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/30/8d636e639b2d8b1934128573402a7caf66c8cfbc794fa02061d84f115c34/coverage-7.17.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:460679f53893081edb94eeed011d26be37228ba649b853fd2aed7e4394fb1f35", size = 268993, upload-time = "2026-10-22T16:06:42.361Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/7a/219f6b391cb0636242d06c390a8add5af91afa3e92afd0380dbedd34f487/coverage-7.17.0-cp315-cp315t-win32.whl", hash = "sha256:600e121e412cd6bdb52ec105b95c6a04da0c9710d1534f6e64a42db667907802", size = 228216, upload-time = "2026-10-22T16:06:43.714Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/3f/514d294319c5eac11494394545de209079f33993e14526c220eab29b2a96/coverage-7.17.0-cp315-cp315t-win_amd64.whl", hash = "sha256:c3e11b81faafb1f063248735c3e2c5c4183fc1db2c7f46782170dd7760dffcbc", size = 229146, upload-time = "2026-10-22T16:06:45.262Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/82/c0d8bb0a67df838fc7bc6f4060ffc404fd1154fd18e624d83e6abc41aeef/coverage-7.17.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d472ee1c64868a917a47f02ffb4ac8c22b477f7589d57a3eb0c58b1ad4f0137c", size = 228716, upload-time = "2026-10-22T16:06:47.097Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/17/48032919343afa2906112d458aceda2043afdb24a2ee8eb4c60904d8ddf1/coverage-7.17.0-py3-none-any.whl", hash = "sha256:bac487dce0d2aff28ddf1a533a916f771416eee0e493960f611e49037b878e9d", size = 217383, upload-time = "2026-10-22T16:06:48.471Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cryptography"
|
||||
version = "50.0.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cffi", marker = "platform_python_implementation != 'PyPy'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9d/af/182eb91b0df3fe75c4d9f26fe70684569566745f6ba7e5c9c73a862c5252/cryptography-50.0.2.tar.gz", hash = "sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5", size = 880623, upload-time = "2026-09-30T15:30:04.884Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/56/d194340cc4a57535e82e1bee9e89667ac4b7c13b5d3f59686deae3094dd5/cryptography-50.0.2-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb", size = 3914904, upload-time = "2026-09-30T14:43:44.339Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/69/c9bd862c3bf43d6399c433caf002df16e2dffd4be49bdf515cda38038711/cryptography-50.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0", size = 4731146, upload-time = "2026-09-30T14:43:47.113Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/21/69/64cef1f702bf6657e0cc186ed1a2891d50d29fb41586b254e1c07adea261/cryptography-50.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2", size = 4719841, upload-time = "2026-09-30T14:43:49.01Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/6b/61a3f8d8c5e1e49a6cddccafc4015cc1c0021360ab0acb4080e7a423644a/cryptography-50.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480", size = 4738340, upload-time = "2026-09-30T14:43:50.932Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/2e/7212ca32fd43dc91f2f41db20160b268098874b4c9a0e7be94d6835f5b2e/cryptography-50.0.2-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134", size = 5367029, upload-time = "2026-09-30T14:43:52.911Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/f1/b474e930c4d910328780e3940da76f5aa5cbc48ce1fc14e44d239d9ea9db/cryptography-50.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856", size = 4753050, upload-time = "2026-09-30T14:43:55.272Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/52/9af10e80ac16b0fcc2123f9cbd5e7afbd0fd5075bb7a607c592258a39cda/cryptography-50.0.2-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e", size = 4376724, upload-time = "2026-09-30T14:43:57.24Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/37/6202e488cc1eb625ea110c292c6bda92823176e023f427d8d5660ce8d632/cryptography-50.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04", size = 4737859, upload-time = "2026-09-30T14:43:59.541Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/30/e86d7d518489b0ae2497091a35287abcb1a2ce4037837a34afbe9b1d6964/cryptography-50.0.2-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc", size = 5324103, upload-time = "2026-09-30T14:44:01.901Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/69/2c833a049475e0a3444e94c7d0aca0aa51d166374a449b09e92ac98138de/cryptography-50.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079", size = 4752576, upload-time = "2026-09-30T14:44:04.545Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/5d/906970b83bbfc1f5bbfb677a143c181f2801f23b6a7204a3b47c42c97e65/cryptography-50.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51", size = 4870819, upload-time = "2026-09-30T14:44:06.884Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/e3/f2298d3bb55e0c4a91841ec4d01b3f020ba8c5fbf15ccdcc6dcf03f97025/cryptography-50.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93", size = 5030152, upload-time = "2026-09-30T14:44:09.443Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/4f/adfc442765721292fff86d314ce385d3249d22db42295c0dd057727b60f3/cryptography-50.0.2-cp311-abi3-win_amd64.whl", hash = "sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c", size = 3824692, upload-time = "2026-09-30T14:44:11.671Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/cb/52eb3770c0d0be2702a98c6e96065ddc0a2877cf0845aa9c23397c142cd4/cryptography-50.0.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8", size = 3892731, upload-time = "2026-09-30T14:44:13.485Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/8e/aa1fc533d4546b127b45de8aa024eb5933d23eff9debfe25931e56861095/cryptography-50.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047", size = 4710431, upload-time = "2026-09-30T14:44:15.427Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/64/72bc3f75176e7e406b748a3e3830432b8c51297b38368713df04dc04898a/cryptography-50.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539", size = 4694824, upload-time = "2026-09-30T14:44:17.69Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/c6/62c77550edfa5ca3f14bf44a1e6739b9fa09d6e998a11d97ed8213bccc98/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1", size = 4716967, upload-time = "2026-09-30T14:44:19.661Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/37/cce70f150c432914460157a6ecc161752e053aa5ec0ef3b3f7dc6e31039a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7", size = 5328676, upload-time = "2026-09-30T14:44:21.744Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/9a/6f2f0304d634ceafdeaf23e84537336664ac419b5d07611675c2ad3f6b7a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18", size = 4727698, upload-time = "2026-09-30T14:44:24.178Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/de/66bcf9244d118663b2e1aaded8990f4640e3d7b7411870a5765f252074d2/cryptography-50.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37", size = 4354821, upload-time = "2026-09-30T14:44:26.263Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/e6/db28a28c7b6c676addce89136de3d8db49ea825a8c863472e36e42ead4ad/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2", size = 4716748, upload-time = "2026-09-30T14:44:28.447Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/96/01546c7f69ea0e2ab790a2e4f0934a4052fb9b388147fbf83c2fd72f1e57/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1", size = 5285085, upload-time = "2026-09-30T14:44:30.704Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/01/03263395f74d50b071e9e66daace3f8bef80493e5d410726f2ba8554736b/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05", size = 4727268, upload-time = "2026-09-30T14:44:32.92Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/94/2bfe8f29ec0cc9c0d99359c4161adf32858e4934b72c6d100d2ac0bbe962/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e", size = 4849503, upload-time = "2026-09-30T14:44:34.969Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/44/e80651ecbf0e42b62e2bb5f5768916e07eea72e1297338956a61df361f88/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e", size = 5004057, upload-time = "2026-09-30T14:44:37.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/cc/1d33befb3cd7ea7e77d2d73f43f2066471da1b21f24a6156efcaabf6d2e8/cryptography-50.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45", size = 3795868, upload-time = "2026-09-30T14:44:39.71Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/49/93f6a6e7a87c9aa68d44d3e1cdb5fe8f60c90d5d2f46acae9a56892816b8/cryptography-50.0.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37", size = 4133708, upload-time = "2026-09-30T14:44:41.807Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/75/32ac2a56243d778805c16ca6a32b8f74fb757df7e28d7ecb560afafb59cf/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a", size = 4956267, upload-time = "2026-09-30T14:44:43.693Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/a4/2c8d734e43d97f0842ee9f1b7b4bfb3d0cf5e19edebf43c2afe6675c2320/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67", size = 4966465, upload-time = "2026-09-30T14:44:45.769Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/58/ee288c829a6f41f6235ae9dd33d82fd19b45442b65b4c8a3da36963d9f7a/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc", size = 4959356, upload-time = "2026-09-30T14:44:48.211Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/20/9ded6d51ddd9897f6b6e81fb9ebea7951d7cc5d6c890b0ed8abf77a51a80/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_ppc64le.whl", hash = "sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d", size = 5548822, upload-time = "2026-09-30T14:44:50.86Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/a8/8df951850d6b31d2a00218f19e2b3f999523437ed7a819df7fa427942fca/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7", size = 5001199, upload-time = "2026-09-30T14:44:53.379Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/f9/36b3022218ce75b7cdf068fb95f809f9bd0d820e4955ef43b90c255cc7ac/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408", size = 4629333, upload-time = "2026-09-30T14:44:55.635Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/72/20f99a219f6af47cdd1cbd978c243b92d71496e168a746138af44ded4f29/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b", size = 4958822, upload-time = "2026-09-30T14:44:59.639Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/20/196f112617fb08eb4d608a2a6c422373d46f9cc2857f38fc0667033c0899/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_ppc64le.whl", hash = "sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd", size = 5506351, upload-time = "2026-09-30T14:45:02.267Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/95/83378121ef3eaaaf71d4b781577ff794acb39b9e1b87a3f156898c8497ed/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c", size = 5000859, upload-time = "2026-09-30T14:45:05.009Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/22/f7/70fd7ae4d1dbfa7ba29b02e1b9068771519a86027756510b700ce81086a8/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be", size = 5092151, upload-time = "2026-09-30T15:29:15.932Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/be/688367b74de86984bd58d8efacfc7c9e68b89a6a22ced0fb4f38db50254a/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020", size = 5286120, upload-time = "2026-09-30T15:29:18.309Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/d1/55f8a3f2ef5d1529e16835ef10cf0fe3d559ce237b46dddc440c0bba3649/cryptography-50.0.2-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c", size = 4111557, upload-time = "2026-09-30T15:29:20.155Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/ad/ac987755d00e1e64273760228d2635ae38dae2be83e3c6e0d3289d91dec3/cryptography-50.0.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2", size = 3943588, upload-time = "2026-09-30T15:29:22.265Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/8d/6d585339bedf85d45044c85d8412dac53f2bb6f918e8b7777efba1787844/cryptography-50.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd", size = 4756166, upload-time = "2026-09-30T15:29:24.58Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/f1/1c1f6874e8550cfddd4b688ceb38cefb6ed15ceed224d56f133f3d88c214/cryptography-50.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767", size = 4749145, upload-time = "2026-09-30T15:29:26.807Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/63/61b15dc1a8de03fe0adbe3fd7608b3ad5c73bf50993bbcb1faaa930afe33/cryptography-50.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454", size = 4763638, upload-time = "2026-09-30T15:29:28.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/35/b345bdfa40c9126df1a9d33236aa98418367931b8725f84fc3ae2b98dc59/cryptography-50.0.2-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd", size = 5382217, upload-time = "2026-09-30T15:29:30.589Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/87/ef344a9e616871f2519c22d6afcda79ddd5d35e9592d95eb6e677608d055/cryptography-50.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5", size = 4781387, upload-time = "2026-09-30T15:29:32.605Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/5b/f2fdb13cd0b96f6f932c8627bb292a45f11c64d21620a8e120aee9a3b848/cryptography-50.0.2-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107", size = 4403790, upload-time = "2026-09-30T15:29:34.374Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/ce/7e4f662b1e3c393513569e402cfc85ac7da0bd3d5435e122a3140219eb2d/cryptography-50.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602", size = 4764319, upload-time = "2026-09-30T15:29:36.149Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/3f/86ff33ce34cc0de6847fb96e035a1a760d81652e38643f617c02ad32ef7a/cryptography-50.0.2-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227", size = 5338560, upload-time = "2026-09-30T15:29:39.053Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/cf/6b5c8e2fd9202d98988ab7cb5cc5c991704c4ad55f492ff408e4969f83f1/cryptography-50.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c", size = 4780973, upload-time = "2026-09-30T15:29:41.251Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/bf/8d6ebc7dded797bd0f0160d52188021211f011a2b164ef0ae1dac4587465/cryptography-50.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e", size = 4897738, upload-time = "2026-09-30T15:29:43.106Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/aa/f3f6e0de7e6253b8baa8b2d8fb9d50924fa75cee3d4624bd4bc1208ee923/cryptography-50.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94", size = 5058280, upload-time = "2026-09-30T15:29:44.827Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/b6/a1faf3a27ae9405fb34b1713cc73b2d8a26b04d5c561578fa2e6ef3e5bb9/cryptography-50.0.2-cp39-abi3-win_amd64.whl", hash = "sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de", size = 3854095, upload-time = "2026-09-30T15:29:46.782Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/7a/f08d34ce09d60f89ebd391e2ebc6ba2b995e6dd7552f41820f8085f94e53/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67", size = 4716035, upload-time = "2026-09-30T15:29:48.681Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/67/e18fb65592451a2acb76e9f2fbe14e0f47a8318b4c5430f1633851d03daa/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a", size = 4726917, upload-time = "2026-09-30T15:29:50.608Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/28/38fdce17e60f6b825e69fc3b7f75e70a6612759980704697e1de4cbfaf6e/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48", size = 4715341, upload-time = "2026-09-30T15:29:52.522Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/b1/d9121a717e0f893c64bd6ca7702614778d7df2a5c309128a002421788516/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42", size = 4726322, upload-time = "2026-09-30T15:29:54.263Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/8b/e6d153808bf353e152abd2fd4d8f09670d956ac78379ac46e60d7efbf04c/cryptography-50.0.2-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81", size = 3873097, upload-time = "2026-09-30T15:29:56.097Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/1d/1271f287ff7170ddafc2aad36260c4eec20ccd2fea70f38455e9d56d427b/cryptography-50.0.2-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452", size = 3805376, upload-time = "2026-09-30T15:29:58.729Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "idna"
|
||||
version = "3.20"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "importlib-metadata"
|
||||
version = "10.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "zipp" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/98/f6/4eda8458eb00ec03e715c376c6b23b3def69687924c68d36d1c4003d3bc4/importlib_metadata-10.1.0.tar.gz", hash = "sha256:82b04047fa09792c1a8cfeddfe08bec79e4b13c29c8469b0d3949860f61017e8", size = 67761, upload-time = "2026-10-24T00:01:44.856Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/65/b6/495438ad95e0102aff8f6786b5474202f38cd5d4700d03a72b77977dec10/importlib_metadata-10.1.0-py3-none-any.whl", hash = "sha256:cf45ce66a929c64e994185a809c04840d0501db17e663810d993d0f4829265c7", size = 32221, upload-time = "2026-10-24T00:01:43.507Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "iniconfig"
|
||||
version = "2.3.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jaraco-classes"
|
||||
version = "3.4.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "more-itertools" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jaraco-context"
|
||||
version = "6.1.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "backports-tarfile", marker = "python_full_version < '3.12'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/af/50/4763cd07e722bb6285316d390a164bc7e479db9d90daa769f22578f698b4/jaraco_context-6.1.2.tar.gz", hash = "sha256:f1a6c9d391e661cc5b8d39861ff077a7dc24dc23833ccee564b234b81c82dfe3", size = 16801, upload-time = "2026-03-20T22:13:33.922Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/58/bc8954bda5fcda97bd7c19be11b85f91973d67a706ed4a3aec33e7de22db/jaraco_context-6.1.2-py3-none-any.whl", hash = "sha256:bf8150b79a2d5d91ae48629d8b427a8f7ba0e1097dd6202a9059f29a36379535", size = 7871, upload-time = "2026-03-20T22:13:32.808Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jaraco-functools"
|
||||
version = "4.6.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "more-itertools" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6c/1f/c23395957d41ccf27c4e535c3d334c4051e5395b3752057ba4cbaec35c56/jaraco_functools-4.6.0.tar.gz", hash = "sha256:880c577ec9720b3a052d5bc611fb9f2269b3d87902ef42440df443b88e443280", size = 20837, upload-time = "2026-07-14T01:28:02.544Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/02/36/ecc85bc96c273dc8a11273ed4782272975e6338d4a3e9228621175edf0e3/jaraco_functools-4.6.0-py3-none-any.whl", hash = "sha256:99e3dc0060c5cbe8fcd1cdb36258e2a65ca40f1566b2033b12abb1bb44dd3c30", size = 11677, upload-time = "2026-07-14T01:28:01.59Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jeepney"
|
||||
version = "0.9.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "keyring"
|
||||
version = "25.7.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "importlib-metadata", marker = "python_full_version < '3.12'" },
|
||||
{ name = "jaraco-classes" },
|
||||
{ name = "jaraco-context" },
|
||||
{ name = "jaraco-functools" },
|
||||
{ name = "jeepney", marker = "sys_platform == 'linux'" },
|
||||
{ name = "pywin32-ctypes", marker = "sys_platform == 'win32'" },
|
||||
{ name = "secretstorage", marker = "sys_platform == 'linux'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "markdown-it-py"
|
||||
version = "4.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "mdurl" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mdurl"
|
||||
version = "0.1.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "more-itertools"
|
||||
version = "11.2.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/52/b8/c63995bebbb9ac9c059350e0fb8c82c2420c85aeca7d34e40aecf3df9281/more_itertools-11.2.1.tar.gz", hash = "sha256:cbf08fd0af284dc69718b9b76a8e6203df624d70209ea511e4219d350c856f63", size = 154133, upload-time = "2026-10-14T18:50:30.407Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/57/3c4b1c6f2e0cc29ba023802458ea3d2a996f87085559e4a5f2192d549532/more_itertools-11.2.1-py3-none-any.whl", hash = "sha256:35a7377edd1dd6608dcb2cdf534ded55ea32d49448875ad042cd3f879fb1ded0", size = 74405, upload-time = "2026-10-14T18:50:29.116Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "museater"
|
||||
version = "0.1.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "keyring" },
|
||||
{ name = "mutagen" },
|
||||
{ name = "pathvalidate" },
|
||||
{ name = "platformdirs" },
|
||||
{ name = "requests" },
|
||||
{ name = "rich" },
|
||||
{ name = "tomli-w" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
dev = [
|
||||
{ name = "build" },
|
||||
{ name = "pytest" },
|
||||
{ name = "pytest-cov" },
|
||||
{ name = "responses" },
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "build", marker = "extra == 'dev'", specifier = ">=1.2" },
|
||||
{ name = "cryptography", specifier = ">=43.0" },
|
||||
{ name = "keyring", specifier = ">=25.0" },
|
||||
{ name = "mutagen", specifier = ">=1.47" },
|
||||
{ name = "pathvalidate", specifier = ">=3.2" },
|
||||
{ name = "platformdirs", specifier = ">=4.2" },
|
||||
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0" },
|
||||
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0" },
|
||||
{ name = "requests", specifier = ">=2.32" },
|
||||
{ name = "responses", marker = "extra == 'dev'", specifier = ">=0.25" },
|
||||
{ name = "rich", specifier = ">=13.7" },
|
||||
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.6" },
|
||||
{ name = "tomli-w", specifier = ">=1.0" },
|
||||
]
|
||||
provides-extras = ["dev"]
|
||||
|
||||
[[package]]
|
||||
name = "mutagen"
|
||||
version = "1.48.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/df/70/1675da133ea92227da41bf5b24e1c66be597ff736a1533ade41da986852f/mutagen-1.48.1.tar.gz", hash = "sha256:8f95637ab9f6f305cec6bd1294e197debe207998e3e068596563c74f86b0a173", size = 1276978, upload-time = "2026-06-25T09:47:32.443Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/47/d8/a29e4e3991765e7ce4ed1f7e4074fe1ba9da03e0048639734de60f9cadb9/mutagen-1.48.1-py3-none-any.whl", hash = "sha256:4f077fe87d3fc7fba259aa63d8c026b18382ca6a42ef37c61e16f1b1b5b82fe7", size = 195706, upload-time = "2026-06-25T09:47:30.296Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "26.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pathvalidate"
|
||||
version = "3.3.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/fa/2a/52a8da6fe965dea6192eb716b357558e103aea0a1e9a8352ad575a8406ca/pathvalidate-3.3.1.tar.gz", hash = "sha256:b18c07212bfead624345bb8e1d6141cdcf15a39736994ea0b94035ad2b1ba177", size = 63262, upload-time = "2025-06-15T09:07:20.736Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/70/875f4a23bfc4731703a5835487d0d2fb999031bd415e7d17c0ae615c18b7/pathvalidate-3.3.1-py3-none-any.whl", hash = "sha256:5263baab691f8e1af96092fa5137ee17df5bdfbd6cff1fcac4d6ef4bc2e1735f", size = 24305, upload-time = "2025-06-15T09:07:19.117Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "platformdirs"
|
||||
version = "4.14.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9a/6e/886dc7c9d21e2d95aceb696f1e31271742033aeef3661f6e9c8921493592/platformdirs-4.14.3.tar.gz", hash = "sha256:021add1ab113483edbcd4694f5fbb2d688b893ea30d35e1155bb371cf4be0be8", size = 71124, upload-time = "2026-11-01T16:27:32.928Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/93/41/f0aa003909ee77a9e7e55f8659abb635ca23ab0d022a449bbb18da87a1ef/platformdirs-4.14.3-py3-none-any.whl", hash = "sha256:cba2d05fe5e18b26b1fa6f376b8e6234c012abe1f8696c486fface7d0054e931", size = 35276, upload-time = "2026-11-01T16:27:31.498Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pluggy"
|
||||
version = "1.7.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pycparser"
|
||||
version = "3.12"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pygments"
|
||||
version = "2.21.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyproject-hooks"
|
||||
version = "1.3.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6d/5d/f2ddeef4a855a102aaae5e97826a0260007522ab504421b75addfdb1517c/pyproject_hooks-1.3.3.tar.gz", hash = "sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43", size = 21013, upload-time = "2026-09-16T08:58:03.999Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/85/11/044d1ae1b4ec0d7af88ee5bc91e081be1022533032b906a7bdabdbb60977/pyproject_hooks-1.3.3-py3-none-any.whl", hash = "sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b", size = 10724, upload-time = "2026-09-16T08:58:02.96Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "9.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||
{ name = "iniconfig" },
|
||||
{ name = "packaging" },
|
||||
{ name = "pluggy" },
|
||||
{ name = "pygments" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest-cov"
|
||||
version = "7.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "coverage" },
|
||||
{ name = "pluggy" },
|
||||
{ name = "pytest" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/b1/51/a849f96e117386044471c8ec2bd6cfebacda285da9525c9106aeb28da671/pytest_cov-7.1.0.tar.gz", hash = "sha256:30674f2b5f6351aa09702a9c8c364f6a01c27aae0c1366ae8016160d1efc56b2", size = 55592, upload-time = "2026-03-21T20:11:16.284Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl", hash = "sha256:a0461110b7865f9a271aa1b51e516c9a95de9d696734a2f71e3e78f46e1d4678", size = 22876, upload-time = "2026-03-21T20:11:14.438Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pywin32-ctypes"
|
||||
version = "0.2.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyyaml"
|
||||
version = "6.0.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "requests"
|
||||
version = "2.34.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "certifi" },
|
||||
{ name = "charset-normalizer" },
|
||||
{ name = "idna" },
|
||||
{ name = "urllib3" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "responses"
|
||||
version = "0.26.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyyaml" },
|
||||
{ name = "requests" },
|
||||
{ name = "urllib3" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9f/47/f216a33221db8eff328987661cf18371afee89c62a62b434b963d6b509c9/responses-0.26.3.tar.gz", hash = "sha256:b0c11ca8131b8b227b8d5108e6ed39772222bd5aab030ed430e8f99057c4c409", size = 86335, upload-time = "2026-08-26T19:17:24.373Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/86/ca7958de70cb0752350575e98229368a3a2f746a2942034b3364e17312bb/responses-0.26.3-py3-none-any.whl", hash = "sha256:74474f799334ac4f37d93b6437ecc3bb1bb5c77a8d31780a338643be2dce0af8", size = 36289, upload-time = "2026-08-26T19:17:23.176Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rich"
|
||||
version = "15.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "markdown-it-py" },
|
||||
{ name = "pygments" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.17.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/59/73/81f140c4edd9cc323de5478e6bbd3bbcfae9a82692df1a258de8cec6a6d2/ruff-0.17.3.tar.gz", hash = "sha256:a57049c8addb3662073859bb55a7ad35aa54f8a7c9ed268911d1333c5aadaaa9", size = 5339444, upload-time = "2026-10-27T00:34:05.914Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/9e/8c/083365310c4e79c842f25bf5a842facbd9b0c0ec336f96dffa5074fe723d/ruff-0.17.3-py3-none-linux_armv6l.whl", hash = "sha256:ab86b84cd9d05e56d329742c0cabdcbe2d1d56c98f4a04aab9b5b66196febfb4", size = 10216522, upload-time = "2026-10-27T00:33:29.822Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/26/4b2edf31cfebe9605d8f6ed8f1d6f376d3a53d4c9a123e62661c64c440f0/ruff-0.17.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e407b4a6852853a9a2cdce96963e94ad9775578bb44e7561a0f2829f3cc04b11", size = 10217786, upload-time = "2026-10-27T00:33:33.949Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/7e/537aba4b7f54397a374d2f6a6fc93e9c8015e18553f31a4a7b7dbced48b5/ruff-0.17.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b75cc113b3aca388933d8296b667b1ac401a80317ea3074c9b0a66541199da29", size = 9440362, upload-time = "2026-10-27T00:33:35.784Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/66/283e39734f66c8a5ebaa93c22eb7b7515779a0b1d5a5c0ad20e05c0edb41/ruff-0.17.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab5fa7ed5ce18554ea69d850ad162cbaa0c85fc47c08d83a569f806681c9a6ad", size = 10094281, upload-time = "2026-10-27T00:33:38.216Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/21/4c/1ffc768497bd025a32c72152771e40c0b99bddc5cc6e4f50c7949a395346/ruff-0.17.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c673c170e27834d1262e3a9c1e97bdc9b9c3b180c63d89173ce69747232474c1", size = 10022543, upload-time = "2026-10-27T00:33:40.181Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/c3/f90db547301080fcb82c92abf914c8bd57b89911d9b65a6c4cc6b52d0635/ruff-0.17.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a754c0341bc9ca151b7b335988b3263921c08859f84ca219b70cee825571b6f", size = 10683921, upload-time = "2026-10-27T00:33:42.182Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/98/92d4a8a26c6c96cf1a5b34dd59036d8a71e52d650aab065c58867e964e63/ruff-0.17.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4590b9d86c0b1543ebb09094254e191cd43fe8edaf330baa035aab03da251532", size = 11373408, upload-time = "2026-10-27T00:33:44.19Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/02/1f24d2e3064c9753926deeb901afa57777b37ee46799b09ddd7aee6e5145/ruff-0.17.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bbde18beccd98c29a227c63c99022e3443b99258e08326df6425dfe0443705ef", size = 10977469, upload-time = "2026-10-27T00:33:46.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/20/fecedea2209f574ab92033b344e01a7f0c2dc76c6d6d19a14c9f8141173f/ruff-0.17.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fa4b0f931cdbcb8a52044f370a3eb429fb42eb88807b0e800fcaa98dd42b24e", size = 10577491, upload-time = "2026-10-27T00:33:48.233Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/33/36/b93fdf0bc6f84f0cd487aadfb0354deb40013669ea35ac3d26855de1e959/ruff-0.17.3-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:39405f341deec934b4289634324ad695f72df2970f9121582872eaf5b722f0f5", size = 10608748, upload-time = "2026-10-27T00:33:50.284Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/b7/7d3f5f14145daead1efb0b9a8289ed1daa100f419d60774375951723ce00/ruff-0.17.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:68074094f55ca3d29ab19491f640282f7a84061c4c7977aa5094b968ca457e9a", size = 10075057, upload-time = "2026-10-27T00:33:52.074Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/ed/93ff7a5909ee56e2bd4b982deae9e0efb2724417874a90c9e41ad66c6dd7/ruff-0.17.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:27bb571ac78fef178fe5118d2827df95c2aae74a48fff2b15f6acd03af5ff5bb", size = 10022431, upload-time = "2026-10-27T00:33:54.061Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/07/a83b9eeec8c1c3c0e4eda15f06c3a91001bfd2687ea2f07b750719bf9712/ruff-0.17.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:029c37cbd3de48ca37aa12117bead2d065f15da17d66bf84e0d4274013705db2", size = 10394903, upload-time = "2026-10-27T00:33:56.158Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/b2/05c39857c2526fcbebe46ad93a8dc97424656dfef14d3ef933abe1ffd331/ruff-0.17.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:692fdb46d0fd9c71e380947dc5fc72f2c3f881073bc1f739e4579376231affbe", size = 10799780, upload-time = "2026-10-27T00:33:58.204Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/d9/47171a16739eb7a353936b31c20cf54340531e68c9af7d72fd7a784e235d/ruff-0.17.3-py3-none-win32.whl", hash = "sha256:46539cb031b01fd29ae0a02142483c46640b233ee12bb1c1b690bffa1555d5ca", size = 9908481, upload-time = "2026-10-27T00:34:00.087Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/a0/f08c1631bfd81faa6a90eaf70c37c786c11bed2046302b56bb506c25e1a0/ruff-0.17.3-py3-none-win_amd64.whl", hash = "sha256:56b8ffb3f3b3cbccb8b76b71b38261b7ed982ef5d20f5b447b1b61a7f4949b24", size = 10341333, upload-time = "2026-10-27T00:34:02.099Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/d5/4ad4ed31413c301430918e70d3d38ae6f097af0766cb9ab8c9d502b2a4d6/ruff-0.17.3-py3-none-win_arm64.whl", hash = "sha256:81fce74bcd6be0e9da7c67c7553fd0f1f12964a2052cd728ef917b937a5ca1d9", size = 9854332, upload-time = "2026-10-27T00:34:03.847Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "secretstorage"
|
||||
version = "3.5.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "jeepney" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tomli-w"
|
||||
version = "1.2.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/19/75/241269d1da26b624c0d5e110e8149093c759b7a286138f4efd61a60e75fe/tomli_w-1.2.0.tar.gz", hash = "sha256:2dd14fac5a47c27be9cd4c976af5a12d87fb1f0b4512f81d69cce3b35ae25021", size = 7184, upload-time = "2025-01-15T12:07:24.262Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c7/18/c86eb8e0202e32dd3df50d43d7ff9854f8e0603945ff398974c1d91ac1ef/tomli_w-1.2.0-py3-none-any.whl", hash = "sha256:188306098d013b691fcadc011abd66727d3c414c571bb01b1a174ba8c983cf90", size = 6675, upload-time = "2025-01-15T12:07:22.074Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "urllib3"
|
||||
version = "2.8.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zipp"
|
||||
version = "4.1.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/18/05/ba1458dee0ac485b2a01071c1b88f5199fe878a485df482e10e1ef2205cc/zipp-4.1.2.tar.gz", hash = "sha256:cf474b90b07ea932637e17c6b9479de2b2882900b0d311bdaf4f5c000a15a97f", size = 27864, upload-time = "2026-10-21T18:57:04.743Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/44/7bd2007260da11cccca29ba2d4c345f1287aa663db38ee7cefeabf6386a5/zipp-4.1.2-py3-none-any.whl", hash = "sha256:b30cb6cd253122169c47de245ca24a86bac2a5d3802ba15bf7ba6414eb9e144d", size = 10581, upload-time = "2026-10-21T18:57:03.79Z" },
|
||||
]
|
||||
Reference in new issue
Block a user