diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..54daeca --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +ko_fi: cvamp + diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..ee83069 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,30 @@ +--- +name: Start a Bug Report +about: Only for technical bugs and problems. +title: '' +labels: 'bug' +assignees: kevinbytesthedust +--- + + + +**Please answer the following questions:** +- CVAmp version? [e.g. 0.4.0] +- OS with version? [e.g. Windows 10, Ubuntu 20.04] +- Streaming platform? [e.g. twitch.tv, kick.com, youtube.com] +- Proxies from webshare.io? [yes, no] + +**Describe the bug** +A clear and concise description of what the bug is. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Logs** +If applicable, post the part of the cvamp.log, that refers to the problem. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..257a39a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,17 @@ +blank_issues_enabled: true + +contact_links: + - name: Start a Feature Request + url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=general + about: | + Ask for features you would like to see. + + - name: Ask a Question + url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=q-a + about: | + Receive help from the users and supporters. + + - name: Start a General Discussion + url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=general + about: | + Discuss and exchange with other users and supporters. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0f33764 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,66 @@ +name: Build and Test + +on: [pull_request] + +env: + PLAYWRIGHT_BROWSERS_PATH: 0 + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04] + python-version: [3.11] + + runs-on: ${{ matrix.os }} + + name: Build ${{ matrix.os }} executable + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install poetry + run: pip install poetry + - name: Get packages via poetry + run: poetry install + + - name: Get CVAmp version number + uses: SebRollen/toml-action@v1.0.0 + id: read_toml + with: + file: 'pyproject.toml' + field: 'tool.poetry.version' + + - name: Create date and file name env variable + shell: bash + run: | + export today=$(date +'%Y%m%d') + if [ "$RUNNER_OS" == "Windows" ]; then + echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}" >> $GITHUB_ENV + else + echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}_experimental" >> $GITHUB_ENV + fi + + - name: Build executable + shell: bash + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico;." --add-binary "pyproject.toml;." --icon cvamp_logo.ico --name ${{env.output_filename}} + else + poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico:." --hidden-import=tkinter --add-binary "pyproject.toml:." --icon cvamp_logo.ico --name ${{env.output_filename}}.bin + fi + mv ./proxy/ ./dist/ + + - name: Zip executable + uses: vimtor/action-zip@v1 + with: + files: dist/ + dest: ${{env.output_filename}}.zip + + - name: Upload zipped artifact ${{ matrix.os }} + uses: actions/upload-artifact@v1 + with: + name: ${{env.output_filename}} + path: ${{env.output_filename}}.zip diff --git a/.github/workflows/build_release_draft.yml b/.github/workflows/build_release_draft.yml new file mode 100644 index 0000000..5625612 --- /dev/null +++ b/.github/workflows/build_release_draft.yml @@ -0,0 +1,90 @@ +name: Build and Release + +on: + push: + tags: + - "v*" + +env: + PLAYWRIGHT_BROWSERS_PATH: 0 + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [windows-2022, ubuntu-20.04, macos-12, macos-14] #14 is M1 + python-version: [3.11] + + runs-on: ${{ matrix.os }} + + name: Build ${{ matrix.os }} executable + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install poetry + run: pip install poetry + - name: Get packages via poetry + run: poetry install + + - name: Get CVAmp version number + uses: SebRollen/toml-action@v1.0.0 + id: read_toml + with: + file: 'pyproject.toml' + field: 'tool.poetry.version' + + - name: Create date and file name env variable + shell: bash + run: | + export today=$(date +'%Y%m%d') + if [ "$RUNNER_OS" == "Windows" ]; then + echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}" >> $GITHUB_ENV + else + echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}_experimental" >> $GITHUB_ENV + fi + + - name: Build executable + shell: bash + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico;." --add-binary "pyproject.toml;." --icon cvamp_logo.ico --name ${{env.output_filename}} + else + poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico:." --hidden-import=tkinter --add-binary "pyproject.toml:." --icon cvamp_logo.ico --name ${{env.output_filename}}.bin + fi + mv ./proxy/ ./dist/ + + - name: Zip executable + uses: vimtor/action-zip@v1 + with: + files: dist/ + dest: ${{env.output_filename}}.zip + + - name: Upload zipped artifact ${{ matrix.os }} + uses: actions/upload-artifact@v1 + with: + name: ${{env.output_filename}} + path: ${{env.output_filename}}.zip + + draft_release: + needs: build + runs-on: ubuntu-latest + + name: Draft one big release + steps: + - uses: actions/checkout@v3 + - name: Download all artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + + - name: Create draft release with artifacts + uses: softprops/action-gh-release@v1 + with: + name: CVAmp GUI ${{github.ref_name}} + body_path: docs/release_template_text.md + prerelease: false + draft: true + files: artifacts/**/*.zip # glob pattern which will match all zip files in any subdirectory of artifacts. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e196995 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.idea +venv +__pycache__ +development +dist +build +playwright_test.py +main_gui.spec +main.spec +tests +cvamp.log diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are 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. + + 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. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + 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 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 work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero 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 Affero 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 Affero 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 Affero 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. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + 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 AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b4c62f7 --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +# Crude Viewer Amplifier (CVAmp) +[![](https://img.shields.io/github/downloads/kevinbytesthedust/vcamp/total)](https://github.com/KevinBytesTheDust/cvamp/releases/latest) +[![](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/pytest.yml/badge.svg)](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/pytest.yml) +[![format & lint](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/format_lint.yml/badge.svg)](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/format_lint.yml) +[![](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/build.yml/badge.svg)](https://github.com/KevinBytesTheDust/cvamp/actions/workflows/build.yml) + +![grafik](https://github.com/user-attachments/assets/66110d35-1683-4f95-a48f-a737c5dcedd0) + +>Disclaimer: For educational purpose only. Any discussion of illegal use will be deleted immediately! +>Full disclaimer below. +### Getting Started +1. Download the one-file executable for Windows, Linux and MacOS from the [latest CVAmp release](https://github.com/KevinBytesTheDust/cvamp/releases/latest). +2. Provide your own proxies or get 10 free for testing [here](https://blueloperlabs.ch/proxy/wf). See our [Proxies Guide](https://github.com/KevinBytesTheDust/cvamp/wiki/Webshare.io-Proxies-Guide) for setup. + +Read the comprehensive [wiki](https://github.com/KevinBytesTheDust/cvamp/wiki) for a [detailed tutorial](https://github.com/KevinBytesTheDust/cvamp/wiki/Detailed-Tutorial), [usage tips](https://github.com/KevinBytesTheDust/cvamp/wiki/Advanced-features-and-controls) and [troubleshooting steps](https://github.com/KevinBytesTheDust/cvamp/wiki/Troubleshooting). +Ask questions in the [discussions](https://github.com/KevinBytesTheDust/cvamp/discussions) or [report issues](https://github.com/KevinBytesTheDust/cvamp/issues). + +Get exclusive Feature Previews as a [:gem: Supporter & Feature Tester](https://blueloperlabs.ch/supporter/wf). + +### Mandatory Requirements +- You need to provide your own private HTTP proxies to the [proxy_list.txt](proxy/proxy_list.txt) + Get 10 free proxies for testing [here](https://blueloperlabs.ch/proxy/wf) or follow the [Webshare.io Proxies Guide](https://github.com/KevinBytesTheDust/cvamp/wiki/Webshare.io-Proxies-Guide). +- Chrome needs to be already installed on your system. + +### Platform Support Overview + +| Platform | Twitch | Youtube | Chzzk | Kick | +|-----------------------|:--------------------------------------------------------------------:|:------------------:|:------------------:|:--------------------------------------------------------------------:| +| General Functionality | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | +| Lowest Quality Select | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | +| Status Boxes Updates | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | +| Login/Authentication | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | :x: | :x: | :x: | +| Automatic Follow | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | :x: | :x: | :x: | +| Automatic Chat | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | :x: | :x: | :x: | +| Low CPU Usage Mode | ⏳[:gem:](https://github.com/KevinBytesTheDust/cvamp/discussions/276) | :x: | :x: | :x: | + +:heavy_check_mark: Supported, :warning: Problems, :x: Unsupported, ⏳ In Development, [:gem: Preview Available](https://github.com/KevinBytesTheDust/cvamp/discussions/276) + +### In Action + +![](docs/gui.png) + +#### Controls and Color codes of the square boxes + +⬛ - Instance is spawned. 🟨 - Instance is buffering. 🟩 - Instance is actively watching. + +🖱️ Left click: Refresh page. +🖱️ Right click: Destroy instance. +🖱️ Left click + CTRL: Take screenshot. + +### Misc +- CPU load and bandwidth can get heavy. Channels with 160p work best. +- Tested on Windows 10 with headless ~100, headful ~30. Linux and macOS is experimental. + +The Crude Viewer Amplifier (CVAmp) is a small GUI tool that spawns muted Google Chrome instances via [Playwright](https://github.com/microsoft/playwright-python), each with a different user-agent and HTTP proxy connection. Each instance navigates to the streaming channel and selects the lowest possible resolution. + +Read the comprehensive [wiki](https://github.com/KevinBytesTheDust/cvamp/wiki) for a [detailed tutorial](https://github.com/KevinBytesTheDust/cvamp/wiki/Detailed-Tutorial), [usage tips](https://github.com/KevinBytesTheDust/cvamp/wiki/Advanced-features-and-controls) and [troubleshooting steps](https://github.com/KevinBytesTheDust/cvamp/wiki/Troubleshooting). + +Support my creativity and [sponsor me a coffee :coffee:](https://blueloperlabs.ch/supporter/wf) + +### Full disclaimer +This project was established to contribute to open-source collaboration and showcase the educational value of reverse engineering. Although its primary purpose is for learning and understanding, users must be aware that altering viewer metrics on platforms such as Twitch violates their Terms of Service and could lead to legal repercussions. We urge users to engage with this tool responsibly. Misuse is solely at your discretion and risk. Discussions promoting illegal activities will be promptly removed. + + + + diff --git a/cvamp/__init__.py b/cvamp/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/cvamp/gui.py b/cvamp/gui.py new file mode 100644 index 0000000..58dcddb --- /dev/null +++ b/cvamp/gui.py @@ -0,0 +1,384 @@ +import datetime +import logging +import os +import sys +import threading +import tkinter as tk +import webbrowser +from tkinter import ttk +from tkinter.scrolledtext import ScrolledText + + +import psutil +import toml + +from . import utils +from .manager import InstanceManager +from .utils import InstanceCommands + +logger = logging.getLogger(__name__) + +system_default_color = None + + +class GUI: + def __init__(self, manager: InstanceManager): + self.manager = manager + self.instances_boxes = [] + + self.root = tk.Tk() + self.menu = tk.Menu(self.root) + + self.instances_overview = dict() + + style = ttk.Style() + style.configure("TNotebook", padding=[0, 0, -2, -2], tabmargins=[-1, 0, 0, 0]) + + # Initialize tabs + self.notebook = ttk.Notebook(self.root, height=120, width=600) + + self.tab_main = TabMain(self.notebook, self.manager) + self.notebook.add(self.tab_main, text="Main Controls") + + self.tab_chat = TabChat(self.notebook, self.manager) + self.notebook.add(self.tab_chat, text="Chatting") + + self.tab_about = TabAbout(self.notebook) + self.notebook.add(self.tab_about, text="About") + + self.notebook.place(x=0, y=0) + self.notebook.select(self.tab_main) + + # path to use, when the tool is not package with pyinstaller -onefile + non_pyinstaller_path = os.path.dirname(os.path.abspath(os.path.dirname(__file__))) + + # Pyinstaller fix to find added binaries in extracted project folder in TEMP + path_to_binaries = getattr(sys, "_MEIPASS", non_pyinstaller_path) # default to last arg + path_to_icon = os.path.abspath(os.path.join(path_to_binaries, "cvamp_logo.ico")) + + if os.name == "nt": + self.root.iconbitmap(path_to_icon) + + path_to_toml = os.path.abspath(os.path.join(path_to_binaries, "pyproject.toml")) + version = toml.load(path_to_toml)["tool"]["poetry"]["version"] + self.root.title(f"Crude Viewer Amplifier | v{version} | kevin@blueloperlabs.ch") + + def run(self): + self.root.geometry("600x335+500+500") + self.root.resizable(False, False) + + # mid text box + text_area = ScrolledText(self.root, height="7", width="92", font=("regular", 8)) + text_area.place( + x=20, + y=145, + ) + + for row in range(5): + for col in range(50): + box = InstanceBox( + self.manager, + self.root, + bd=0.5, + relief="raised", + width=10, + height=10, + ) + box.place(x=24 + col * 11, y=255 + row * 12) + self.instances_boxes.append(box) + + # bottom + lbl = tk.Label( + self.root, + text=r"blueloperlabs.ch/cvamp", + fg="blue", + cursor="hand2", + ) + lbl.bind("", lambda event: webbrowser.open("https://blueloperlabs.ch/cvamp/tf")) + lbl.place(x=230, y=315) + + # redirect stdout + def redirector(str_input): + if self: + text_area.configure(state="normal") + text_area.insert(tk.END, str_input) + text_area.see(tk.END) + text_area.configure(state="disabled") + else: + sys.stdout = sys.__stdout__ + + sys.stdout.write = redirector + + self.refresher_start() + + self.root.mainloop() + + def refresher_start(self): + if not self.instances_overview == self.manager.instances_overview: + self.instances_overview = self.manager.instances_overview.copy() + + for (id, status), box in zip(self.instances_overview.items(), self.instances_boxes): + box.modify(status, id) + + for index in range(len(self.instances_overview), len(self.instances_boxes)): + self.instances_boxes[index].modify(utils.InstanceStatus.INACTIVE, None) + + self.tab_main.alive_instances.configure(text=self.manager.instances_alive_count) + self.tab_main.watching_instances.configure(text=str(self.manager.instances_watching_count)) + + self.tab_main.cpu_usage_text.configure(text=" {:.2f}% CPU".format(psutil.cpu_percent())) + self.tab_main.ram_usage_text.configure(text=" {:.2f}% RAM".format(psutil.virtual_memory().percent)) + + self.root.after(750, self.refresher_start) + + +class TabChat(tk.Frame): + def __init__(self, parent, manager, *args, **kwargs): + super().__init__(parent, *args, **kwargs) + self.chat_timer_start_value = tk.StringVar() + self.chat_timer_stop_value = tk.StringVar() + self.parent = parent + self.manager = manager + self.dropdown_selection = tk.StringVar() + self.dropdown_selection.set("no chatters") + self.auto_chat_enabled = tk.BooleanVar(value=False) + + manual = ttk.Labelframe(self, text='Manual Chat', name='manual') + manual.place(y=7, x=0, relx=0, rely=0, relwidth=1, height=80) + + chat_message_box = tk.Entry(manual, width=60, name="chat_message_box") + chat_message_box.place(x=15, y=10) + chat_message_box.insert(0, "Available in the Feature Preview as a Supporter & Feature Tester.") + chat_message_box.configure(state="disabled") + + lbl_buy = tk.Label(self, text="Become A Supporter Now!", fg="blue", cursor="hand2") + lbl_buy.bind("", lambda event: webbrowser.open("https://blueloperlabs.ch/supporter/tf")) + lbl_buy.place(x=410, y=33) + + auto_frame = ttk.Labelframe(self, text='Auto Chat') + auto_frame.place(y=70, x=0, relx=0, rely=0, relwidth=1, height=80) + + chat_switch = ttk.Checkbutton( + auto_frame, + state=tk.DISABLED, + variable=self.auto_chat_enabled, + text="Autochat enabled", + ) + chat_switch.place(x=15, y=6) + + self.chat_timer_start = tk.Spinbox( + auto_frame, + state='readonly', + from_=10, + to=600, + wrap=True, + width=4, + increment=5, + textvariable=self.chat_timer_start_value, + ) + self.chat_timer_start.place(x=160, y=6) + + self.chat_timer_stop = tk.Spinbox( + auto_frame, + state='readonly', + from_=10, + to=600, + wrap=True, + width=4, + increment=5, + textvariable=self.chat_timer_stop_value, + ) + self.chat_timer_stop.place(x=200, y=6) + + chat_interval_text = tk.Label(auto_frame, text="Chat interval range (s)", borderwidth=2) + chat_interval_text.place(x=241, y=5) + + send_auto_chat_button = tk.Button( + auto_frame, width=14, height=1, anchor="w", text="Send one message", state=tk.DISABLED + ) + send_auto_chat_button.place(x=430, y=1) + + +class TabMain(tk.Frame): + def __init__(self, parent, manager, *args, **kwargs): + super().__init__(parent, *args, **kwargs) + self.manager = manager + self.headless = tk.BooleanVar(value=manager.get_headless()) + self.auto_restart = tk.BooleanVar(value=manager.get_auto_restart()) + + global system_default_color + system_default_color = self.cget("bg") + + separator_left = ttk.Separator(self, orient="vertical") + separator_left.place(x=170, relx=0, rely=0, relwidth=0.2, relheight=1) + separator_right = ttk.Separator(self, orient="vertical") + separator_right.place(x=-170, relx=1, rely=0, relwidth=0.2, relheight=1) + + # left + proxy_available_text = tk.Label(self, text="Proxies Available", borderwidth=2) + proxy_available_text.place(x=40, y=10) + proxy_available = tk.Label(self, text="0", borderwidth=2, relief="solid", width=5) + proxy_available.place(x=70, y=40) + proxy_available.configure(text="100") + + lbl_buy = tk.Label(self, text="(buy more)", fg="blue", cursor="hand2") + lbl_buy.bind( + "", + lambda event: ( + webbrowser.open("https://blueloperlabs.ch/proxy/tf") + and webbrowser.open("https://github.com/KevinBytesTheDust/cvamp/wiki/Webshare.io-Proxies-Guide", new=2) + ), + ) + lbl_buy.place(x=58, y=62) + + headless_checkbox = ttk.Checkbutton( + self, + text="headless", + variable=self.headless, + command=lambda: self.manager.set_headless(self.headless.get()), + onvalue=True, + offvalue=False, + ) + headless_checkbox.place(x=180, y=94) + + auto_restart_checkbox = ttk.Checkbutton( + self, + variable=self.auto_restart, + text="auto restart", + command=lambda: self.manager.set_auto_restart(self.auto_restart.get()), + onvalue=True, + offvalue=False, + ) + auto_restart_checkbox.place(x=255, y=94) + + # right + instances_text = tk.Label(self, text="Instances", borderwidth=2) + instances_text.place(x=455, y=10) + + alive_instances_text = tk.Label(self, text="alive", borderwidth=2) + alive_instances_text.place(x=455, y=40) + watching_instances_text = tk.Label(self, text="watching", borderwidth=2) + watching_instances_text.place(x=455, y=60) + + self.alive_instances = tk.Label(self, text=0, borderwidth=2, relief="solid", width=5) + self.alive_instances.place(x=530, y=40) + self.watching_instances = tk.Label(self, text=0, borderwidth=2, relief="solid", width=5) + self.watching_instances.place(x=530, y=60) + + self.cpu_usage_text = tk.Label(self, text="CPU", borderwidth=2) + self.cpu_usage_text.place(x=440, y=88) + self.ram_usage_text = tk.Label(self, text="RAM", borderwidth=2) + self.ram_usage_text.place(x=510, y=88) + + # mid log + channel_url = tk.Entry(self, width=40, name="channel_url_entry") + channel_url.place(x=180, y=10) + channel_url.insert(0, "https://www.twitch.tv/channel_name") + + spawn_one = tk.Button( + self, + width=15, + anchor="w", + text="Spawn 1 instance", + command=lambda: self.spawn_one_func(), + ) + spawn_one.place(x=180, y=35) + spawn_three = tk.Button( + self, + width=15, + anchor="w", + text="Spawn 3 instances", + command=lambda: self.spawn_three_func(), + ) + spawn_three.place(x=180, y=65) + destroy_one = tk.Button( + self, + width=15, + anchor="w", + text="Destroy 1 instance", + command=lambda: self.delete_one_func(), + ) + destroy_one.place(x=305, y=35) + destroy_all = tk.Button( + self, + width=15, + anchor="w", + text="Destroy all instances", + command=lambda: self.delete_all_func(), + ) + destroy_all.place(x=305, y=65) + + def __del__(self): + print("Gui shutting down", datetime.datetime.now()) + + def spawn_one_func(self): + print("Spawning one instance. Please wait for alive & watching instances increase.") + target_url = self.nametowidget("channel_url_entry").get() + threading.Thread(target=self.manager.spawn_instance, args=(target_url,)).start() + + def spawn_three_func(self): + print("Spawning three instances. Please wait for alive & watching instances increase.") + target_url = self.nametowidget("channel_url_entry").get() + threading.Thread(target=self.manager.spawn_instances, args=(3, target_url)).start() + + def delete_one_func(self): + print("Destroying one instance. Please wait for alive & watching instances decrease.") + threading.Thread(target=self.manager.delete_latest).start() + + def delete_all_func(self): + print("Destroying all instances. Please wait for alive & watching instances decrease.") + threading.Thread(target=self.manager.delete_all_instances).start() + + +class TabAbout(tk.Frame): + def __init__(self, parent, *args, **kwargs): + super().__init__(parent, *args, **kwargs) + info_text = tk.Label( + self, + text="Thank you for using this tool." + "\n\n\n\n" + "We only use ko-fi, github and blueloperlabs.ch. Other sites, users and resellers are fake - be careful!", + borderwidth=2, + ) + info_text.place(x=40, y=10) + + lbl_buy = tk.Label( + self, text="Get exclusive Feature Previews as a Supporter & Feature Tester.", fg="blue", cursor="hand2" + ) + lbl_buy.bind("", lambda event: webbrowser.open("https://blueloperlabs.ch/supporter/tf")) + lbl_buy.place(x=135, y=40) + + +class InstanceBox(tk.Frame): + def __init__(self, manager, parent, *args, **kwargs): + tk.Frame.__init__(self, parent, *args, **kwargs) + + self.instance_id = None + self.manager = manager + + self.bind( + "", lambda event: self.manager.queue_command(self.instance_id, InstanceCommands.REFRESH) + ) # left click + self.bind( + "", lambda event: self.manager.queue_command(self.instance_id, InstanceCommands.EXIT) + ) # right click + self.bind( + "", lambda event: self.manager.queue_command(self.instance_id, InstanceCommands.SCREENSHOT) + ) # control left click + + def modify(self, status, instance_id): + self.instance_id = instance_id + + # todo: enum + color_codes = { + "inactive": system_default_color, + "starting": "grey", + "initialized": "yellow", + "restarting": "yellow", + "buffering": "yellow", + "watching": "#44d209", + "shutdown": system_default_color, + } + + color = color_codes[status.value] + self.configure(background=color) diff --git a/cvamp/instance.py b/cvamp/instance.py new file mode 100644 index 0000000..cedeffd --- /dev/null +++ b/cvamp/instance.py @@ -0,0 +1,196 @@ +import datetime +import logging +import threading + +from playwright.sync_api import sync_playwright +from abc import ABC + + +from . import utils + +logger = logging.getLogger(__name__) + + +class Instance(ABC): + site_name = "BASE" + site_url = None + instance_lock = threading.Lock() + supported_sites = dict() + + def __init__( + self, + proxy_dict, + target_url, + status_reporter, + location_info=None, + headless=False, + auto_restart=False, + instance_id=-1, + ): + self.playwright = None + self.context = None + self.browser = None + self.status_info = {} + self.status_reporter = status_reporter + self.thread = threading.current_thread() + + self.id = instance_id + self._status = "alive" + self.proxy_dict = proxy_dict + self.target_url = target_url + self.headless = headless + self.auto_restart = auto_restart + + self.last_restart_dt = datetime.datetime.now() + + self.location_info = location_info + if not self.location_info: + self.location_info = { + "index": -1, + "x": 0, + "y": 0, + "width": 500, + "height": 300, + "free": True, + } + + self.command = None + self.page = None + + def __init_subclass__(cls, **kwargs): + if cls.site_name != "UNKNOWN": + cls.supported_sites[cls.site_url] = cls + + @property + def status(self): + return self._status + + @status.setter + def status(self, new_status): + if self._status == new_status: + return + + self._status = new_status + self.status_reporter(self.id, new_status) + + def clean_up_playwright(self): + if any([self.page, self.context, self.browser]): + self.page.close() + self.context.close() + self.browser.close() + self.playwright.stop() + + def start(self): + try: + self.spawn_page() + self.todo_after_spawn() + self.loop_and_check() + except Exception as e: + message = e.args[0][:25] if e.args else "" + logger.exception(f"{e} died at page {self.page.url if self.page else None}") + print(f"{self.site_name} Instance {self.id} died: {type(e).__name__}:{message}... Please see cvamp.log.") + else: + logger.info(f"ENDED: instance {self.id}") + with self.instance_lock: + print(f"Instance {self.id} shutting down") + finally: + self.status = utils.InstanceStatus.SHUTDOWN + self.clean_up_playwright() + self.location_info["free"] = True + + def loop_and_check(self): + page_timeout_s = 10 + while True: + self.page.wait_for_timeout(page_timeout_s * 1000) + self.todo_every_loop() + self.update_status() + + if self.command == utils.InstanceCommands.RESTART: + self.clean_up_playwright() + self.spawn_page(restart=True) + self.todo_after_spawn() + if self.command == utils.InstanceCommands.SCREENSHOT: + print("Saved screenshot of instance id", self.id) + self.save_screenshot() + if self.command == utils.InstanceCommands.REFRESH: + print("Manual refresh of instance id", self.id) + self.reload_page() + if self.command == utils.InstanceCommands.EXIT: + return + self.command = utils.InstanceCommands.NONE + + def save_screenshot(self): + filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S") + f"_instance{self.id}.png" + self.page.screenshot(path=filename) + + def spawn_page(self, restart=False): + proxy_dict = self.proxy_dict + + self.status = utils.InstanceStatus.RESTARTING if restart else utils.InstanceStatus.STARTING + + if not proxy_dict: + proxy_dict = None + + self.playwright = sync_playwright().start() + + self.browser = self.playwright.chromium.launch( + proxy=proxy_dict, + headless=self.headless, + channel="chrome", + args=[ + "--window-position={},{}".format(self.location_info["x"], self.location_info["y"]), + "--mute-audio", + ], + ) + self.context = self.browser.new_context( + viewport={"width": 800, "height": 600}, + proxy=proxy_dict, + ) + + self.page = self.context.new_page() + self.page.add_init_script("""navigator.webdriver = false;""") + + def goto_with_retry(self, url, max_tries=3, timeout=20000): + """ + Tries to navigate to a page max_tries times. Raises the last exception if all attempts fail. + """ + for attempt in range(1, max_tries + 1): + try: + self.page.goto(url, timeout=timeout) + return + except Exception: + logger.warning(f"Instance {self.id} failed connection attempt #{attempt}.") + if attempt == max_tries: + raise + + def todo_after_load(self): + self.goto_with_retry(self.target_url) + self.page.wait_for_timeout(1000) + + def reload_page(self): + self.page.reload(timeout=30000) + self.todo_after_load() + + def todo_after_spawn(self): + """ + Basic behaviour after a page is spawned. Override for more functionality + e.g. load cookies, additional checks before instance is truly called "initialized" + :return: + """ + self.status = utils.InstanceStatus.INITIALIZED + self.goto_with_retry(self.target_url) + + def todo_every_loop(self): + """ + Add behaviour to be executed every loop + e.g. to fake page interaction to not count as inactive to the website. + """ + pass + + def update_status(self) -> None: + """ + Mechanism is called every loop. Figure out if it is watching and working and updated status. + if X: + self.status = utils.InstanceStatus.WATCHING + """ + pass diff --git a/cvamp/logger_config.py b/cvamp/logger_config.py new file mode 100644 index 0000000..60d79db --- /dev/null +++ b/cvamp/logger_config.py @@ -0,0 +1,31 @@ +import logging +import os + +import psutil + + +def setup(): + import sys + + print(sys.argv[0]) + + handlers = [logging.FileHandler("cvamp.log", mode="w")] + + if os.getenv("DEBUG"): + print("DEBUG ON") + handlers.append(logging.StreamHandler()) + + logging.basicConfig( + level=logging.INFO, + format="%(asctime)s;%(levelname)s;%(HWUsage)s;%(threadName)s;%(module)s;%(funcName)s;%(message)s", + handlers=handlers, + ) + + old_factory = logging.getLogRecordFactory() + + def record_factory(*args, **kwargs): + record = old_factory(*args, **kwargs) + record.HWUsage = f"{psutil.cpu_percent(interval=None):.0f}_{psutil.virtual_memory().percent:.0f}" + return record + + logging.setLogRecordFactory(record_factory) diff --git a/cvamp/manager.py b/cvamp/manager.py new file mode 100644 index 0000000..d22fee6 --- /dev/null +++ b/cvamp/manager.py @@ -0,0 +1,204 @@ +import datetime +import logging +import os +import platform +import random +import threading +import time + +from . import logger_config, utils, sites +from .instance import Instance + +logger_config.setup() +from .proxy import ProxyGetter +from .screen import Screen +from .service import RestartChecker +from .utils import InstanceCommands + +logger = logging.getLogger(__name__) + + +class InstanceManager: + def __init__( + self, + spawn_thread_count, + delete_thread_count, + headless, + auto_restart, + proxy_file_name, + spawn_interval_seconds=2, + target_url=None, + ): + logger.info(f"Manager start on {platform.platform()}") + + self._spawn_thread_count = spawn_thread_count + self._delete_thread_count = delete_thread_count + self._headless = headless + self._auto_restart = auto_restart + self.proxies = ProxyGetter(os.path.join(os.getcwd(), "proxy", proxy_file_name)) + self.spawn_interval_seconds = spawn_interval_seconds + self.target_url = target_url + + self.manager_lock = threading.Lock() + self.screen = Screen(window_width=500, window_height=300) + self.browser_instances = {} + + self.instances_overview = dict() + self.instances_alive_count = 0 + self.instances_watching_count = 0 + + self.restart_checker = RestartChecker(manager=self, restart_interval_s=1200) + + def get_headless(self) -> bool: + return self._headless + + def set_headless(self, new_value: bool): + self._headless = new_value + + def get_auto_restart(self) -> bool: + return self._auto_restart + + def set_auto_restart(self, new_value: bool): + logger.info(f"Setting auto-restart to " + str(new_value)) + self._auto_restart = new_value + self.reconfigure_auto_restart_status() + + def __del__(self): + print("Deleting manager: cleaning up instances", datetime.datetime.now()) + self.delete_all_instances() + print("Manager shutting down", datetime.datetime.now()) + + def update_instances_alive_count(self): + alive_instances = filter( + lambda instance: instance.status != utils.InstanceStatus.SHUTDOWN, self.browser_instances.values() + ) + self.instances_alive_count = len(list(alive_instances)) + + def reconfigure_auto_restart_status(self): + if self.instances_alive_count and self._auto_restart: + self.restart_checker.start() + else: + self.restart_checker.stop() + + def update_instances_watching_count(self): + self.instances_watching_count = len( + [1 for instance in self.browser_instances.values() if instance.status == utils.InstanceStatus.WATCHING] + ) + + def update_instances_overview(self): + new_overview = {} + for instance_id, instance in self.browser_instances.items(): + if instance.status != utils.InstanceStatus.SHUTDOWN: + new_overview[instance_id] = instance.status + + self.instances_overview = new_overview + + def spawn_instances(self, n, target_url=None): + for _ in range(n): + self.spawn_instance(target_url) + time.sleep(self.spawn_interval_seconds) + + def get_site_class(self, target_url): + for site_name, site_class in Instance.supported_sites.items(): + if site_name in target_url: + return site_class + + return sites.Unknown + + def spawn_instance(self, target_url=None): + if not self.browser_instances: + browser_instance_id = 1 + else: + browser_instance_id = max(self.browser_instances.keys()) + 1 + + t = threading.Thread( + target=self.spawn_instance_thread, + args=(target_url, self.instance_status_report_callback, browser_instance_id), + daemon=True, + ) + t.start() + + def instance_status_report_callback(self, instance_id, instance_status): + # self.instances_overview[instance_id] = instance_status + # for now simply triggers the manager to refresh status for all instances + # maybe track status in separate list, where instances report to + # and shutdown instances issue remove on dict with instance id + # his would allow the removal of "instance.status != "shutdown"" in update_instances_alive_count + + logger.info(f"{instance_status.value.upper()} instance {instance_id}") + + self.update_instances_overview() + self.update_instances_alive_count() + self.update_instances_watching_count() + self.reconfigure_auto_restart_status() + + def spawn_instance_thread(self, target_url, status_reporter, browser_instance_id): + if not any([target_url, self.target_url]): + raise Exception("No target target url provided") + + if not target_url: + target_url = self.target_url + + with self.manager_lock: + proxy = self.proxies.get_proxy_as_dict() + + if self._headless: + screen_location = self.screen.get_default_location() + else: + screen_location = self.screen.get_free_screen_location() + + if not screen_location: + print("no screen space left") + return + + site_class = self.get_site_class(target_url) + + server_ip = proxy.get("server", "no proxy") + logger.info( + f"Ordered {site_class.site_name} instance {browser_instance_id}, {threading.currentThread().name}, proxy {server_ip}" + ) + + browser_instance = site_class( + proxy, + target_url, + status_reporter, + location_info=screen_location, + headless=self._headless, + auto_restart=self._auto_restart, + instance_id=browser_instance_id, + ) + + self.browser_instances[browser_instance_id] = browser_instance + + browser_instance.start() + + if browser_instance_id in self.browser_instances: + del browser_instance + self.browser_instances.pop(browser_instance_id) + + def queue_command(self, instance_id: int, command: InstanceCommands) -> bool: + if instance_id not in self.browser_instances: + return False + + self.browser_instances[instance_id].command = command + + def delete_latest(self): + if not self.browser_instances: + print("No instances found") + return + + latest_key = max(self.browser_instances.keys()) + self.delete_specific(latest_key) + + def delete_specific(self, instance_id): + if instance_id not in self.browser_instances: + print(f"Instance ID {instance_id} not found. Unable to shutdown.") + return + + instance = self.browser_instances[instance_id] + print(f"Issuing shutdown of instance #{instance_id}") + instance.command = InstanceCommands.EXIT + + def delete_all_instances(self): + for instance_id in self.browser_instances: + self.delete_specific(instance_id) diff --git a/cvamp/proxy.py b/cvamp/proxy.py new file mode 100644 index 0000000..3bb8f8b --- /dev/null +++ b/cvamp/proxy.py @@ -0,0 +1,54 @@ +import logging +import os +import random + +logger = logging.getLogger(__name__) + + +class ProxyGetter: + def __init__(self, proxy_file_name="proxy_list.txt"): + self.proxy_list = [] + self.pathed_file_name = os.path.join(os.getcwd(), "proxy", proxy_file_name) + self.build_proxy_list() + + def build_proxy_list(self): + try: + if self.pathed_file_name.endswith(".json"): + raise NotImplementedError("JSON file not implemented yet") + elif self.pathed_file_name.endswith(".txt"): + self.build_proxy_list_txt() + else: + print("File type not supported") + except Exception as e: + logger.exception(e) + raise FileNotFoundError(f"Unable to find {self.pathed_file_name}") + + def build_proxy_list_txt(self): + with open(self.pathed_file_name, "r") as fp: + proxy_list = fp.read().splitlines() + + for proxy in proxy_list: + proxy_parts = proxy.split(":") + if len(proxy_parts) == 4: + username = proxy_parts[2] + password = proxy_parts[3] + ip_port = ":".join(proxy_parts[0:2]) + + if username != "username": + self.proxy_list.append( + { + "server": "http://" + ip_port, + "username": username, + "password": password, + } + ) + + random.shuffle(self.proxy_list) + + def get_proxy_as_dict(self) -> dict: + if not self.proxy_list: + return {} + + proxy = self.proxy_list.pop(0) + self.proxy_list.append(proxy) + return proxy diff --git a/cvamp/screen.py b/cvamp/screen.py new file mode 100644 index 0000000..cebe289 --- /dev/null +++ b/cvamp/screen.py @@ -0,0 +1,75 @@ +import logging + +logger = logging.getLogger(__name__) + + +def get_screen_resolution(kind): + try: + import tkinter as tk + + root = tk.Tk() + except Exception as e: + logger.exception(e) + return 500 + + return_value = None + + if kind == "width": + return_value = root.winfo_screenwidth() + if kind == "height": + return_value = root.winfo_screenheight() + + root.destroy() + return return_value + + +class Screen: + def __init__(self, window_width, window_height): + self.window_width_offset = 100 + self.window_height_offset = 50 + + self.window_width = window_width + self.window_height = window_height + + self.screen_width = get_screen_resolution("width") + self.screen_height = get_screen_resolution("height") + + self.spawn_locations = self.generate_spawn_locations() + + def generate_spawn_locations(self): + spawn_locations = [] + + cols = int(self.screen_width / (self.window_width - self.window_width_offset)) + rows = int(self.screen_height / (self.window_height - self.window_height_offset)) + + index = 0 + for row in range(rows): + for col in range(cols): + spawn_locations.append( + { + "index": index, + "x": col * (self.window_width - self.window_width_offset), + "y": row * (self.window_height - self.window_height_offset), + "width": self.window_width, + "height": self.window_height, + "free": True, + } + ) + + index += 1 + + return spawn_locations + + def get_free_screen_location(self): + free_keys = [screen_info for screen_info in self.spawn_locations if screen_info["free"]] + + if not free_keys: + return None + + lowest_location_info = free_keys[0] + lowest_location_info["free"] = False + + return lowest_location_info + + def get_default_location(self): + return self.spawn_locations[0] diff --git a/cvamp/service.py b/cvamp/service.py new file mode 100644 index 0000000..39cab20 --- /dev/null +++ b/cvamp/service.py @@ -0,0 +1,61 @@ +from __future__ import annotations + +import datetime +import logging +import threading +import time +from typing import TYPE_CHECKING + +from .utils import InstanceCommands + +if TYPE_CHECKING: + from .manager import InstanceManager + from .instance import Instance + +logger = logging.getLogger(__name__) + + +class RestartChecker: + def __init__(self, manager: InstanceManager, restart_interval_s: int = 600): + self.manager = manager + self.restart_interval_s = restart_interval_s + self.worker_thread = None + self.abort = False + self.sleep_time = restart_interval_s + + def start(self): + if not self.worker_thread or not self.worker_thread.is_alive(): + logger.info("Restarter enabled.") + self.worker_thread = threading.Thread(target=self.restart_loop, daemon=True) + self.worker_thread.start() + + def stop(self): + if self.worker_thread and self.worker_thread.is_alive(): + logger.info("Restarter disabled.") + self.abort = True + + def get_oldest_instance(self) -> Instance: + return min(self.manager.browser_instances.values(), key=lambda instance: instance.last_restart_dt) + + def issue_restart(self, instance): + instance.command = InstanceCommands.RESTART + instance.last_restart_dt = datetime.datetime.now() + + def restart_loop(self): + while True: + time.sleep(self.sleep_time) + + instances_count = self.manager.instances_alive_count + self.sleep_time = self.restart_interval_s / instances_count + + if self.abort: + self.abort = False + return + + try: + instance = self.get_oldest_instance() + except ValueError as e: + logger.exception(e) + continue + logger.info(f"Restarting oldest instance {instance.id}. Restart interval: {self.sleep_time}") + self.issue_restart(instance) diff --git a/cvamp/sites.py b/cvamp/sites.py new file mode 100644 index 0000000..1e53bd4 --- /dev/null +++ b/cvamp/sites.py @@ -0,0 +1,296 @@ +import datetime +import json +import logging +import time + +from dateutil.relativedelta import relativedelta + +from cvamp import utils +from cvamp.instance import Instance + +logger = logging.getLogger(__name__) + + +class Unknown(Instance): + site_name = "UNKNOWN" + site_url = None + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + def todo_every_loop(self): + self.page.keyboard.press("Tab") + + def update_status(self): + pass + + def todo_after_spawn(self): + self.goto_with_retry(self.target_url) + self.page.wait_for_timeout(1000) + + +class Chzzk(Instance): + site_name = "CHZZK" + site_url = "chzzk.naver.com" + + local_storage = {"live-player-video-track": r"""{"label":"360p","kind":"low-latency","width":640,"height":360}"""} + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.status_info = {} + + def todo_every_loop(self): + try: + self.page.click("button.btn_skip", timeout=100) + except: + pass + + def update_status(self): + html = self.page.evaluate('document.querySelector("div#live_player_layout").innerHTML') + if "pzp-pc--live" in html: + if "pzp-pc--loading" not in html: + self.status = utils.InstanceStatus.WATCHING + return + self.status = utils.InstanceStatus.BUFFERING + + def todo_after_spawn(self): + self.goto_with_retry("https://chzzk.naver.com/category") + + self.page.wait_for_timeout(1000) + + for key, value in self.local_storage.items(): + tosend = """window.localStorage.setItem('{key}','{value}');""".format(key=key, value=value) + self.page.evaluate(tosend) + + self.goto_with_retry(self.target_url) + + self.page.wait_for_selector("#live_player_layout", timeout=30000) + self.page.wait_for_timeout(1000) + self.page.keyboard.press("f") + + self.page.set_viewport_size( + { + "width": self.location_info["width"], + "height": self.location_info["height"], + } + ) + + self.status = utils.InstanceStatus.INITIALIZED + + def todo_after_load(self): + self.page.wait_for_selector("#live_player_layout", timeout=30000) + self.page.wait_for_timeout(1000) + self.page.keyboard.press("f") + + +class Youtube(Instance): + site_name = "YOUTUBE" + site_url = "youtube.com" + cookie_css = ".eom-button-row.style-scope.ytd-consent-bump-v2-lightbox > ytd-button-renderer:nth-child(1) button" + + now_timestamp_ms = int(time.time() * 1000) + next_year_timestamp_ms = int((datetime.datetime.now() + relativedelta(years=1)).timestamp() * 1000) + local_storage = { + "yt-player-quality": r"""{{"data":"{{\\"quality\\":144,\\"previousQuality\\":144}}","expiration":{0},"creation":{1}}}""".format( + next_year_timestamp_ms, now_timestamp_ms + ), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + def todo_every_loop(self): + self.page.keyboard.press("l") + + try: + self.page.click("button.ytp-skip-ad-button", timeout=100) + except: + pass + + def update_status(self): + current_time = datetime.datetime.now() + + if not self.status_info: + self.status_info = { + "last_active_resume_time": 0, + "last_active_timestamp": current_time - datetime.timedelta(seconds=10), + "last_stream_id": None, + } + + # If the stream was active less than 10 seconds ago, it's still being watched + time_since_last_activity = current_time - self.status_info["last_active_timestamp"] + if time_since_last_activity < datetime.timedelta(seconds=15): + self.status = utils.InstanceStatus.WATCHING + return + + # Fetch the current resume time for the stream + current_resume_time = int( + self.page.evaluate( + '''() => { + const element = document.querySelector(".ytp-progress-bar"); + return element.getAttribute("aria-valuenow"); + }''' + ) + ) + + if current_resume_time: + # If the current resume time has advanced past the last active resume time, update and set status to + if current_resume_time > self.status_info["last_active_resume_time"]: + self.status_info["last_active_timestamp"] = current_time + self.status_info["last_active_resume_time"] = current_resume_time + self.status = utils.InstanceStatus.WATCHING + return + + # If none of the above conditions are met, the stream is buffering + self.status = utils.InstanceStatus.BUFFERING + + def todo_after_spawn(self): + self.goto_with_retry("https://www.youtube.com/") + + self.page.wait_for_timeout(1000) + + try: + self.page.click(self.cookie_css, timeout=10000) + except: + logger.warning("Cookie consent banner not found/clicked.") + + for key, value in self.local_storage.items(): + tosend = """window.localStorage.setItem('{key}','{value}');""".format(key=key, value=value) + self.page.evaluate(tosend) + + self.goto_with_retry(self.target_url) + + self.page.wait_for_selector(".ytd-player", timeout=30000) + self.page.wait_for_timeout(5000) + if self.page.evaluate("""document.querySelector("div#movie_player").classList.contains('paused-mode')"""): + self.page.keyboard.press("Space") + self.page.keyboard.press("f") + self.status = utils.InstanceStatus.INITIALIZED + + +class Kick(Instance): + site_name = "KICK" + site_url = "kick.com" + local_storage = { + "agreed_to_mature_content": "true", + "kick_cookie_accepted": "true", + "kick_video_size": "160p", + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + def todo_every_loop(self): + self.page.keyboard.press("Tab") + + def update_status(self): + pass + + def todo_after_spawn(self): + self.goto_with_retry("https://kick.com/terms-of-service") + self.page.wait_for_timeout(5000) + + for key, value in self.local_storage.items(): + tosend = """window.localStorage.setItem('{key}','{value}');""".format(key=key, value=value) + self.page.evaluate(tosend) + + self.goto_with_retry(self.target_url) + self.page.wait_for_timeout(1000) + if 'cloudflare' in self.page.content().lower(): + raise utils.CloudflareBlockException("Blocked by Cloudflare.") + + +class Twitch(Instance): + site_name = "TWITCH" + site_url = "twitch.tv" + cookie_css = "button[data-a-target=consent-banner-accept]" + local_storage = { + "mature": "true", + "video-muted": '{"default": "false"}', + "volume": "0.5", + "video-quality": '{"default": "160p30"}', + "lowLatencyModeEnabled": "false", + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + def todo_after_load(self): + self.page.wait_for_selector(".persistent-player", timeout=30000) + self.page.wait_for_timeout(1000) + self.page.keyboard.press("Alt+t") + + def update_status(self): + current_time = datetime.datetime.now() + if not self.status_info: + self.status_info = { + "last_active_resume_time": 0, + "last_active_timestamp": current_time - datetime.timedelta(seconds=10), + "last_stream_id": None, + } + + # If the stream was active less than 10 seconds ago, it's still being watched + time_since_last_activity = current_time - self.status_info["last_active_timestamp"] + if time_since_last_activity < datetime.timedelta(seconds=10): + self.status = utils.InstanceStatus.WATCHING + return + + # Fetch the current resume time for the stream + fetched_resume_times = self.page.evaluate("window.localStorage.getItem('livestreamResumeTimes');") + if fetched_resume_times: + resume_times_dict = json.loads(fetched_resume_times) + current_stream_id = list(resume_times_dict.keys())[-1] + current_resume_time = list(resume_times_dict.values())[-1] + + # If this is the first run, set the last stream id to current stream id + if not self.status_info["last_stream_id"]: + self.status_info["last_stream_id"] = current_stream_id + + # If the stream has restarted, reset last_active_resume_time + if current_stream_id != self.status_info["last_stream_id"]: + self.status_info["last_stream_id"] = current_stream_id + self.status_info["last_active_resume_time"] = 0 + + # If the current resume time has advanced past the last active resume time, update and set status to + if current_resume_time > self.status_info["last_active_resume_time"]: + self.status_info["last_active_timestamp"] = current_time + self.status_info["last_active_resume_time"] = current_resume_time + self.status = utils.InstanceStatus.WATCHING + return + + # If none of the above conditions are met, the stream is buffering + self.status = utils.InstanceStatus.BUFFERING + + def todo_after_spawn(self): + self.goto_with_retry("https://www.twitch.tv/p/en/legal/giftcard/") + + try: + self.page.click(self.cookie_css, timeout=15000) + except: + logger.warning("Cookie consent banner not found/clicked.") + + for key, value in self.local_storage.items(): + tosend = """window.localStorage.setItem('{key}','{value}');""".format(key=key, value=value) + self.page.evaluate(tosend) + + self.page.set_viewport_size( + { + "width": self.location_info["width"], + "height": self.location_info["height"], + } + ) + + self.goto_with_retry(self.target_url) + self.page.wait_for_timeout(1000) + self.page.wait_for_selector(".persistent-player", timeout=15000) + self.page.keyboard.press("Alt+t") + self.page.wait_for_timeout(1000) + + try: + self.page.click( + "button[data-a-target=content-classification-gate-overlay-start-watching-button]", timeout=3000 + ) + except: + logger.info("Mature button not found/clicked.") + + self.status = utils.InstanceStatus.INITIALIZED diff --git a/cvamp/utils.py b/cvamp/utils.py new file mode 100644 index 0000000..6a7b379 --- /dev/null +++ b/cvamp/utils.py @@ -0,0 +1,24 @@ +from enum import Enum, auto +from cvamp import sites + + +class InstanceCommands(Enum): + SCREENSHOT = auto() + REFRESH = auto() + EXIT = auto() + RESTART = auto() + NONE = auto() + + +class InstanceStatus(Enum): + STARTING = "starting" + BUFFERING = "buffering" + WATCHING = "watching" + RESTARTING = "restarting" + INITIALIZED = "initialized" + SHUTDOWN = "shutdown" + INACTIVE = "inactive" + + +class CloudflareBlockException(Exception): + pass diff --git a/cvamp_logo.ico b/cvamp_logo.ico new file mode 100644 index 0000000..6d286e4 Binary files /dev/null and b/cvamp_logo.ico differ diff --git a/docs/gui.png b/docs/gui.png new file mode 100644 index 0000000..1a0662f Binary files /dev/null and b/docs/gui.png differ diff --git a/docs/release_template_text.md b/docs/release_template_text.md new file mode 100644 index 0000000..1760401 --- /dev/null +++ b/docs/release_template_text.md @@ -0,0 +1,16 @@ +Added: + +- + +--- +1. Download the CVAmp_VersionNumber.zip for your OS from the _Assets section_ below. +2. Extract the zip file to a folder. +3. Add your own proxies to proxy/proxy_list.txt. +Buy trusted proxies [here](https://blueloperlabs.ch/proxy/wf) or follow the [Webshare.io Proxies Guide](https://github.com/KevinBytesTheDust/cvamp/wiki/Webshare.io-Proxies-Guide). +5. Start executable and wait for GUI. +6. Spawn instances patiently. + +If instances are dying or buffering too much, your system/bandwidth/proxy is struggling. +For more information follow the [detailed tutorial wiki](https://github.com/KevinBytesTheDust/cvamp/wiki/Detailed-Tutorial). + +You can share your [general feedback in the discussions :speech_balloon:](https://github.com/KevinBytesTheDust/cvamp/discussions/) or [open a bug report in the issues :bug:](https://github.com/KevinBytesTheDust/cvamp/issues/new/choose). \ No newline at end of file diff --git a/main_gui.py b/main_gui.py new file mode 100644 index 0000000..db4273e --- /dev/null +++ b/main_gui.py @@ -0,0 +1,24 @@ +from cvamp.gui import GUI +from cvamp.manager import InstanceManager + + +SPAWNER_THREAD_COUNT = 3 +CLOSER_THREAD_COUNT = 10 +PROXY_FILE_NAME = "proxy_list.txt" +HEADLESS = True +AUTO_RESTART = False +SPAWN_INTERVAL_SECONDS = 2 + +manager = InstanceManager( + spawn_thread_count=SPAWNER_THREAD_COUNT, + delete_thread_count=CLOSER_THREAD_COUNT, + headless=HEADLESS, + auto_restart=AUTO_RESTART, + proxy_file_name=PROXY_FILE_NAME, + spawn_interval_seconds=SPAWN_INTERVAL_SECONDS, +) + +print("Available proxies", len(manager.proxies.proxy_list)) +print("Available window locations", len(manager.screen.spawn_locations)) + +GUI(manager).run() diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..fb6ff37 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,727 @@ +# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. + +[[package]] +name = "altgraph" +version = "0.17.4" +description = "Python graph (network) package" +category = "dev" +optional = false +python-versions = "*" +files = [ + {file = "altgraph-0.17.4-py2.py3-none-any.whl", hash = "sha256:642743b4750de17e655e6711601b077bc6598dbfa3ba5fa2b2a35ce12b508dff"}, + {file = "altgraph-0.17.4.tar.gz", hash = "sha256:1b5afbb98f6c4dcadb2e2ae6ab9fa994bbb8c1d75f4fa96d340f9437ae454406"}, +] + +[[package]] +name = "astroid" +version = "2.15.8" +description = "An abstract syntax tree for Python with inference support." +category = "main" +optional = false +python-versions = ">=3.7.2" +files = [ + {file = "astroid-2.15.8-py3-none-any.whl", hash = "sha256:1aa149fc5c6589e3d0ece885b4491acd80af4f087baafa3fb5203b113e68cd3c"}, + {file = "astroid-2.15.8.tar.gz", hash = "sha256:6c107453dffee9055899705de3c9ead36e74119cee151e5a9aaf7f0b0e020a6a"}, +] + +[package.dependencies] +lazy-object-proxy = ">=1.4.0" +wrapt = {version = ">=1.14,<2", markers = "python_version >= \"3.11\""} + +[[package]] +name = "black" +version = "23.3.0" +description = "The uncompromising code formatter." +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "black-23.3.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:0945e13506be58bf7db93ee5853243eb368ace1c08a24c65ce108986eac65915"}, + {file = "black-23.3.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:67de8d0c209eb5b330cce2469503de11bca4085880d62f1628bd9972cc3366b9"}, + {file = "black-23.3.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:7c3eb7cea23904399866c55826b31c1f55bbcd3890ce22ff70466b907b6775c2"}, + {file = "black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:32daa9783106c28815d05b724238e30718f34155653d4d6e125dc7daec8e260c"}, + {file = "black-23.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:35d1381d7a22cc5b2be2f72c7dfdae4072a3336060635718cc7e1ede24221d6c"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:a8a968125d0a6a404842fa1bf0b349a568634f856aa08ffaff40ae0dfa52e7c6"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:c7ab5790333c448903c4b721b59c0d80b11fe5e9803d8703e84dcb8da56fec1b"}, + {file = "black-23.3.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:a6f6886c9869d4daae2d1715ce34a19bbc4b95006d20ed785ca00fa03cba312d"}, + {file = "black-23.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f3c333ea1dd6771b2d3777482429864f8e258899f6ff05826c3a4fcc5ce3f70"}, + {file = "black-23.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:11c410f71b876f961d1de77b9699ad19f939094c3a677323f43d7a29855fe326"}, + {file = "black-23.3.0-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:1d06691f1eb8de91cd1b322f21e3bfc9efe0c7ca1f0e1eb1db44ea367dff656b"}, + {file = "black-23.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50cb33cac881766a5cd9913e10ff75b1e8eb71babf4c7104f2e9c52da1fb7de2"}, + {file = "black-23.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:e114420bf26b90d4b9daa597351337762b63039752bdf72bf361364c1aa05925"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:48f9d345675bb7fbc3dd85821b12487e1b9a75242028adad0333ce36ed2a6d27"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:714290490c18fb0126baa0fca0a54ee795f7502b44177e1ce7624ba1c00f2331"}, + {file = "black-23.3.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:064101748afa12ad2291c2b91c960be28b817c0c7eaa35bec09cc63aa56493c5"}, + {file = "black-23.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:562bd3a70495facf56814293149e51aa1be9931567474993c7942ff7d3533961"}, + {file = "black-23.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:e198cf27888ad6f4ff331ca1c48ffc038848ea9f031a3b40ba36aced7e22f2c8"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:3238f2aacf827d18d26db07524e44741233ae09a584273aa059066d644ca7b30"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:f0bd2f4a58d6666500542b26354978218a9babcdc972722f4bf90779524515f3"}, + {file = "black-23.3.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:92c543f6854c28a3c7f39f4d9b7694f9a6eb9d3c5e2ece488c327b6e7ea9b266"}, + {file = "black-23.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a150542a204124ed00683f0db1f5cf1c2aaaa9cc3495b7a3b5976fb136090ab"}, + {file = "black-23.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:6b39abdfb402002b8a7d030ccc85cf5afff64ee90fa4c5aebc531e3ad0175ddb"}, + {file = "black-23.3.0-py3-none-any.whl", hash = "sha256:ec751418022185b0c1bb7d7736e6933d40bbb14c14a0abcf9123d1b159f98dd4"}, + {file = "black-23.3.0.tar.gz", hash = "sha256:1c7b8d606e728a41ea1ccbd7264677e494e87cf630e399262ced92d4a8dac940"}, +] + +[package.dependencies] +click = ">=8.0.0" +mypy-extensions = ">=0.4.3" +packaging = ">=22.0" +pathspec = ">=0.9.0" +platformdirs = ">=2" + +[package.extras] +colorama = ["colorama (>=0.4.3)"] +d = ["aiohttp (>=3.7.4)"] +jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] +uvloop = ["uvloop (>=0.15.2)"] + +[[package]] +name = "click" +version = "8.1.7" +description = "Composable command line interface toolkit" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, + {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +files = [ + {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, + {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, +] + +[[package]] +name = "dill" +version = "0.3.8" +description = "serialize all of Python" +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "dill-0.3.8-py3-none-any.whl", hash = "sha256:c36ca9ffb54365bdd2f8eb3eff7d2a21237f8452b57ace88b1ac615b7e815bd7"}, + {file = "dill-0.3.8.tar.gz", hash = "sha256:3ebe3c479ad625c4553aca177444d89b486b1d84982eeacded644afc0cf797ca"}, +] + +[package.extras] +graph = ["objgraph (>=1.7.2)"] +profile = ["gprof2dot (>=2022.7.29)"] + +[[package]] +name = "greenlet" +version = "3.0.3" +description = "Lightweight in-process concurrent programming" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "greenlet-3.0.3-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:9da2bd29ed9e4f15955dd1595ad7bc9320308a3b766ef7f837e23ad4b4aac31a"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d353cadd6083fdb056bb46ed07e4340b0869c305c8ca54ef9da3421acbdf6881"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dca1e2f3ca00b84a396bc1bce13dd21f680f035314d2379c4160c98153b2059b"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3ed7fb269f15dc662787f4119ec300ad0702fa1b19d2135a37c2c4de6fadfd4a"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd4f49ae60e10adbc94b45c0b5e6a179acc1736cf7a90160b404076ee283cf83"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:73a411ef564e0e097dbe7e866bb2dda0f027e072b04da387282b02c308807405"}, + {file = "greenlet-3.0.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:7f362975f2d179f9e26928c5b517524e89dd48530a0202570d55ad6ca5d8a56f"}, + {file = "greenlet-3.0.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:649dde7de1a5eceb258f9cb00bdf50e978c9db1b996964cd80703614c86495eb"}, + {file = "greenlet-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:68834da854554926fbedd38c76e60c4a2e3198c6fbed520b106a8986445caaf9"}, + {file = "greenlet-3.0.3-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:b1b5667cced97081bf57b8fa1d6bfca67814b0afd38208d52538316e9422fc61"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:52f59dd9c96ad2fc0d5724107444f76eb20aaccb675bf825df6435acb7703559"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:afaff6cf5200befd5cec055b07d1c0a5a06c040fe5ad148abcd11ba6ab9b114e"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fe754d231288e1e64323cfad462fcee8f0288654c10bdf4f603a39ed923bef33"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2797aa5aedac23af156bbb5a6aa2cd3427ada2972c828244eb7d1b9255846379"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b7f009caad047246ed379e1c4dbcb8b020f0a390667ea74d2387be2998f58a22"}, + {file = "greenlet-3.0.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:c5e1536de2aad7bf62e27baf79225d0d64360d4168cf2e6becb91baf1ed074f3"}, + {file = "greenlet-3.0.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:894393ce10ceac937e56ec00bb71c4c2f8209ad516e96033e4b3b1de270e200d"}, + {file = "greenlet-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:1ea188d4f49089fc6fb283845ab18a2518d279c7cd9da1065d7a84e991748728"}, + {file = "greenlet-3.0.3-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:70fb482fdf2c707765ab5f0b6655e9cfcf3780d8d87355a063547b41177599be"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4d1ac74f5c0c0524e4a24335350edad7e5f03b9532da7ea4d3c54d527784f2e"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:149e94a2dd82d19838fe4b2259f1b6b9957d5ba1b25640d2380bea9c5df37676"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15d79dd26056573940fcb8c7413d84118086f2ec1a8acdfa854631084393efcc"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:881b7db1ebff4ba09aaaeae6aa491daeb226c8150fc20e836ad00041bcb11230"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fcd2469d6a2cf298f198f0487e0a5b1a47a42ca0fa4dfd1b6862c999f018ebbf"}, + {file = "greenlet-3.0.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:1f672519db1796ca0d8753f9e78ec02355e862d0998193038c7073045899f305"}, + {file = "greenlet-3.0.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2516a9957eed41dd8f1ec0c604f1cdc86758b587d964668b5b196a9db5bfcde6"}, + {file = "greenlet-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:bba5387a6975598857d86de9eac14210a49d554a77eb8261cc68b7d082f78ce2"}, + {file = "greenlet-3.0.3-cp37-cp37m-macosx_11_0_universal2.whl", hash = "sha256:5b51e85cb5ceda94e79d019ed36b35386e8c37d22f07d6a751cb659b180d5274"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:daf3cb43b7cf2ba96d614252ce1684c1bccee6b2183a01328c98d36fcd7d5cb0"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:99bf650dc5d69546e076f413a87481ee1d2d09aaaaaca058c9251b6d8c14783f"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2dd6e660effd852586b6a8478a1d244b8dc90ab5b1321751d2ea15deb49ed414"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3391d1e16e2a5a1507d83e4a8b100f4ee626e8eca43cf2cadb543de69827c4c"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e1f145462f1fa6e4a4ae3c0f782e580ce44d57c8f2c7aae1b6fa88c0b2efdb41"}, + {file = "greenlet-3.0.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:1a7191e42732df52cb5f39d3527217e7ab73cae2cb3694d241e18f53d84ea9a7"}, + {file = "greenlet-3.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:0448abc479fab28b00cb472d278828b3ccca164531daab4e970a0458786055d6"}, + {file = "greenlet-3.0.3-cp37-cp37m-win32.whl", hash = "sha256:b542be2440edc2d48547b5923c408cbe0fc94afb9f18741faa6ae970dbcb9b6d"}, + {file = "greenlet-3.0.3-cp37-cp37m-win_amd64.whl", hash = "sha256:01bc7ea167cf943b4c802068e178bbf70ae2e8c080467070d01bfa02f337ee67"}, + {file = "greenlet-3.0.3-cp38-cp38-macosx_11_0_universal2.whl", hash = "sha256:1996cb9306c8595335bb157d133daf5cf9f693ef413e7673cb07e3e5871379ca"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ddc0f794e6ad661e321caa8d2f0a55ce01213c74722587256fb6566049a8b04"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c9db1c18f0eaad2f804728c67d6c610778456e3e1cc4ab4bbd5eeb8e6053c6fc"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7170375bcc99f1a2fbd9c306f5be8764eaf3ac6b5cb968862cad4c7057756506"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b66c9c1e7ccabad3a7d037b2bcb740122a7b17a53734b7d72a344ce39882a1b"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:098d86f528c855ead3479afe84b49242e174ed262456c342d70fc7f972bc13c4"}, + {file = "greenlet-3.0.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:81bb9c6d52e8321f09c3d165b2a78c680506d9af285bfccbad9fb7ad5a5da3e5"}, + {file = "greenlet-3.0.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:fd096eb7ffef17c456cfa587523c5f92321ae02427ff955bebe9e3c63bc9f0da"}, + {file = "greenlet-3.0.3-cp38-cp38-win32.whl", hash = "sha256:d46677c85c5ba00a9cb6f7a00b2bfa6f812192d2c9f7d9c4f6a55b60216712f3"}, + {file = "greenlet-3.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:419b386f84949bf0e7c73e6032e3457b82a787c1ab4a0e43732898a761cc9dbf"}, + {file = "greenlet-3.0.3-cp39-cp39-macosx_11_0_universal2.whl", hash = "sha256:da70d4d51c8b306bb7a031d5cff6cc25ad253affe89b70352af5f1cb68e74b53"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:086152f8fbc5955df88382e8a75984e2bb1c892ad2e3c80a2508954e52295257"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d73a9fe764d77f87f8ec26a0c85144d6a951a6c438dfe50487df5595c6373eac"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b7dcbe92cc99f08c8dd11f930de4d99ef756c3591a5377d1d9cd7dd5e896da71"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1551a8195c0d4a68fac7a4325efac0d541b48def35feb49d803674ac32582f61"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:64d7675ad83578e3fc149b617a444fab8efdafc9385471f868eb5ff83e446b8b"}, + {file = "greenlet-3.0.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b37eef18ea55f2ffd8f00ff8fe7c8d3818abd3e25fb73fae2ca3b672e333a7a6"}, + {file = "greenlet-3.0.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:77457465d89b8263bca14759d7c1684df840b6811b2499838cc5b040a8b5b113"}, + {file = "greenlet-3.0.3-cp39-cp39-win32.whl", hash = "sha256:57e8974f23e47dac22b83436bdcf23080ade568ce77df33159e019d161ce1d1e"}, + {file = "greenlet-3.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:c5ee858cfe08f34712f548c3c363e807e7186f03ad7a5039ebadb29e8c6be067"}, + {file = "greenlet-3.0.3.tar.gz", hash = "sha256:43374442353259554ce33599da8b692d5aa96f8976d567d4badf263371fbe491"}, +] + +[package.extras] +docs = ["Sphinx", "furo"] +test = ["objgraph", "psutil"] + +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + +[[package]] +name = "isort" +version = "5.13.2" +description = "A Python utility / library to sort Python imports." +category = "main" +optional = false +python-versions = ">=3.8.0" +files = [ + {file = "isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6"}, + {file = "isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109"}, +] + +[package.extras] +colors = ["colorama (>=0.4.6)"] + +[[package]] +name = "lazy-object-proxy" +version = "1.10.0" +description = "A fast and thorough lazy object proxy." +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "lazy-object-proxy-1.10.0.tar.gz", hash = "sha256:78247b6d45f43a52ef35c25b5581459e85117225408a4128a3daf8bf9648ac69"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:855e068b0358ab916454464a884779c7ffa312b8925c6f7401e952dcf3b89977"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7ab7004cf2e59f7c2e4345604a3e6ea0d92ac44e1c2375527d56492014e690c3"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dc0d2fc424e54c70c4bc06787e4072c4f3b1aa2f897dfdc34ce1013cf3ceef05"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e2adb09778797da09d2b5ebdbceebf7dd32e2c96f79da9052b2e87b6ea495895"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b1f711e2c6dcd4edd372cf5dec5c5a30d23bba06ee012093267b3376c079ec83"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-win32.whl", hash = "sha256:76a095cfe6045c7d0ca77db9934e8f7b71b14645f0094ffcd842349ada5c5fb9"}, + {file = "lazy_object_proxy-1.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:b4f87d4ed9064b2628da63830986c3d2dca7501e6018347798313fcf028e2fd4"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fec03caabbc6b59ea4a638bee5fce7117be8e99a4103d9d5ad77f15d6f81020c"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:02c83f957782cbbe8136bee26416686a6ae998c7b6191711a04da776dc9e47d4"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:009e6bb1f1935a62889ddc8541514b6a9e1fcf302667dcb049a0be5c8f613e56"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:75fc59fc450050b1b3c203c35020bc41bd2695ed692a392924c6ce180c6f1dc9"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:782e2c9b2aab1708ffb07d4bf377d12901d7a1d99e5e410d648d892f8967ab1f"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-win32.whl", hash = "sha256:edb45bb8278574710e68a6b021599a10ce730d156e5b254941754a9cc0b17d03"}, + {file = "lazy_object_proxy-1.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:e271058822765ad5e3bca7f05f2ace0de58a3f4e62045a8c90a0dfd2f8ad8cc6"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:e98c8af98d5707dcdecc9ab0863c0ea6e88545d42ca7c3feffb6b4d1e370c7ba"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:952c81d415b9b80ea261d2372d2a4a2332a3890c2b83e0535f263ddfe43f0d43"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80b39d3a151309efc8cc48675918891b865bdf742a8616a337cb0090791a0de9"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:e221060b701e2aa2ea991542900dd13907a5c90fa80e199dbf5a03359019e7a3"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:92f09ff65ecff3108e56526f9e2481b8116c0b9e1425325e13245abfd79bdb1b"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-win32.whl", hash = "sha256:3ad54b9ddbe20ae9f7c1b29e52f123120772b06dbb18ec6be9101369d63a4074"}, + {file = "lazy_object_proxy-1.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:127a789c75151db6af398b8972178afe6bda7d6f68730c057fbbc2e96b08d282"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9e4ed0518a14dd26092614412936920ad081a424bdcb54cc13349a8e2c6d106a"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5ad9e6ed739285919aa9661a5bbed0aaf410aa60231373c5579c6b4801bd883c"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2fc0a92c02fa1ca1e84fc60fa258458e5bf89d90a1ddaeb8ed9cc3147f417255"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:0aefc7591920bbd360d57ea03c995cebc204b424524a5bd78406f6e1b8b2a5d8"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5faf03a7d8942bb4476e3b62fd0f4cf94eaf4618e304a19865abf89a35c0bbee"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-win32.whl", hash = "sha256:e333e2324307a7b5d86adfa835bb500ee70bfcd1447384a822e96495796b0ca4"}, + {file = "lazy_object_proxy-1.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:cb73507defd385b7705c599a94474b1d5222a508e502553ef94114a143ec6696"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:366c32fe5355ef5fc8a232c5436f4cc66e9d3e8967c01fb2e6302fd6627e3d94"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2297f08f08a2bb0d32a4265e98a006643cd7233fb7983032bd61ac7a02956b3b"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18dd842b49456aaa9a7cf535b04ca4571a302ff72ed8740d06b5adcd41fe0757"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:217138197c170a2a74ca0e05bddcd5f1796c735c37d0eee33e43259b192aa424"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9a3a87cf1e133e5b1994144c12ca4aa3d9698517fe1e2ca82977781b16955658"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-win32.whl", hash = "sha256:30b339b2a743c5288405aa79a69e706a06e02958eab31859f7f3c04980853b70"}, + {file = "lazy_object_proxy-1.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:a899b10e17743683b293a729d3a11f2f399e8a90c73b089e29f5d0fe3509f0dd"}, + {file = "lazy_object_proxy-1.10.0-pp310.pp311.pp312.pp38.pp39-none-any.whl", hash = "sha256:80fa48bd89c8f2f456fc0765c11c23bf5af827febacd2f523ca5bc1893fcc09d"}, +] + +[[package]] +name = "macholib" +version = "1.16.3" +description = "Mach-O header analysis and editing" +category = "dev" +optional = false +python-versions = "*" +files = [ + {file = "macholib-1.16.3-py2.py3-none-any.whl", hash = "sha256:0e315d7583d38b8c77e815b1ecbdbf504a8258d8b3e17b61165c6feb60d18f2c"}, + {file = "macholib-1.16.3.tar.gz", hash = "sha256:07ae9e15e8e4cd9a788013d81f5908b3609aa76f9b1421bae9c4d7606ec86a30"}, +] + +[package.dependencies] +altgraph = ">=0.17" + +[[package]] +name = "mccabe" +version = "0.7.0" +description = "McCabe checker, plugin for flake8" +category = "main" +optional = false +python-versions = ">=3.6" +files = [ + {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, + {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, +] + +[[package]] +name = "mypy-extensions" +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." +category = "main" +optional = false +python-versions = ">=3.5" +files = [ + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, +] + +[[package]] +name = "packaging" +version = "23.2" +description = "Core utilities for Python packages" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, + {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, +] + +[[package]] +name = "pathspec" +version = "0.12.1" +description = "Utility library for gitignore style pattern matching of file paths." +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"}, + {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, +] + +[[package]] +name = "pefile" +version = "2023.2.7" +description = "Python PE parsing module" +category = "dev" +optional = false +python-versions = ">=3.6.0" +files = [ + {file = "pefile-2023.2.7-py3-none-any.whl", hash = "sha256:da185cd2af68c08a6cd4481f7325ed600a88f6a813bad9dea07ab3ef73d8d8d6"}, + {file = "pefile-2023.2.7.tar.gz", hash = "sha256:82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc"}, +] + +[[package]] +name = "platformdirs" +version = "4.2.0" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "platformdirs-4.2.0-py3-none-any.whl", hash = "sha256:0614df2a2f37e1a662acbd8e2b25b92ccf8632929bc6d43467e17fe89c75e068"}, + {file = "platformdirs-4.2.0.tar.gz", hash = "sha256:ef0cc731df711022c174543cb70a9b5bd22e5a9337c8624ef2c2ceb8ddad8768"}, +] + +[package.extras] +docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"] + +[[package]] +name = "playwright" +version = "1.41.2" +description = "A high-level API to automate web browsers" +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "playwright-1.41.2-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:cf68335a5dfa4038fa797a4ba0105faee0094ebbb372547d7a27feec5b23c672"}, + {file = "playwright-1.41.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:431e3a05f8c99147995e2b3e8475d07818745294fd99f1510b61756e73bdcf68"}, + {file = "playwright-1.41.2-py3-none-macosx_11_0_universal2.whl", hash = "sha256:0608717cbf291a625ba6f751061af0fc0cc9bdace217e69d87b1eb1383b03406"}, + {file = "playwright-1.41.2-py3-none-manylinux1_x86_64.whl", hash = "sha256:4bf214d812092cf5b9b9648ba84611aa35e28685519911342a7da3a3031f9ed6"}, + {file = "playwright-1.41.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eaa17ab44622c447de26ed8f7d99912719568d8dbc3a9db0e07f0ae1487709d9"}, + {file = "playwright-1.41.2-py3-none-win32.whl", hash = "sha256:edb210a015e70bb0d328bf1c9b65fa3a08361f33e4d7c4ddd1ad2adb6d9b4479"}, + {file = "playwright-1.41.2-py3-none-win_amd64.whl", hash = "sha256:71ead0f33e00f5a8533c037c647938b99f219436a1b27d4ba4de4e6bf0567278"}, +] + +[package.dependencies] +greenlet = "3.0.3" +pyee = "11.0.1" + +[[package]] +name = "pluggy" +version = "1.4.0" +description = "plugin and hook calling mechanisms for python" +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, + {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "psutil" +version = "5.9.8" +description = "Cross-platform lib for process and system monitoring in Python." +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +files = [ + {file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352a91cff1a78f8d69b3ecabbfe733610c0af486c8"}, + {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb6692bd2e714ccf9e668d050d144012055cbca73"}, + {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:611052c4bc70432ec770d5d54f64206aa7203a101ec273a0cd82418c86503bb7"}, + {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:50187900d73c1381ba1454cf40308c2bf6f34268518b3f36a9b663ca87e65e36"}, + {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:02615ed8c5ea222323408ceba16c60e99c3f91639b07da6373fb7e6539abc56d"}, + {file = "psutil-5.9.8-cp27-none-win32.whl", hash = "sha256:36f435891adb138ed3c9e58c6af3e2e6ca9ac2f365efe1f9cfef2794e6c93b4e"}, + {file = "psutil-5.9.8-cp27-none-win_amd64.whl", hash = "sha256:bd1184ceb3f87651a67b2708d4c3338e9b10c5df903f2e3776b62303b26cb631"}, + {file = "psutil-5.9.8-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:aee678c8720623dc456fa20659af736241f575d79429a0e5e9cf88ae0605cc81"}, + {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8cb6403ce6d8e047495a701dc7c5bd788add903f8986d523e3e20b98b733e421"}, + {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d06016f7f8625a1825ba3732081d77c94589dca78b7a3fc072194851e88461a4"}, + {file = "psutil-5.9.8-cp36-cp36m-win32.whl", hash = "sha256:7d79560ad97af658a0f6adfef8b834b53f64746d45b403f225b85c5c2c140eee"}, + {file = "psutil-5.9.8-cp36-cp36m-win_amd64.whl", hash = "sha256:27cc40c3493bb10de1be4b3f07cae4c010ce715290a5be22b98493509c6299e2"}, + {file = "psutil-5.9.8-cp37-abi3-win32.whl", hash = "sha256:bc56c2a1b0d15aa3eaa5a60c9f3f8e3e565303b465dbf57a1b730e7a2b9844e0"}, + {file = "psutil-5.9.8-cp37-abi3-win_amd64.whl", hash = "sha256:8db4c1b57507eef143a15a6884ca10f7c73876cdf5d51e713151c1236a0e68cf"}, + {file = "psutil-5.9.8-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:d16bbddf0693323b8c6123dd804100241da461e41d6e332fb0ba6058f630f8c8"}, + {file = "psutil-5.9.8.tar.gz", hash = "sha256:6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c"}, +] + +[package.extras] +test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] + +[[package]] +name = "pyee" +version = "11.0.1" +description = "A rough port of Node.js's EventEmitter to Python with a few tricks of its own" +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pyee-11.0.1-py3-none-any.whl", hash = "sha256:9bcc9647822234f42c228d88de63d0f9ffa881e87a87f9d36ddf5211f6ac977d"}, + {file = "pyee-11.0.1.tar.gz", hash = "sha256:a642c51e3885a33ead087286e35212783a4e9b8d6514a10a5db4e57ac57b2b29"}, +] + +[package.dependencies] +typing-extensions = "*" + +[package.extras] +dev = ["black", "flake8", "flake8-black", "isort", "jupyter-console", "mkdocs", "mkdocs-include-markdown-plugin", "mkdocstrings[python]", "pytest", "pytest-asyncio", "pytest-trio", "toml", "tox", "trio", "trio", "trio-typing", "twine", "twisted", "validate-pyproject[all]"] + +[[package]] +name = "pyinstaller" +version = "6.4.0" +description = "PyInstaller bundles a Python application and all its dependencies into a single package." +category = "dev" +optional = false +python-versions = "<3.13,>=3.8" +files = [ + {file = "pyinstaller-6.4.0-py3-none-macosx_10_13_universal2.whl", hash = "sha256:a2e63fa71784f290bbf79b31b60a27c45b17a18b8c7f910757f9474e0c12c95d"}, + {file = "pyinstaller-6.4.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:3127724d1841f785a9916d7b4cfd9595f359925e9ce7d137a16db8c29ca8453b"}, + {file = "pyinstaller-6.4.0-py3-none-manylinux2014_i686.whl", hash = "sha256:a37f83850cb150ad1e00fe92acecc4d39b8e10162a1850a5836a05fcb2daa870"}, + {file = "pyinstaller-6.4.0-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:28b98fa3c74602bdc4c5a7698e907f31e714cc40a13f6358082bcbc74ddab35c"}, + {file = "pyinstaller-6.4.0-py3-none-manylinux2014_s390x.whl", hash = "sha256:3ae62cf8858ec4dc54df6fa03d29bc78297e3c87caf532887eae8c3893be0789"}, + {file = "pyinstaller-6.4.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:e3e1e6922a4260dcacf6f5655b0ca857451e05ac502d01642935d0f2873ad3c7"}, + {file = "pyinstaller-6.4.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:78fb66ca753ef8becdf059eaa1e764d384cacb8c2ec76800126f8c9ef6d19a50"}, + {file = "pyinstaller-6.4.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:e07cff584600647af7dc279dd04c60cd1b4b1b41947b0753f8fcf1969300a583"}, + {file = "pyinstaller-6.4.0-py3-none-win32.whl", hash = "sha256:c7bc0fbea8a9010484cfa7d3856416003af73271f03ca3da4bc0eaf14680ad17"}, + {file = "pyinstaller-6.4.0-py3-none-win_amd64.whl", hash = "sha256:ec8a08c983e3febb0247893cd9bd59f55b6767a1f649cb41a0a129b8f04ff2cb"}, + {file = "pyinstaller-6.4.0-py3-none-win_arm64.whl", hash = "sha256:11e6da6a6e441379352ee460a8880f2633dac91dac0f5a9eeff5d449d459b046"}, + {file = "pyinstaller-6.4.0.tar.gz", hash = "sha256:1bf608ed947b58614711275a7ff169289b32560dc97ec748ebd5fa8bdec80649"}, +] + +[package.dependencies] +altgraph = "*" +macholib = {version = ">=1.8", markers = "sys_platform == \"darwin\""} +packaging = ">=22.0" +pefile = {version = ">=2022.5.30", markers = "sys_platform == \"win32\""} +pyinstaller-hooks-contrib = ">=2024.0" +pywin32-ctypes = {version = ">=0.2.1", markers = "sys_platform == \"win32\""} +setuptools = ">=42.0.0" + +[package.extras] +completion = ["argcomplete"] +hook-testing = ["execnet (>=1.5.0)", "psutil", "pytest (>=2.7.3)"] + +[[package]] +name = "pyinstaller-hooks-contrib" +version = "2024.1" +description = "Community maintained hooks for PyInstaller" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pyinstaller-hooks-contrib-2024.1.tar.gz", hash = "sha256:51a51ea9e1ae6bd5ffa7ec45eba7579624bf4f2472ff56dba0edc186f6ed46a6"}, + {file = "pyinstaller_hooks_contrib-2024.1-py2.py3-none-any.whl", hash = "sha256:131494f9cfce190aaa66ed82e82c78b2723d1720ce64d012fbaf938f4ab01d35"}, +] + +[package.dependencies] +packaging = ">=22.0" +setuptools = ">=42.0.0" + +[[package]] +name = "pylint" +version = "2.17.7" +description = "python code static checker" +category = "main" +optional = false +python-versions = ">=3.7.2" +files = [ + {file = "pylint-2.17.7-py3-none-any.whl", hash = "sha256:27a8d4c7ddc8c2f8c18aa0050148f89ffc09838142193fdbe98f172781a3ff87"}, + {file = "pylint-2.17.7.tar.gz", hash = "sha256:f4fcac7ae74cfe36bc8451e931d8438e4a476c20314b1101c458ad0f05191fad"}, +] + +[package.dependencies] +astroid = ">=2.15.8,<=2.17.0-dev0" +colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} +dill = {version = ">=0.3.6", markers = "python_version >= \"3.11\""} +isort = ">=4.2.5,<6" +mccabe = ">=0.6,<0.8" +platformdirs = ">=2.2.0" +tomlkit = ">=0.10.1" + +[package.extras] +spelling = ["pyenchant (>=3.2,<4.0)"] +testutils = ["gitpython (>3)"] + +[[package]] +name = "pytest" +version = "7.4.4" +description = "pytest: simple powerful testing with Python" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, + {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=0.12,<2.0" + +[package.extras] +testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] + +[[package]] +name = "python-dateutil" +version = "2.8.2" +description = "Extensions to the standard Python datetime module" +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +files = [ + {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, + {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, +] + +[package.dependencies] +six = ">=1.5" + +[[package]] +name = "pywin32-ctypes" +version = "0.2.2" +description = "A (partial) reimplementation of pywin32 using ctypes/cffi" +category = "dev" +optional = false +python-versions = ">=3.6" +files = [ + {file = "pywin32-ctypes-0.2.2.tar.gz", hash = "sha256:3426e063bdd5fd4df74a14fa3cf80a0b42845a87e1d1e81f6549f9daec593a60"}, + {file = "pywin32_ctypes-0.2.2-py3-none-any.whl", hash = "sha256:bf490a1a709baf35d688fe0ecf980ed4de11d2b3e37b51e5442587a75d9957e7"}, +] + +[[package]] +name = "setuptools" +version = "69.1.1" +description = "Easily download, build, install, upgrade, and uninstall Python packages" +category = "dev" +optional = false +python-versions = ">=3.8" +files = [ + {file = "setuptools-69.1.1-py3-none-any.whl", hash = "sha256:02fa291a0471b3a18b2b2481ed902af520c69e8ae0919c13da936542754b4c56"}, + {file = "setuptools-69.1.1.tar.gz", hash = "sha256:5c0806c7d9af348e6dd3777b4f4dbb42c7ad85b190104837488eab9a7c945cf8"}, +] + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] + +[[package]] +name = "sv-ttk" +version = "0.1" +description = "Python module to easily use the Sun Valley ttk theme" +category = "main" +optional = false +python-versions = ">=3.4" +files = [ + {file = "sv_ttk-0.1-py3-none-any.whl", hash = "sha256:c47ab1c70aad0333bc7f5063ab55e8a16b562e700e89e7853e577a1e2fdaa091"}, + {file = "sv_ttk-0.1.tar.gz", hash = "sha256:342754618292b6d224060307eccaa35b6f6c284b34b4da1d0cf0484b652ffb0f"}, +] + +[[package]] +name = "toml" +version = "0.10.2" +description = "Python Library for Tom's Obvious, Minimal Language" +category = "main" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, + {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, +] + +[[package]] +name = "tomlkit" +version = "0.12.3" +description = "Style preserving TOML library" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomlkit-0.12.3-py3-none-any.whl", hash = "sha256:b0a645a9156dc7cb5d3a1f0d4bab66db287fcb8e0430bdd4664a095ea16414ba"}, + {file = "tomlkit-0.12.3.tar.gz", hash = "sha256:75baf5012d06501f07bee5bf8e801b9f343e7aac5a92581f20f80ce632e6b5a4"}, +] + +[[package]] +name = "typing-extensions" +version = "4.9.0" +description = "Backported and Experimental Type Hints for Python 3.8+" +category = "main" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.9.0-py3-none-any.whl", hash = "sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd"}, + {file = "typing_extensions-4.9.0.tar.gz", hash = "sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783"}, +] + +[[package]] +name = "wrapt" +version = "1.16.0" +description = "Module for decorators, wrappers and monkey patching." +category = "main" +optional = false +python-versions = ">=3.6" +files = [ + {file = "wrapt-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ffa565331890b90056c01db69c0fe634a776f8019c143a5ae265f9c6bc4bd6d4"}, + {file = "wrapt-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e4fdb9275308292e880dcbeb12546df7f3e0f96c6b41197e0cf37d2826359020"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb2dee3874a500de01c93d5c71415fcaef1d858370d405824783e7a8ef5db440"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2a88e6010048489cda82b1326889ec075a8c856c2e6a256072b28eaee3ccf487"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac83a914ebaf589b69f7d0a1277602ff494e21f4c2f743313414378f8f50a4cf"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:73aa7d98215d39b8455f103de64391cb79dfcad601701a3aa0dddacf74911d72"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:807cc8543a477ab7422f1120a217054f958a66ef7314f76dd9e77d3f02cdccd0"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:bf5703fdeb350e36885f2875d853ce13172ae281c56e509f4e6eca049bdfb136"}, + {file = "wrapt-1.16.0-cp310-cp310-win32.whl", hash = "sha256:f6b2d0c6703c988d334f297aa5df18c45e97b0af3679bb75059e0e0bd8b1069d"}, + {file = "wrapt-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:decbfa2f618fa8ed81c95ee18a387ff973143c656ef800c9f24fb7e9c16054e2"}, + {file = "wrapt-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1a5db485fe2de4403f13fafdc231b0dbae5eca4359232d2efc79025527375b09"}, + {file = "wrapt-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:75ea7d0ee2a15733684badb16de6794894ed9c55aa5e9903260922f0482e687d"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a452f9ca3e3267cd4d0fcf2edd0d035b1934ac2bd7e0e57ac91ad6b95c0c6389"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:43aa59eadec7890d9958748db829df269f0368521ba6dc68cc172d5d03ed8060"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72554a23c78a8e7aa02abbd699d129eead8b147a23c56e08d08dfc29cfdddca1"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d2efee35b4b0a347e0d99d28e884dfd82797852d62fcd7ebdeee26f3ceb72cf3"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:6dcfcffe73710be01d90cae08c3e548d90932d37b39ef83969ae135d36ef3956"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:eb6e651000a19c96f452c85132811d25e9264d836951022d6e81df2fff38337d"}, + {file = "wrapt-1.16.0-cp311-cp311-win32.whl", hash = "sha256:66027d667efe95cc4fa945af59f92c5a02c6f5bb6012bff9e60542c74c75c362"}, + {file = "wrapt-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:aefbc4cb0a54f91af643660a0a150ce2c090d3652cf4052a5397fb2de549cd89"}, + {file = "wrapt-1.16.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5eb404d89131ec9b4f748fa5cfb5346802e5ee8836f57d516576e61f304f3b7b"}, + {file = "wrapt-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9090c9e676d5236a6948330e83cb89969f433b1943a558968f659ead07cb3b36"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94265b00870aa407bd0cbcfd536f17ecde43b94fb8d228560a1e9d3041462d73"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f2058f813d4f2b5e3a9eb2eb3faf8f1d99b81c3e51aeda4b168406443e8ba809"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98b5e1f498a8ca1858a1cdbffb023bfd954da4e3fa2c0cb5853d40014557248b"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:14d7dc606219cdd7405133c713f2c218d4252f2a469003f8c46bb92d5d095d81"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:49aac49dc4782cb04f58986e81ea0b4768e4ff197b57324dcbd7699c5dfb40b9"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:418abb18146475c310d7a6dc71143d6f7adec5b004ac9ce08dc7a34e2babdc5c"}, + {file = "wrapt-1.16.0-cp312-cp312-win32.whl", hash = "sha256:685f568fa5e627e93f3b52fda002c7ed2fa1800b50ce51f6ed1d572d8ab3e7fc"}, + {file = "wrapt-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:dcdba5c86e368442528f7060039eda390cc4091bfd1dca41e8046af7c910dda8"}, + {file = "wrapt-1.16.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d462f28826f4657968ae51d2181a074dfe03c200d6131690b7d65d55b0f360f8"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a33a747400b94b6d6b8a165e4480264a64a78c8a4c734b62136062e9a248dd39"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3646eefa23daeba62643a58aac816945cadc0afaf21800a1421eeba5f6cfb9c"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ebf019be5c09d400cf7b024aa52b1f3aeebeff51550d007e92c3c1c4afc2a40"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:0d2691979e93d06a95a26257adb7bfd0c93818e89b1406f5a28f36e0d8c1e1fc"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:1acd723ee2a8826f3d53910255643e33673e1d11db84ce5880675954183ec47e"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:bc57efac2da352a51cc4658878a68d2b1b67dbe9d33c36cb826ca449d80a8465"}, + {file = "wrapt-1.16.0-cp36-cp36m-win32.whl", hash = "sha256:da4813f751142436b075ed7aa012a8778aa43a99f7b36afe9b742d3ed8bdc95e"}, + {file = "wrapt-1.16.0-cp36-cp36m-win_amd64.whl", hash = "sha256:6f6eac2360f2d543cc875a0e5efd413b6cbd483cb3ad7ebf888884a6e0d2e966"}, + {file = "wrapt-1.16.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a0ea261ce52b5952bf669684a251a66df239ec6d441ccb59ec7afa882265d593"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bd2d7ff69a2cac767fbf7a2b206add2e9a210e57947dd7ce03e25d03d2de292"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9159485323798c8dc530a224bd3ffcf76659319ccc7bbd52e01e73bd0241a0c5"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a86373cf37cd7764f2201b76496aba58a52e76dedfaa698ef9e9688bfd9e41cf"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:73870c364c11f03ed072dda68ff7aea6d2a3a5c3fe250d917a429c7432e15228"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b935ae30c6e7400022b50f8d359c03ed233d45b725cfdd299462f41ee5ffba6f"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:db98ad84a55eb09b3c32a96c576476777e87c520a34e2519d3e59c44710c002c"}, + {file = "wrapt-1.16.0-cp37-cp37m-win32.whl", hash = "sha256:9153ed35fc5e4fa3b2fe97bddaa7cbec0ed22412b85bcdaf54aeba92ea37428c"}, + {file = "wrapt-1.16.0-cp37-cp37m-win_amd64.whl", hash = "sha256:66dfbaa7cfa3eb707bbfcd46dab2bc6207b005cbc9caa2199bcbc81d95071a00"}, + {file = "wrapt-1.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1dd50a2696ff89f57bd8847647a1c363b687d3d796dc30d4dd4a9d1689a706f0"}, + {file = "wrapt-1.16.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:44a2754372e32ab315734c6c73b24351d06e77ffff6ae27d2ecf14cf3d229202"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e9723528b9f787dc59168369e42ae1c3b0d3fadb2f1a71de14531d321ee05b0"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dbed418ba5c3dce92619656802cc5355cb679e58d0d89b50f116e4a9d5a9603e"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:941988b89b4fd6b41c3f0bfb20e92bd23746579736b7343283297c4c8cbae68f"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6a42cd0cfa8ffc1915aef79cb4284f6383d8a3e9dcca70c445dcfdd639d51267"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:1ca9b6085e4f866bd584fb135a041bfc32cab916e69f714a7d1d397f8c4891ca"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d5e49454f19ef621089e204f862388d29e6e8d8b162efce05208913dde5b9ad6"}, + {file = "wrapt-1.16.0-cp38-cp38-win32.whl", hash = "sha256:c31f72b1b6624c9d863fc095da460802f43a7c6868c5dda140f51da24fd47d7b"}, + {file = "wrapt-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:490b0ee15c1a55be9c1bd8609b8cecd60e325f0575fc98f50058eae366e01f41"}, + {file = "wrapt-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9b201ae332c3637a42f02d1045e1d0cccfdc41f1f2f801dafbaa7e9b4797bfc2"}, + {file = "wrapt-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:2076fad65c6736184e77d7d4729b63a6d1ae0b70da4868adeec40989858eb3fb"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5cd603b575ebceca7da5a3a251e69561bec509e0b46e4993e1cac402b7247b8"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b47cfad9e9bbbed2339081f4e346c93ecd7ab504299403320bf85f7f85c7d46c"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8212564d49c50eb4565e502814f694e240c55551a5f1bc841d4fcaabb0a9b8a"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5f15814a33e42b04e3de432e573aa557f9f0f56458745c2074952f564c50e664"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:db2e408d983b0e61e238cf579c09ef7020560441906ca990fe8412153e3b291f"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:edfad1d29c73f9b863ebe7082ae9321374ccb10879eeabc84ba3b69f2579d537"}, + {file = "wrapt-1.16.0-cp39-cp39-win32.whl", hash = "sha256:ed867c42c268f876097248e05b6117a65bcd1e63b779e916fe2e33cd6fd0d3c3"}, + {file = "wrapt-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:eb1b046be06b0fce7249f1d025cd359b4b80fc1c3e24ad9eca33e0dcdb2e4a35"}, + {file = "wrapt-1.16.0-py3-none-any.whl", hash = "sha256:6906c4100a8fcbf2fa735f6059214bb13b97f75b1a61777fcf6432121ef12ef1"}, + {file = "wrapt-1.16.0.tar.gz", hash = "sha256:5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d"}, +] + +[metadata] +lock-version = "2.0" +python-versions = "^3.11.0, <3.12" +content-hash = "304b71642fa86cd33049f51c04886138dfdf647ebb30a205ceb92b78466ad97b" diff --git a/proxy/proxy_list.txt b/proxy/proxy_list.txt new file mode 100644 index 0000000..84340fb --- /dev/null +++ b/proxy/proxy_list.txt @@ -0,0 +1,3 @@ +123.345.678.213:6998:username:password +345.246.678.345:6741:username:password +678.345.345.678:5085:username:password \ No newline at end of file diff --git a/proxy/user-agents.txt b/proxy/user-agents.txt new file mode 100644 index 0000000..f9948bd --- /dev/null +++ b/proxy/user-agents.txt @@ -0,0 +1 @@ +Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c296ad3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,24 @@ +[tool.poetry] +name = "cvamp" +version = "0.7.0" +description = "Viewer Amplifier bot with playwright. Spawns low-resolution muted Chrome instances with proxy & user-agent. Requires HTTP proxies." +authors = ["KevinBytesTheDust "] + +[tool.poetry.dependencies] +python = "^3.11.0, <3.12" +playwright = "^1.22.0" +psutil = "^5.9.0" +toml = "^0.10.2" +sv-ttk = "^0.1" +pytest = "^7.1.2" +black = "23.3.0" +pylint = "^2.15.4" +python-dateutil = "^2.8.2" + +[tool.poetry.dev-dependencies] +pytest = "^7.1.2" +pyinstaller = "^6.0" + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"