├── .github
└── workflows
│ └── codeql-analysis.yml
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── _config.yml
├── data
├── Additem.png
├── Loading.gif
├── autoloadService.png
├── banner.png
├── createService.png
├── icon.ico
├── logo.png
├── logonew.png
├── setting.png
└── viewService.png
├── docs
├── 1.png
├── 2.png
├── 3.png
├── 4.png
└── screenshot_collage.jpg
├── main.py
├── poetry.lock
└── pyproject.toml
/.github/workflows/codeql-analysis.yml:
--------------------------------------------------------------------------------
1 | # For most projects, this workflow file will not need changing; you simply need
2 | # to commit it to your repository.
3 | #
4 | # You may wish to alter this file to override the set of languages analyzed,
5 | # or to provide custom queries or build logic.
6 | #
7 | # ******** NOTE ********
8 | # We have attempted to detect the languages in your repository. Please check
9 | # the `language` matrix defined below to confirm you have the correct set of
10 | # supported CodeQL languages.
11 | #
12 | name: "CodeQL"
13 |
14 | on:
15 | push:
16 | branches: [ "main", myRule ]
17 | pull_request:
18 | # The branches below must be a subset of the branches above
19 | branches: [ "main" ]
20 | schedule:
21 | - cron: '39 7 * * 4'
22 |
23 | jobs:
24 | analyze:
25 | name: Analyze
26 | runs-on: ubuntu-latest
27 | permissions:
28 | actions: read
29 | contents: read
30 | security-events: write
31 |
32 | strategy:
33 | fail-fast: false
34 | matrix:
35 | language: [ 'python' ]
36 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38 |
39 | steps:
40 | - name: Checkout repository
41 | uses: actions/checkout@v3
42 |
43 | # Initializes the CodeQL tools for scanning.
44 | - name: Initialize CodeQL
45 | uses: github/codeql-action/init@v2
46 | with:
47 | languages: ${{ matrix.language }}
48 | # If you wish to specify custom queries, you can do so here or in a config file.
49 | # By default, queries listed here will override any specified in a config file.
50 | # Prefix the list here with "+" to use these queries and those in the config file.
51 |
52 | # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53 | # queries: security-extended,security-and-quality
54 |
55 |
56 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57 | # If this step fails, then you should remove it and run the build manually (see below)
58 | - name: Autobuild
59 | uses: github/codeql-action/autobuild@v2
60 |
61 | # ℹ️ Command-line programs to run using the OS shell.
62 | # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63 |
64 | # If the Autobuild fails above, remove it and uncomment the following three lines.
65 | # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66 |
67 | # - run: |
68 | # echo "Run, Build Application using script"
69 | # ./location_of_script_within_repo/buildscript.sh
70 |
71 | - name: Perform CodeQL Analysis
72 | uses: github/codeql-action/analyze@v2
73 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | res
2 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | discussion forums.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## [Zoom AutoRecorder](https://rootCircle.github.io/Zoom-AutoRecorder/)
2 |
3 | 
4 | 
5 | 
6 | 
7 | 
8 | 
9 |
10 |
11 | ### Introduction
12 | Zoom Recorder is a free and open-source Python-based GUI-operated screen recorder and scheduler for Zoom meetings.
13 | It is a complete rewrite of [AutoRecorder](https://github.com/rootCircle/AutoRecorder) with an added GUI and fewer bugs, aimed at simplicity and ease of use while requiring minimal user details and program configuration across all platforms.
14 |
15 | ### How to Use
16 | 1. Download the binary/code from [here](https://github.com/rootCircle/Zoom-AutoRecorder/releases).
17 | 2. Run the executable or the main.py file, as the case may be.
18 | - [Optional] You can make an executable from the steps given [here](#build-an-executable) if you are not using binary builds. Then revert to step 2.
19 | - You can even run it from the script main.py, provided that the requirements in [this section](#build-an-executable) are fulfilled. [Only Python and the libraries]
20 | 3. Create a service by entering the details in the app's Create Service Page.
21 | - If in doubt, you can watch the [walkthrough video](#video).
22 | 4. Make sure that all the [requirements](#requirements) are fulfilled.
23 | 5. On the App GUI's homepage, click on "Autoload Service" and then click "Start Service".
24 | - The Autoload Service automatically loads the most suitable meeting for the user to join.
25 | - Alternatively, you may use 'View Service' to open alternate meetings manually.
26 |
27 | > It is always recommended to test against a [test meeting](https://zoom.us/test) before attending a real one.
28 |
29 | BOOM! You are ready to use this software like a champ!
30 |
31 | ### Download
32 | [
](https://github.com/rootCircle/Zoom-AutoRecorder/releases)
35 |
36 |
37 | ### Requirements
38 | 1. [OBS Studio](https://obsproject.com/) is installed at the default installation location.
39 | - A scene in OBS Studio named "Zoom Meet" must be created with a recording set to the Zoom Meeting screen with an audio source and mic (if required). It is required only for the initial run, not regularly. Users just don't have to interfere with the "Zoom Meet" profile afterwards.
40 | - You can do a simple Google search to find out how to create a scene in OBS Studio.
41 |
42 | 2. The [Zoom Meeting](https://zoom.us/) App has been installed.
43 | - Log in if your meeting host requires it before you join the meeting.
44 | - Ensure that "join call with audio automatically" is set to be enabled.
45 | - Also, ensure that joining the meeting in full screen is set to automatically enabled for better recording.
46 | - Make sure that on joining the meeting, your microphone and webcam are disabled or turned off.
47 |
48 | ### Notes
49 | - The recording is supported right now only on Linux and Windows.
50 | - The app hasn't been tested on the Windows OS. Possible errors may exist.
51 | - It might be possible that bashCommand in LoadService.launchRecordingbyOBS may cause an error in the terminal. Users may need to manually modify it from [here](https://github.com/rootCircle/Zoom-AutoRecorder/blob/514c95635e8b22a5f08f8dc1da51645916b2f6f2/main.py#L1011).
52 | - Since recording through Linux is through Software Encoding, users may notice high CPU usage of OBS Studio. To fix it, the user may follow the steps given in the [comments](https://github.com/rootCircle/Zoom-AutoRecorder/blob/514c95635e8b22a5f08f8dc1da51645916b2f6f2/main.py#L4) of the main.py file [here](https://github.com/rootCircle/Zoom-AutoRecorder/blob/514c95635e8b22a5f08f8dc1da51645916b2f6f2/main.py#L1011).
53 |
54 | ### Build an executable
55 | - Make sure you have fulfilled the following requirements:
56 | 1. [Python v3](https://www.python.org/) is installed.
57 |
58 | 2. Python libraries: datetime, os, errno, sys, tkinter, PIL, time, sqlite3, subprocess, math, platform, webbrowser
59 | - (All libraries except PIL and ttkthemes are installed by default in Python).
60 | - PIL can be installed by using the given commands in Terminal/CMD.
61 | ```markdown
62 | pip install pillow ttkthemes
63 | OR
64 | pip3 install pillow ttkthemes
65 | ```
66 | - You can build your executable by using pyinstaller, Nuitka, or any other [compiler](https://pyoxidizer.readthedocs.io/en/stable/pyoxidizer_comparisons.html) that you like.
67 | - Then install your favourite compiler using their documentation.
68 | - For pyinstaller, run ```pip3 install pyinstaller``` or ```pip install pyinstaller```
69 | - For Nuitka, run ```pip3 install nuitka``` or ```pip install nuitka```, and then you'll need a [C compiler](https://nuitka.net/doc/user-manual.html#requirements), which will be automatically downloaded on the first run, if absent.
70 | - Open the Code directory in the File Explorer and open the Windows PowerShell or terminal at that location and run the given commands.
71 | - UNIX-based Systems (Linux, macOS, etc.)
72 | ```markdown
73 | pyinstaller --noconsole --windowed --add-data "data:data" -i"data/icon.ico" --collect-submodules PIL main.py
74 | ```
75 | - Windows
76 | ```markdown
77 | pyinstaller --noconsole --windowed --add-data "data;data" -i"data/icon.ico" --collect-submodules PIL main.py
78 | ```
79 | - [Not Recommended for Novice Users] Any operating system(s).Unstable; contains bugs
80 | ```markdown
81 | python3 -m nuitka --standalone --nofollow-imports --remove-output --no-pyi-file --include-package=PIL --include-module=ttkthemes --output-dir=app_build --enable-plugin=tk-inter --onefile --include-data-dir=data=data --windows-icon-from-ico=data/icon.ico main.py
82 | ```
83 | - The build will be created in the dist directory if using pyinstaller and app_build/main.dist if Nuitka is used.
84 | - Run
85 | - Nuitka on Windows or pyinstaller: Run main.exe or main
86 | - On Linux-based OS, Nuitka creates a shared-library file named 'main' which can be run by opening the terminal in main.dist and typing ```./main```
87 | - Also, see [Workaround for Nuitka Build](#workaround-for-nuitka-builds) for fixing the errors in Nuitka builds.
88 |
89 | ### Workaround for Nuitka Builds
90 | After building the binary, copy the 'ttkthemes' folder from the site-packages folder (in the lib directory) in your standard Python installation location to main.dist directory, to remove import errors.
91 | - To run the binary, open a terminal in the /app_build/main.dist directory, then type and run main.exe or ./main, depending on your OS.
92 |
93 | - Running may cause an error after the app window is closed. (Any suggestions/workarounds for this are welcome.)
94 | ```
95 | ............/zoomRecorder/app_build/main.dist/tkinter/__init__.py", line 4025, in __del__
96 | TypeError: catching classes that do not inherit from BaseException is not allowed
97 | )
98 | ```
99 | - Novice users are warned against using the Nuitka build because of its comparatively more complex installation than pyinstaller, increased build size, and present bugs in compiling the script on it. (Nuitka builds are faster performance-wise, btw.)
100 |
101 | ### ⚠ Warning
102 | - Since the app is in the early development phase, it might be possible that it may not work at all. Feel free to report any bugs if they exist.
103 | - The UI for the loadService screen is a bit messy on starting the service, which may be resolved in later updates.
104 |
105 | ### Roadmap
106 | 1. Check if the rejoin feature works.
107 | 2. Debug the app.
108 | 3. Make the app feel more responsive.
109 | 4. Add a properties section to set up the recording service, key functions, etc.
110 | 5. Support for the integrated screencast, as well as third-party recorders such as OBS and VLC (assistance needed!).
111 | 6. Improved usability.
112 | 7. Removal of the persistent loading screen bug.
113 | 8. Add support for modification and deletion of meeting services with repeatation flexibility in meetings.
114 |
115 | ### Preview
116 | [
](https://github.com/rootCircle/Zoom-AutoRecorder/tree/main/docs)
119 |
120 | ### Video
121 | [
](https://www.youtube.com/watch?v=Tu31bdrZyW0)
124 |
125 | ### Future Scope
126 |
127 | The future of this app includes several key features aimed at enhancing user experience and efficiency.
128 |
129 | - **Meeting Link Sharing:** Users will be able to share meeting links easily across platforms, making it straightforward to access and distribute meeting invites.
130 | - **Consensus Voting System:** The app will incorporate a voting mechanism to allow users to assess and verify the credibility of meeting links, ensuring that only relevant and high-quality meetings are included.
131 | - **Automatic Removal of Links:** Meetings with negative votes will be automatically removed from the list, maintaining a curated selection of valuable and verified meetings.
132 | - **Institution and Batch Filtering:** The app will categorize and filter meeting links based on users' institutions and academic batches, ensuring that only pertinent meetings are displayed.
133 | - **Student-Specific Aggregation:** A personalized list of meetings will be generated for each student, tailored to their specific needs and schedule.
134 |
135 | ### Alternatives
136 | - Warning: User discretion is required! I don't take any responsibility for any issues faced while using these alternatives.
137 | They are just for informational purposes only. I have not tested either of these, except for [AutoRecorder](https://github.com/SMazeikis/AutoRecorder).
138 | - I also need to inform users that a few of the below-mentioned scripts may require sensitive info, including but not limited to, your zoom passwords, etc. So proceed solely at your own risk!
139 | - It is worth mentioning that some of these alternatives work without using any 3rd party recording software, which is a great feature to look at!
140 | - Well-documented Repos
141 | - [OZ-Automatic-Recorder](https://github.com/tsamouridis/OZ-Automatic-Recorder)
142 | - [zoom-cli](https://github.com/tmonfre/zoom-cli)
143 | - [AutoZoomRecorder](https://github.com/Edward11235/AutoZoomRecorder)
144 | - [classRecorder](https://github.com/empobla/classRecorder)
145 | - [AutoRecorder](https://github.com/SMazeikis/AutoRecorder)
146 | - [zoom_recorder](https://github.com/nys99/zoom_recorder)
147 | - [Zoom-Meeting-and-Recording](https://github.com/cowsaysfoo/Zoom-Meeting-and-Recording)
148 | - [autozoom](https://github.com/rebekahchin/autozoom)
149 | - [zoom-OBS-Automation](https://github.com/mehedihasan1165/zoom-OBS-Automation)
150 | - [zoomrec](https://github.com/kastldratza/zoomrec)
151 | - [autozoom](https://github.com/Owl-dy/autozoom)
152 | - Other Repos
153 | - [automaticZoomRecorder](https://github.com/NKPmedia/automaticZoomRecorder)
154 | - [zoom-recorder](https://github.com/rabimba/zoom-recorder)
155 | - [zoom-recorder](https://github.com/aykborstelmann/zoom-recorder)
156 | - [zoom-recorder](https://github.com/v1nc/zoom-recorder)
157 | - [ZoomRecorder](https://github.com/pantherman594/ZoomRecorder)
158 | - [zoom-meeting-recorder](https://github.com/cty012/zoom-meeting-recorder)
159 | - [automaticZoomRecorder](https://github.com/royjan/automaticZoomRecorder)
160 | - [Zoom-Meeting-Recorder](https://github.com/MJovanovic40/Zoom-Meeting-Recorder)
161 | - Closed sourced and Non Free Software (Not Recommended)
162 | - [RecMaster](https://www.recmaster.net/)
163 |
164 | ### Thanks!
165 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/data/Additem.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/Additem.png
--------------------------------------------------------------------------------
/data/Loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/Loading.gif
--------------------------------------------------------------------------------
/data/autoloadService.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/autoloadService.png
--------------------------------------------------------------------------------
/data/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/banner.png
--------------------------------------------------------------------------------
/data/createService.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/createService.png
--------------------------------------------------------------------------------
/data/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/icon.ico
--------------------------------------------------------------------------------
/data/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/logo.png
--------------------------------------------------------------------------------
/data/logonew.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/logonew.png
--------------------------------------------------------------------------------
/data/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/setting.png
--------------------------------------------------------------------------------
/data/viewService.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/data/viewService.png
--------------------------------------------------------------------------------
/docs/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/docs/1.png
--------------------------------------------------------------------------------
/docs/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/docs/2.png
--------------------------------------------------------------------------------
/docs/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/docs/3.png
--------------------------------------------------------------------------------
/docs/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/docs/4.png
--------------------------------------------------------------------------------
/docs/screenshot_collage.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rootCircle/Zoom-AutoRecorder/ee56c027356aaf99b8c66ab3eef15d3efb0f29db/docs/screenshot_collage.jpg
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixed scrolling in linux (cross compatible maybe)
3 |
4 | In linux bashCommand uses software encoding
5 | which may be corrected by removing 'env LIBGL_ALWAYS_SOFTWARE=1'
6 | I haven't removed that because my GPU is not compatible with OBS Studio
7 |
8 | By default, if rejoinInterval = 0 implies no rejoin[Flag value]
9 | """
10 |
11 | LOG_FILE_FOLDER = "res"
12 | LOG_FILE = ""
13 | """
14 | Creating Log
15 | """
16 | try:
17 | from datetime import datetime, timedelta
18 | import os
19 | import errno
20 |
21 | try:
22 | os.makedirs(os.path.join(os.path.dirname(__file__), LOG_FILE_FOLDER))
23 | except OSError as er:
24 | if er.errno != errno.EEXIST:
25 | print(er)
26 |
27 | now = datetime.now()
28 | formatted_date = now.strftime("%Y-%m-%d %H:%M:%S")
29 |
30 | LOG_FILE = os.path.join(
31 | os.path.dirname(__file__), LOG_FILE_FOLDER, "log.log"
32 | ) # Log File init
33 |
34 | print(
35 | formatted_date,
36 | "============PROGRAM STARTS============",
37 | file=open(LOG_FILE, "a"),
38 | )
39 | except Exception as e:
40 | print("ERROR", e)
41 | import sys
42 |
43 | sys.exit()
44 | """
45 | Importing various libraries
46 | """
47 | try:
48 | import tkinter as tk
49 | from tkinter import messagebox, PhotoImage, StringVar, ttk
50 | from ttkthemes import ThemedStyle
51 | from PIL import Image, ImageTk
52 | import time
53 | import sqlite3
54 | import math
55 | import platform
56 | import threading
57 | except Exception as ex:
58 | try:
59 | os.makedirs(LOG_FILE_FOLDER)
60 | except OSError as e:
61 | if e.errno != errno.EEXIST:
62 | print(e)
63 | now = datetime.now()
64 | formatted_date = now.strftime("%Y-%m-%d %H:%M:%S")
65 | print(formatted_date, "Import Error\t", ex, file=open(LOG_FILE, "a"))
66 | import sys
67 |
68 | sys.exit()
69 |
70 | """
71 | Image Files Directories
72 | """
73 | LOGOImgDir = os.path.join(os.path.dirname(__file__), "data", "logonew.png")
74 | DEFAULTIMAGEDir = os.path.join(os.path.dirname(__file__), "data", "Additem.png")
75 | HOMEPAGEImgDir = os.path.join(os.path.dirname(__file__), "data", "logo.png")
76 | BANNERImgDir = os.path.join(os.path.dirname(__file__), "data", "banner.png")
77 |
78 | HOMEIconDir = [
79 | os.path.join(os.path.dirname(__file__), "data", "createService.png"),
80 | os.path.join(os.path.dirname(__file__), "data", "viewService.png"),
81 | os.path.join(os.path.dirname(__file__), "data", "autoloadService.png"),
82 | os.path.join(os.path.dirname(__file__), "data", "setting.png"),
83 | ]
84 |
85 |
86 | CHOOSENMEETDATA = {}
87 |
88 | LOADING_SCREENS = []
89 | LOADING_GIF = os.path.join(os.path.dirname(__file__), "data", "Loading.gif")
90 |
91 | DATABASE = os.path.join(os.path.dirname(__file__), "res", "services.db")
92 |
93 | LeastWaitTime = 0.5 # in second(min time for loading)
94 |
95 |
96 | class LoadingPage(tk.Label):
97 | """
98 | Doesn't support non-void function as its return is not synchronised
99 | """
100 |
101 | def __init__(self, master, filename):
102 | try:
103 | im = Image.open(filename)
104 | seq = []
105 | try:
106 | while 1:
107 | seq.append(im.copy())
108 | im.seek(len(seq)) # skip to next frame
109 | except EOFError:
110 | pass # we're done
111 |
112 | try:
113 | self.delay = im.info["duration"]
114 | except KeyError:
115 | self.delay = 100
116 |
117 | first = seq[0].convert("RGBA")
118 | self.frames = [ImageTk.PhotoImage(first)]
119 |
120 | tk.Label.__init__(self, master, image=self.frames[0])
121 |
122 | temp = seq[0]
123 | for image in seq[1:]:
124 | temp.paste(image)
125 | frame = temp.convert("RGBA")
126 | self.frames.append(ImageTk.PhotoImage(frame))
127 |
128 | self.idx = 0
129 |
130 | self.cancel = self.after(self.delay, self.play)
131 | except FileNotFoundError as e:
132 | Apptools.writeLog("File not found\nQuit Module Use" + str(e))
133 | os._exit(0)
134 |
135 | def play(self):
136 | try:
137 | self.config(image=self.frames[self.idx])
138 | self.idx += 1
139 | if self.idx == len(self.frames):
140 | self.idx = 0
141 | self.cancel = self.after(self.delay, self.play)
142 | except Exception as e:
143 | Apptools.writeLog(e)
144 |
145 | def start(self, grab=True):
146 | """
147 | grab will set toplevel active and root window inactive
148 | """
149 | try:
150 | if not LOADING_SCREENS:
151 | screen_width = self.winfo_screenwidth()
152 | screen_height = self.winfo_screenheight()
153 | gifhalfdimension = [50, 50]
154 | LOADING_SCREENS.append(tk.Toplevel(self))
155 | screen = LOADING_SCREENS[-1]
156 | try:
157 | screen.wm_overrideredirect(True)
158 | except:
159 | screen.overrideredirect(True)
160 |
161 | # Eval is threading Unsafe
162 | # self.eval(f'tk::PlaceWindow {str(screen)} center')
163 |
164 | # x = self.winfo_x()
165 | # y = self.winfo_y()
166 |
167 | screen.geometry(
168 | "+%d+%d"
169 | % (
170 | screen_width // 2 - gifhalfdimension[0],
171 | screen_height - 3 * gifhalfdimension[1],
172 | )
173 | )
174 | # screen.lift()
175 | screen.resizable(0, 0)
176 | if grab:
177 | screen.grab_set()
178 | LoadingPage.anim = LoadingPage(screen, LOADING_GIF)
179 | LoadingPage.anim.pack()
180 | else:
181 | time.sleep(0.1)
182 | LoadingPage.start(self, grab)
183 | except RecursionError as e:
184 | Apptools.writeLog(e)
185 |
186 | def stop_it(self):
187 | try:
188 | if LOADING_SCREENS:
189 | try:
190 | screen = LOADING_SCREENS[-1]
191 | LoadingPage.anim.after_cancel(LoadingPage.anim.cancel)
192 | screen.destroy()
193 | del LOADING_SCREENS[-1]
194 | except IndexError as er:
195 | Apptools.writeLog(er)
196 | globals()["LOADING_SCREENS"] = []
197 | else:
198 | time.sleep(0.1) # To avoid collission with other function calls
199 | LoadingPage.stop_it(self)
200 | except RecursionError as e:
201 | Apptools.writeLog(e)
202 |
203 | def perform(self, args):
204 | """
205 | args should include destination function
206 | order of args(root ,function,arguments)
207 | """
208 | t1 = threading.Thread(target=LoadingPage.start, args=(self,))
209 | t1.start()
210 | t2 = threading.Thread(target=LoadingPage.fxn, args=args)
211 | t2.start()
212 |
213 | def fxn(self, *args):
214 | t1 = time.time()
215 | function = args[0]
216 | arguments = args[1:]
217 | function(*arguments)
218 | t2 = time.time()
219 |
220 | diff = round(t2 - t1, 1)
221 | if diff < LeastWaitTime:
222 | time.sleep(LeastWaitTime - diff)
223 | LoadingPage.stop_it(self)
224 |
225 |
226 | class Apptools:
227 | def sqlite3_run(self, *sqlite_query):
228 | """
229 | The function will take multiple queries and output the result in
230 | form of list such that output of Query1 lies at index 0 ,Query2
231 | at index 1 and so on.
232 | """
233 | output = []
234 | try:
235 | sqliteConnection = sqlite3.connect(DATABASE)
236 | cursor = sqliteConnection.cursor()
237 | for arguments in sqlite_query:
238 | if isinstance(arguments, (list, tuple)):
239 | if len(arguments) == 2:
240 | query, val = arguments
241 | else:
242 | query = arguments[0]
243 | val = ()
244 | else:
245 | query = arguments
246 | val = ()
247 | cursor.execute(query, tuple(val))
248 | sqliteConnection.commit()
249 | output.append(cursor.fetchall())
250 | cursor.close()
251 | return output
252 | except sqlite3.Error as error:
253 | print(error)
254 | messagebox.showwarning("Error", error)
255 | finally:
256 | if sqliteConnection:
257 | sqliteConnection.close()
258 |
259 | def image_Show(
260 | self,
261 | Dir,
262 | xrow,
263 | ycolumn,
264 | width,
265 | height,
266 | mode="grid",
267 | rspan=1,
268 | cspan=1,
269 | px=0,
270 | py=0,
271 | ):
272 | try:
273 | Photo = Image.open(Dir)
274 | except Exception as e:
275 | Apptools.writeLog(e)
276 | Photo = Image.open(DEFAULTIMAGEDir)
277 | Photo = Photo.resize((width, height))
278 | render = ImageTk.PhotoImage(Photo)
279 | img = tk.Label(self, image=render)
280 | img.image = render
281 | if mode == "grid":
282 | img.grid(
283 | row=xrow,
284 | column=ycolumn,
285 | rowspan=rspan,
286 | columnspan=cspan,
287 | padx=px,
288 | pady=py,
289 | sticky="ns",
290 | )
291 | else:
292 | img.place(x=xrow, y=ycolumn, relx=0, rely=0)
293 |
294 | def is_not_null(*text):
295 | if len(text) != 0:
296 | for msg in text:
297 | if msg == "" or (isinstance(msg, str) and msg.strip() == ""):
298 | return False
299 | return True
300 | else:
301 | return False
302 |
303 | def check_digit(*text):
304 | try:
305 | for i in text:
306 | x = float(i)
307 | return True
308 | except Exception as e:
309 | return False
310 |
311 | def writeLog(msg):
312 | now = datetime.now()
313 | formatted_date = now.strftime("%Y-%m-%d %H:%M:%S")
314 | try:
315 | os.makedirs(LOG_FILE_FOLDER)
316 | except OSError as e:
317 | if e.errno != errno.EEXIST:
318 | Apptools.writeLog(e)
319 | f = open(LOG_FILE, "a")
320 | print(formatted_date, msg, file=f)
321 | f.flush()
322 | f.close()
323 |
324 |
325 | class App(tk.Tk):
326 | def __init__(self):
327 | tk.Tk.__init__(self)
328 | self._frame = None
329 | self.switch_frame(HomePage)
330 |
331 | def switch_frame(self, frame_class):
332 | new_frame = frame_class(self)
333 | if self._frame is not None:
334 | self._frame.destroy()
335 | self._frame = new_frame
336 | self._frame.pack()
337 |
338 |
339 | class ScrollableFrame(ttk.Frame):
340 | def __init__(self, container, cw=775, ch=500, showscrlbar=True, *args, **kwargs):
341 | super().__init__(container, *args, **kwargs)
342 | self.canvas = tk.Canvas(self, bg="#333333", highlightthickness=0)
343 | self.canvas.config(scrollregion=(0, 0, 900, 1000))
344 | if showscrlbar:
345 | vscrollbar = ttk.Scrollbar(
346 | self, orient="vertical", command=self.canvas.yview
347 | )
348 | hscrollbar = ttk.Scrollbar(
349 | self, orient="horizontal", command=self.canvas.xview
350 | )
351 |
352 | s = ttk.Style()
353 | s.configure("TFrame", background="#333333")
354 |
355 | self.scrollable_frame = ttk.Frame(self.canvas)
356 |
357 | self.scrollable_frame.bind(
358 | "",
359 | lambda e: self.canvas.configure(scrollregion=self.canvas.bbox("all")),
360 | )
361 | self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw")
362 | self._canvasWidth = cw
363 | self._canvasHeight = ch
364 | self.canvas.config(
365 | width=self._canvasWidth,
366 | height=self._canvasHeight,
367 | scrollregion=(0, 0, self._canvasWidth, self._canvasHeight),
368 | )
369 | if showscrlbar:
370 | self.canvas.configure(
371 | yscrollcommand=vscrollbar.set, xscrollcommand=hscrollbar.set
372 | )
373 |
374 | self.canvas.grid(row=0, column=0)
375 | if showscrlbar:
376 | vscrollbar.grid(row=0, column=1, rowspan=2, sticky="nse")
377 | hscrollbar.grid(row=1, column=0, sticky="wse")
378 |
379 | self.canvas.bind("", self._bound_to_mousewheel)
380 | self.canvas.bind("", self._unbound_to_mousewheel)
381 |
382 | return None
383 |
384 | def _bound_to_mousewheel(self, event):
385 | globals()["count"] = 0
386 | self.canvas.bind("", self.MouseWheelHandler)
387 | self.canvas.bind("", self.MouseWheelHandler)
388 | self.canvas.bind("", self.MouseWheelHandler)
389 |
390 | def _unbound_to_mousewheel(self, event):
391 | self.canvas.unbind("")
392 | self.canvas.unbind("")
393 | self.canvas.unbind("")
394 |
395 | def MouseWheelHandler(self, event):
396 | if event.num == 5 or event.delta < 0:
397 | self.canvas.yview_scroll(1, "units")
398 | return
399 | self.canvas.yview_scroll(-1, "units")
400 |
401 |
402 | class HomePage(tk.Frame):
403 | def __init__(self, master):
404 | tk.Frame.__init__(self, master, bg="#333333")
405 | style = ThemedStyle(self)
406 | style.set_theme("default")
407 | self.makeWidgets(master)
408 |
409 | def makeWidgets(self, master):
410 | lbl = tk.Label(self, text="Zoom Auto Recorder")
411 | lbl.config(font=("Segoe UI", 30), fg="#E8E8E8", bg="#333333")
412 | lbl.grid(row=0, column=0, columnspan=5, sticky="ew")
413 |
414 | Apptools.image_Show(self, BANNERImgDir, 1, 0, 650, 150, cspan=2, py=10)
415 |
416 | row, col = 2, 0
417 | for i in range(len(HOMEIconDir)):
418 | try:
419 | Photo = Image.open(HOMEIconDir[i])
420 | Photo = Photo.resize((200, 100))
421 | render = ImageTk.PhotoImage(Photo)
422 | except Exception as e:
423 | Photo = Image.open(DEFAULTIMAGEDir)
424 | Photo = Photo.resize((200, 200))
425 | render = ImageTk.PhotoImage(Photo)
426 | Apptools.writeLog(e)
427 |
428 | imgbtnfs = tk.Button(self, image=render)
429 | imgbtnfs.image = render
430 | imgbtnfs.config(bg="white")
431 | imgbtnfs.grid(row=row, column=col, padx=10, pady=10)
432 | imgbtnfs.config(command=lambda x=i: self.framechange(master, x))
433 |
434 | if col == 1:
435 | row += 1
436 | col = 0
437 | else:
438 | col += 1
439 |
440 | def framechange(self, master, x):
441 | if x < len(HOMEIconDir):
442 | master.switch_frame(
443 | [CreateService, ViewService, LoadService, AppSettings][x]
444 | )
445 | else:
446 | messagebox.showwarning(
447 | "Warning", "Some Error have occurred!\nContact devs with logs!"
448 | )
449 |
450 |
451 | class CreateService(tk.Frame):
452 | def __init__(self, master):
453 | tk.Frame.__init__(self, master, bg="#333333")
454 | style = ThemedStyle(self)
455 | style.set_theme("equilux")
456 | self.makeWidgets(master)
457 |
458 | def makeWidgets(self, master):
459 | Apptools.image_Show(self, HOMEPAGEImgDir, 0, 0, 300, 450, rspan=17)
460 |
461 | lbl = tk.Label(self, text="Zoom Auto Recorder")
462 | lbl.config(font=("Segoe UI", 30), fg="#E8E8E8", bg="#333333")
463 | lbl.grid(row=1, column=1, columnspan=5, sticky="ew")
464 |
465 | lbl = tk.Label(self, text="Enter Details")
466 | lbl.config(font=("Segoe UI", 18), fg="#E8E8E8", bg="#333333")
467 | lbl.grid(row=2, column=1, columnspan=5, pady=20, sticky="ew")
468 |
469 | lbl = tk.Label(self, text="Nickname")
470 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
471 | lbl.grid(row=3, column=1, sticky="ew", pady=5, padx=5)
472 |
473 | nickname = tk.Entry(self, fg="#E8E8E8", bg="#333333", highlightcolor="grey")
474 | nickname.grid(row=3, column=2, sticky="ew", columnspan=3)
475 |
476 | lbl = tk.Label(self, text="Meeting ID")
477 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
478 | lbl.grid(row=4, column=1, sticky="ew", pady=5, padx=5)
479 |
480 | meetID = tk.Entry(self, fg="#E8E8E8", bg="#333333", highlightcolor="grey")
481 | meetID.grid(row=4, column=2, sticky="ew", columnspan=3)
482 |
483 | lbl = tk.Label(self, text="Meeting Password")
484 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
485 | lbl.grid(row=5, column=1, padx=5, sticky="ew", pady=5)
486 |
487 | meetPassword = tk.Entry(
488 | self, show="●", fg="#E8E8E8", bg="#333333", highlightcolor="grey"
489 | )
490 | meetPassword.grid(row=5, column=2, sticky="ew", columnspan=3)
491 |
492 | lbl = tk.Label(self, text="Starting time\nhh:mm")
493 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
494 | lbl.grid(row=6, column=1, sticky="ew", padx=5, pady=5)
495 |
496 | startTimeHour = tk.Entry(
497 | self, fg="#E8E8E8", bg="#333333", highlightcolor="grey", width=10
498 | )
499 | startTimeHour.grid(row=6, column=2, sticky="ew", padx=3)
500 |
501 | startTimeMinute = tk.Entry(
502 | self, fg="#E8E8E8", bg="#333333", highlightcolor="grey", width=10
503 | )
504 | startTimeMinute.grid(row=6, column=3, sticky="ew")
505 |
506 | startTime_am_pm = tk.StringVar(self, "AM")
507 | options = ["AM", "AM", "PM"]
508 | Menu = ttk.OptionMenu(self, startTime_am_pm, *options)
509 | Menu.grid(row=6, column=4)
510 |
511 | lbl = tk.Label(self, text="Meeting Length\nin min")
512 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
513 | lbl.grid(row=7, column=1, sticky="ew", padx=5, pady=5)
514 |
515 | meetLength = tk.Entry(self, fg="#E8E8E8", bg="#333333", highlightcolor="grey")
516 | meetLength.grid(row=7, column=2, sticky="ew", columnspan=3)
517 |
518 | """
519 | Default Engine
520 | Update Frequency : Every 1 minute
521 | Warmup Time : 5 minutes
522 | """
523 | self.useCustomEngine = StringVar(self, "False")
524 | cbtn = ttk.Checkbutton(
525 | self,
526 | text="Use Custom Engine?",
527 | variable=self.useCustomEngine,
528 | onvalue="True",
529 | offvalue="False",
530 | )
531 | cbtn.config(command=self.showCustomEngine)
532 | cbtn.grid(row=8, column=1, sticky="ew", padx=5, pady=5)
533 |
534 | self.isFreeMeet = StringVar(self, "False")
535 | cbtn = ttk.Checkbutton(
536 | self,
537 | text="Using Free Meet?",
538 | variable=self.isFreeMeet,
539 | onvalue="True",
540 | offvalue="False",
541 | )
542 | cbtn.config(command=self.showFreeDialog)
543 | cbtn.grid(row=8, column=2, sticky="ew", padx=5, pady=5, columnspan=2)
544 |
545 | recordMeet = StringVar(self, "True")
546 | rec = ttk.Checkbutton(
547 | self,
548 | text="Record Meeting?",
549 | variable=recordMeet,
550 | onvalue="True",
551 | offvalue="False",
552 | )
553 | rec.grid(row=9, column=2, sticky="ew", padx=5, pady=5, columnspan=2)
554 |
555 | btn = tk.Button(
556 | self,
557 | text="Create Service",
558 | command=lambda: self.createService(
559 | master,
560 | data={
561 | "nickname": nickname.get(),
562 | "meetID": meetID.get(),
563 | "meetPassword": meetPassword.get(),
564 | "startTimeHour": startTimeHour.get(),
565 | "startTimeMinute": startTimeMinute.get(),
566 | "startTime_am_pm": startTime_am_pm.get(),
567 | "rejoinInterval": self.rejoinInterval.get()
568 | if self.isFreeMeet.get() == "True"
569 | else "0",
570 | "updateFrequency": self.updateFrequency.get()
571 | if self.useCustomEngine.get() == "True"
572 | else "1",
573 | "warmUpDuration": self.warmUpDuration.get()
574 | if self.useCustomEngine.get() == "True"
575 | else "5",
576 | "meetLength": meetLength.get(),
577 | "recordMeet": recordMeet.get(),
578 | },
579 | ),
580 | )
581 | btn.config(
582 | bg="#1F8EE7", padx=7, pady=3, fg="#E8E8E8", bd=0, activebackground="#3297E9"
583 | )
584 | btn.grid(row=13, column=5, padx=15, pady=15, sticky="nw")
585 |
586 | btn = tk.Button(
587 | self, text="Go to Homepage", command=lambda: master.switch_frame(HomePage)
588 | )
589 | btn.config(
590 | bg="#1F8EE7", padx=7, pady=3, fg="#E8E8E8", bd=0, activebackground="#3297E9"
591 | )
592 | btn.grid(row=14, column=1, columnspan=5, padx=15, pady=15, sticky="nsew")
593 |
594 | def showCustomEngine(self):
595 | if self.useCustomEngine.get() == "True":
596 | self.CElbl1 = tk.Label(self, text="Warmup duration\nin min")
597 | self.CElbl1.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
598 | self.CElbl1.grid(row=10, column=1, sticky="ew", padx=5, pady=5)
599 |
600 | self.warmUpDuration = tk.Entry(
601 | self, fg="#E8E8E8", bg="#333333", highlightcolor="grey"
602 | )
603 | self.warmUpDuration.grid(row=10, column=2, sticky="ew", columnspan=2)
604 |
605 | self.CElbl2 = tk.Label(self, text="Update frequency\nin min")
606 | self.CElbl2.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
607 | self.CElbl2.grid(row=11, column=1, sticky="ew", padx=5, pady=5)
608 |
609 | self.updateFrequency = tk.Entry(
610 | self, fg="#E8E8E8", bg="#333333", highlightcolor="grey"
611 | )
612 | self.updateFrequency.grid(row=11, column=2, sticky="ew", columnspan=2)
613 | else:
614 | try:
615 | self.updateFrequency.destroy()
616 | self.warmUpDuration.destroy()
617 | self.CElbl1.destroy()
618 | self.CElbl2.destroy()
619 | except:
620 | pass
621 |
622 | def showFreeDialog(self):
623 | if self.isFreeMeet.get() == "True":
624 | self.FDlbl = tk.Label(self, text="Rejoin Time\nin min\n(If free user)")
625 | self.FDlbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
626 | self.FDlbl.grid(row=12, column=1, sticky="ew", padx=5, pady=5)
627 |
628 | self.rejoinInterval = tk.Entry(
629 | self, fg="#E8E8E8", bg="#333333", highlightcolor="grey"
630 | )
631 | self.rejoinInterval.grid(row=12, column=2, sticky="ew", columnspan=2)
632 | else:
633 | try:
634 | self.rejoinInterval.destroy()
635 | self.FDlbl.destroy()
636 | except:
637 | pass
638 |
639 | def createService(self, master, data):
640 | isValidData = self.validateData(data)
641 | if isValidData == 1:
642 | if data["rejoinInterval"] is None:
643 | data["rejoinInterval"] = "0"
644 | data["startTimeHour"] = int(data["startTimeHour"])
645 | data["startTimeHour"] = (
646 | data["startTimeHour"]
647 | if data["startTime_am_pm"] == "AM" or data["startTimeHour"] == 12
648 | else data["startTimeHour"] + 12
649 | )
650 | del data["startTime_am_pm"]
651 | if self.writeDataToStorage(data) is not None:
652 | messagebox.showinfo("Success", "Services created successfully!")
653 | return True
654 |
655 | else:
656 | if isValidData == 0:
657 | messagebox.showwarning("Warning", "Fill all the forms correctly")
658 | elif isValidData == -1:
659 | messagebox.showwarning("Warning", "Please enter valid numeral value")
660 | elif isValidData == -2:
661 | messagebox.showwarning("Warning", "Please enter valid time range")
662 | elif isValidData == -3:
663 | messagebox.showwarning(
664 | "Warning", "Update frequency should be less than warmup time."
665 | )
666 | elif isValidData == -4:
667 | messagebox.showwarning(
668 | "Warning", "Update frequency should be non zero."
669 | )
670 | elif isValidData == -5:
671 | messagebox.showwarning("Warning", "Invalid Meeting Length.")
672 |
673 | def validateData(self, data):
674 | for key in data.keys():
675 | if (
676 | not (data[key] and Apptools.is_not_null(data[key]))
677 | and key != "rejoinInterval"
678 | ):
679 | return 0
680 | elif key not in [
681 | "meetPassword",
682 | "nickname",
683 | "recordMeet",
684 | "startTime_am_pm",
685 | ] and not (data[key].isdigit()):
686 | if key == "rejoinInterval" and not (data[key]):
687 | continue
688 | return -1
689 |
690 | else:
691 | if not (0 <= int(data["startTimeHour"]) <= 12) or (
692 | int(data["startTimeHour"]) == 12 and data["startTime_am_pm"] == "AM"
693 | ):
694 | return -2
695 | if not (0 <= int(data["startTimeMinute"]) < 60):
696 | return -2
697 | if int(data["updateFrequency"]) >= int(data["warmUpDuration"]):
698 | return -3
699 | if int(data["updateFrequency"]) == 0:
700 | return -4
701 | if int(data["meetLength"]) <= 0:
702 | return -5
703 | return 1
704 |
705 | def writeDataToStorage(self, data):
706 | DEFAULTQUERY = (
707 | "CREATE TABLE IF NOT EXISTS SERVICES("
708 | "nickname TEXT NOT NULL,"
709 | " meetID TEXT NOT NULL PRIMARY KEY,"
710 | " meetPassword TEXT NOT NULL,"
711 | " startTimeHour INT NOT NULL,"
712 | " startTimeMinute INT Not Null,"
713 | " rejoinInterval INTEGER NOT NULL,"
714 | " updateFrequency INTEGER NOT NULL,"
715 | " warmUpDuration INTEGER NOT NULL,"
716 | " meetLength INTEGER NOT NULL,"
717 | " recordMeet TEXT NOT NULL);"
718 | )
719 |
720 | QUERYF1 = "select meetID from SERVICES where meetID = ?;"
721 | out = Apptools.sqlite3_run(self, DEFAULTQUERY, (QUERYF1, (data["meetID"],)))
722 | if out is not None:
723 | if not out[1]:
724 | QUERYF2 = (
725 | "Insert into SERVICES (nickname, meetID, meetPassword, "
726 | "startTimeHour, startTimeMinute, rejoinInterval,updateFrequency,"
727 | "warmUpDuration,meetLength, recordMeet) values(?,?,?,?,?,?,?,?,?,?);"
728 | )
729 | return Apptools.sqlite3_run(self, (QUERYF2, data.values()))
730 | elif out[1]:
731 | messagebox.showwarning("Warning", "Duplicate Meeting ID!")
732 |
733 | def createAndLoadService(self, master, data):
734 | if self.createService(master, data):
735 | globals()["CHOOSENMEETDATA"] = data
736 | master.switch_frame(LoadService)
737 |
738 |
739 | class ViewService(tk.Frame):
740 | def __init__(self, master):
741 | tk.Frame.__init__(self, master, bg="#333333")
742 | style = ThemedStyle(self)
743 | style.set_theme("black")
744 | self.makeWidgets(master)
745 |
746 | def makeWidgets(self, master):
747 | Apptools.image_Show(self, HOMEPAGEImgDir, 0, 0, 300, 450, rspan=10)
748 |
749 | lbl = tk.Label(self, text="Active Services")
750 | lbl.config(font=("Segoe UI", 30), fg="#E8E8E8", bg="#333333")
751 | lbl.grid(row=0, column=1, sticky="ew")
752 |
753 | sep = ttk.Separator(self, orient="horizontal")
754 | sep.grid(row=1, column=1, sticky="ew")
755 |
756 | frame = ScrollableFrame(self, cw=400, ch=300)
757 | out = self.getDataFromStorage()
758 | if out:
759 | r = 0
760 | for data in out:
761 | mappedData = {
762 | "nickname": data[0],
763 | "meetID": data[1],
764 | "meetPassword": data[2],
765 | "startTimeHour": data[3],
766 | "startTimeMinute": data[4],
767 | "rejoinInterval": data[5],
768 | "updateFrequency": data[6],
769 | "warmUpDuration": data[7],
770 | "meetLength": data[8],
771 | "recordMeet": data[9],
772 | }
773 |
774 | txt = "Nickname : " + mappedData["nickname"].title().strip()
775 | txt += "\nMeeting ID : " + mappedData["meetID"]
776 |
777 | am_pm = "AM" if mappedData["startTimeHour"] < 12 else "PM"
778 | startshowhour = (
779 | mappedData["startTimeHour"]
780 | if am_pm == "AM" or mappedData["startTimeHour"] == 12
781 | else mappedData["startTimeHour"] - 12
782 | )
783 | startshowmin = (
784 | mappedData["startTimeMinute"]
785 | if mappedData["startTimeMinute"] != 0
786 | else "00"
787 | )
788 | txt += "\nStarting Time : {0}:{1} {2}".format(
789 | startshowhour, startshowmin, am_pm
790 | )
791 |
792 | txt += "\nMeeting Length : {0} min\n".format(mappedData["meetLength"])
793 | txt += (
794 | "No recording"
795 | if mappedData["recordMeet"] != "True"
796 | else "Meeting will be recorded!"
797 | )
798 |
799 | btn = tk.Button(frame.scrollable_frame, text=txt)
800 | btn.config(bg="#1F8EE7", padx=3, fg="#E8E8E8", bd=0, justify=tk.LEFT)
801 | btn.config(activebackground="#3297E9", font=("Segoe Print", 15))
802 | btn.grid(row=r, column=0, padx=10, pady=10, sticky="w")
803 |
804 | btn.config(command=lambda x=mappedData: self.framechange(master, x))
805 | r += 1
806 |
807 | else:
808 | lbl = tk.Label(frame.scrollable_frame, text="No Entry Found :-(")
809 | lbl.config(font=("Segoe Print", 30), fg="#E8E8E8", bg="#333333")
810 | lbl.grid(row=0, column=2, columnspan=4, padx=50, pady=50)
811 |
812 | frame.grid(row=2, column=1)
813 |
814 | btn = tk.Button(
815 | self,
816 | text="AutoLoad Suitable Service",
817 | command=lambda: self.autoload(master, out),
818 | )
819 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
820 | btn.grid(row=3, column=1, padx=5, pady=10)
821 |
822 | btn = tk.Button(
823 | self, text="Go to Homepage", command=lambda: master.switch_frame(HomePage)
824 | )
825 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
826 | btn.grid(row=4, column=1, padx=5, pady=10)
827 |
828 | lbl = tk.Label(self, text="Create Service")
829 | lbl.config(font=("Segoe UI", 15), fg="#E8E8E8", bg="#333333")
830 | lbl.config(cursor="hand2")
831 | lbl.bind("", lambda e: master.switch_frame(CreateService))
832 | lbl.grid(row=5, column=1, sticky="ew", pady=10)
833 |
834 | def autoload(self, master, out, externalCall=False):
835 | if out:
836 | earliestCall = out[0]
837 | currentTime = datetime.now().time().hour * 60 + datetime.now().time().minute
838 | for data in out:
839 | startTimeData = int(data[3]) * 60 + int(data[4])
840 | endTimeData = startTimeData + int(data[8])
841 |
842 | startTimeEarliestCall = int(earliestCall[3]) * 60 + int(earliestCall[4])
843 | endTimeEarliestCall = startTimeEarliestCall + int(earliestCall[8])
844 |
845 | if endTimeData >= currentTime:
846 | earliestCall = (
847 | earliestCall
848 | if currentTime <= endTimeEarliestCall
849 | and startTimeEarliestCall < startTimeData
850 | else data
851 | )
852 |
853 | endTimeEarliestCall = (
854 | int(earliestCall[3]) * 60 + int(earliestCall[4]) + int(earliestCall[8])
855 | )
856 | if endTimeEarliestCall >= currentTime:
857 | mappedData = {
858 | "nickname": earliestCall[0],
859 | "meetID": earliestCall[1],
860 | "meetPassword": earliestCall[2],
861 | "startTimeHour": earliestCall[3],
862 | "startTimeMinute": earliestCall[4],
863 | "rejoinInterval": earliestCall[5],
864 | "updateFrequency": earliestCall[6],
865 | "warmUpDuration": earliestCall[7],
866 | "meetLength": earliestCall[8],
867 | "recordMeet": earliestCall[9],
868 | }
869 | globals()["CHOOSENMEETDATA"] = mappedData
870 | if not externalCall:
871 | master.switch_frame(LoadService)
872 | elif not externalCall:
873 | messagebox.showinfo(
874 | "Warning", "Services Expired\nCome tomorrow or create one!"
875 | )
876 | elif not externalCall:
877 | messagebox.showwarning("Warning", "No Service Exists\nCreate One!")
878 |
879 | def getDataFromStorage(self):
880 | DEFAULTQUERY = (
881 | "CREATE TABLE IF NOT EXISTS SERVICES("
882 | "nickname TEXT NOT NULL,"
883 | " meetID TEXT NOT NULL PRIMARY KEY,"
884 | " meetPassword TEXT NOT NULL,"
885 | " startTimeHour INT NOT NULL,"
886 | " startTimeMinute INT Not Null,"
887 | " rejoinInterval INTEGER NOT NULL,"
888 | " updateFrequency INTEGER NOT NULL,"
889 | " warmUpDuration INTEGER NOT NULL,"
890 | " meetLength INTEGER NOT NULL,"
891 | " recordMeet TEXT NOT NULL);"
892 | )
893 |
894 | QUERYF1 = "select * from SERVICES;"
895 | out = Apptools.sqlite3_run(self, DEFAULTQUERY, QUERYF1)
896 | if out is not None:
897 | return out[1]
898 |
899 | @staticmethod
900 | def framechange(master, data):
901 | globals()["CHOOSENMEETDATA"] = data
902 | master.switch_frame(LoadService)
903 |
904 |
905 | class LoadService(tk.Frame):
906 | def __init__(self, master):
907 | tk.Frame.__init__(self, master, bg="#333333")
908 | style = ThemedStyle(self)
909 | style.set_theme("default")
910 | self.makeWidgets(master)
911 |
912 | def makeWidgets(self, master):
913 | lbl = tk.Label(self, text="Loading Meeting...")
914 | lbl.config(font=("Segoe UI", 30), fg="#E8E8E8", bg="#333333")
915 | lbl.grid(row=0, column=0, sticky="ew")
916 |
917 | sep = ttk.Separator(self, orient="horizontal")
918 | sep.grid(row=1, column=1, sticky="ew")
919 |
920 | if not CHOOSENMEETDATA:
921 | out = ViewService.getDataFromStorage(self)
922 | ViewService.autoload(self, master, out, externalCall=True)
923 |
924 | if CHOOSENMEETDATA:
925 | consoleText = "Initialising..."
926 |
927 | console = tk.Label(self, text=consoleText)
928 | console.config(font=("Segoe UI", 6), fg="#E8E8E8", bg="#333333")
929 | console.grid(row=2, column=0, sticky="nsew")
930 |
931 | am_pm = "AM" if CHOOSENMEETDATA["startTimeHour"] < 12 else "PM"
932 | startshowhour = (
933 | CHOOSENMEETDATA["startTimeHour"]
934 | if am_pm == "AM" or CHOOSENMEETDATA["startTimeHour"] == 12
935 | else CHOOSENMEETDATA["startTimeHour"] - 12
936 | )
937 | startshowmin = (
938 | CHOOSENMEETDATA["startTimeMinute"]
939 | if CHOOSENMEETDATA["startTimeMinute"] != 0
940 | else "00"
941 | )
942 |
943 | lbl = tk.Label(
944 | self,
945 | text="Waiting for the meeting to start at time {0}:{1} {2}".format(
946 | startshowhour, startshowmin, am_pm
947 | ),
948 | )
949 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
950 | lbl.grid(row=3, column=0, sticky="ew")
951 |
952 | txt = "Nickname : " + CHOOSENMEETDATA["nickname"].title().strip()
953 | txt += "\nMeeting ID : " + CHOOSENMEETDATA["meetID"]
954 | txt += "\nStarting Time : {0}:{1} {2}".format(
955 | startshowhour, startshowmin, am_pm
956 | )
957 | txt += "\nMeeting Length : {0} min".format(CHOOSENMEETDATA["meetLength"])
958 |
959 | btn = tk.Button(self, text="Meeting Details:\n" + txt)
960 | btn.config(font=("Segoe UI", 15), fg="#E8E8E8", bg="#333333")
961 | btn.grid(row=5, column=0, sticky="ew")
962 |
963 | consoleText += "\n[Loading 10%] Create Zoom Link"
964 | console.config(text=consoleText)
965 |
966 | MeetLink = self.createMeetLink(
967 | CHOOSENMEETDATA["meetID"], CHOOSENMEETDATA["meetPassword"]
968 | )
969 | if MeetLink:
970 | consoleText += "\n[Loading 20%] Zoom Link Created\n" + MeetLink
971 | console.config(text=consoleText)
972 |
973 | consoleText += (
974 | "\n[Loading 30%] Computing Time Ranges for triggering Response"
975 | )
976 | console.config(text=consoleText)
977 |
978 | timeRange = self.checkTimeRange(CHOOSENMEETDATA)
979 |
980 | if timeRange:
981 | consoleText += "\n[Loading 40%] Time Range Generated"
982 | console.config(text=consoleText)
983 |
984 | consoleText += "\n[Loading 50%] Validating Inputted Data"
985 | console.config(text=consoleText)
986 |
987 | consoleText += "\n[Loading 100%] Initialised Successfully\nClick Start Service!"
988 | console.config(text=consoleText)
989 |
990 | else:
991 | consoleText += "\n[Loading 30%] Oops Error Occurred while creating time range\nRetry Later"
992 | console.config(text=consoleText)
993 | else:
994 | consoleText += "\n[Loading 10%] Oops Error Occurred while creating Meet link\nRetry Later"
995 | console.config(text=consoleText)
996 |
997 | btn = tk.Button(
998 | self,
999 | text="Start Service",
1000 | command=lambda: self.processing(
1001 | MeetLink, timeRange, console, consoleText
1002 | ),
1003 | )
1004 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
1005 | btn.grid(row=6, column=0, padx=5, pady=10)
1006 |
1007 | btn = tk.Button(
1008 | self,
1009 | text="Reload Page",
1010 | command=lambda: master.switch_frame(LoadService),
1011 | )
1012 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
1013 | btn.grid(row=7, column=0, padx=5, pady=10)
1014 | else:
1015 | lbl = tk.Label(self, text="No meeting selected!\nChoose one")
1016 | lbl.config(font=("Segoe UI", 15), fg="#E8E8E8", bg="#333333")
1017 | lbl.grid(row=2, column=0, sticky="ew")
1018 |
1019 | btn = tk.Button(
1020 | self, text="Go to Home", command=lambda: master.switch_frame(HomePage)
1021 | )
1022 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
1023 | btn.grid(row=8, column=0, padx=5, pady=10)
1024 |
1025 | sep = ttk.Separator(self, orient="horizontal")
1026 | sep.grid(row=9, column=0, sticky="ew")
1027 |
1028 | lbl = tk.Label(
1029 | self,
1030 | text="If you close the app even then OBS Studio recording "
1031 | "will continue \nif initiated. (to avoid conflict of interest)"
1032 | "\nYou need to manually close it or after a pre-assigned value"
1033 | " decided by threading module.\n"
1034 | "(NEEDS PROPER REVIEW)[UNSTABLE]",
1035 | )
1036 | lbl.config(font=("Segoe UI", 8), fg="#E8E8E8", bg="#333333")
1037 | lbl.grid(row=10, column=0, sticky="ew")
1038 |
1039 | def processing(self, *args):
1040 | LoadingPage.perform(self, (self, self.service, *args))
1041 |
1042 | def service(self, meetLink, timeRange, console, consoleText):
1043 | if meetLink and timeRange:
1044 | consoleText += "\nInitialising Service"
1045 | console.config(text=consoleText)
1046 |
1047 | currentTime = datetime.now().time().hour * 60 + datetime.now().time().minute
1048 |
1049 | counter = True
1050 | while currentTime <= timeRange[0][1]:
1051 | currentTime = (
1052 | datetime.now().time().hour * 60 + datetime.now().time().minute
1053 | )
1054 | if timeRange[0][0] <= currentTime <= timeRange[0][1]:
1055 | if counter:
1056 | counter = False
1057 | t3 = threading.Thread(
1058 | target=LoadService.launchRecordingbyOBS,
1059 | args=(self, CHOOSENMEETDATA["recordMeet"]),
1060 | )
1061 | t3.start()
1062 |
1063 | if self.launchMeeting(meetLink, timeRange):
1064 | rejoinInterval = CHOOSENMEETDATA["rejoinInterval"]
1065 | if (
1066 | Apptools.check_digit(rejoinInterval)
1067 | and int(rejoinInterval) > 0
1068 | ):
1069 | rejoinInterval = int(rejoinInterval)
1070 | rejoinTimeLength = (
1071 | rejoinInterval
1072 | - (currentTime - timeRange[0][0]) % rejoinInterval
1073 | )
1074 | else:
1075 | rejoinTimeLength = 0
1076 | timeLeft = timeRange[0][1] - currentTime
1077 |
1078 | sleepDuration = (
1079 | rejoinTimeLength if rejoinTimeLength > 0 else timeLeft
1080 | )
1081 |
1082 | time.sleep(sleepDuration * 60)
1083 | else:
1084 | updateFrequency = int(CHOOSENMEETDATA["updateFrequency"])
1085 | consoleText += (
1086 | "\nError! Retrying after some time"
1087 | "\nSleeping for another {} minutes".format(updateFrequency)
1088 | )
1089 | console.config(text=consoleText)
1090 |
1091 | time.sleep(updateFrequency * 60)
1092 |
1093 | currentTime = (
1094 | datetime.now().time().hour * 60 + datetime.now().time().minute
1095 | )
1096 | endTime = timeRange[0][1]
1097 |
1098 | if currentTime >= endTime:
1099 | self.endOBSRecording(CHOOSENMEETDATA["recordMeet"])
1100 | consoleText += "\nMeeting Ended!"
1101 | console.config(text=consoleText)
1102 |
1103 | lbl = tk.Label(self, text="Rate Your Experience🟊")
1104 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
1105 | lbl.grid(row=3, column=0, sticky="ew")
1106 |
1107 | return
1108 | else:
1109 | updateFrequency = int(CHOOSENMEETDATA["updateFrequency"])
1110 | consoleText += "\n Sleeping for another {} minutes".format(
1111 | updateFrequency
1112 | )
1113 | console.config(text=consoleText)
1114 | time.sleep(updateFrequency * 60)
1115 | else:
1116 | consoleText += (
1117 | "\nOut of Service\nIf that's a possible error retry after some time"
1118 | )
1119 | console.config(text=consoleText)
1120 |
1121 | lbl = tk.Label(self, text="Meeting Ended possibly!")
1122 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
1123 | lbl.grid(row=3, column=0, sticky="ew")
1124 |
1125 | def createMeetLink(self, meetID, meetPassword=""):
1126 | # Creates zoommtg link doesn't require browser permission (more safe.Hope so!)
1127 | if isinstance(meetID, int) or (isinstance(meetID, str) and meetID.isdigit()):
1128 | pass_param = "&pwd={}".format(meetPassword) if (meetPassword) else ""
1129 | meeting_link = "zoommtg://zoom.us/join?action=join&confno={0}{1}".format(
1130 | meetID, pass_param
1131 | )
1132 | return meeting_link
1133 |
1134 | # Adopted from: https://github.com/tmonfre/zoom-cli/blob/main/zoom_cli/utils.py
1135 | def launchZoommtgUrl(self, url):
1136 | command = ""
1137 | if platform.system() == "Darwin":
1138 | command = "open"
1139 | elif platform.system() == "Linux":
1140 | command = "xdg-open"
1141 | elif platform.system() == "Windows":
1142 | command = "cmd /c start" # Not Sure About This Need Checking
1143 | # If error replace command with 'start' and retry or use webbrowser one
1144 | else:
1145 | try:
1146 | import webbrowser
1147 |
1148 | webbrowser.open(url)
1149 | except:
1150 | pass
1151 | return
1152 | os.system('{} "{}"'.format(command, url))
1153 |
1154 | def checkTimeRange(self, data):
1155 | # Creates Possible time to trigger checking for Loading meeting
1156 | startTimeHour = int(data["startTimeHour"])
1157 | startTimeMinute = int(data["startTimeMinute"])
1158 | rejoinInterval = (
1159 | int(data["rejoinInterval"])
1160 | if Apptools.check_digit(data["rejoinInterval"])
1161 | else 0
1162 | )
1163 | warmUpDuration = int(data["warmUpDuration"])
1164 | meetLength = int(data["meetLength"])
1165 |
1166 | startTime = startTimeHour * 60 + startTimeMinute
1167 |
1168 | currentTime = datetime.now().time().hour * 60 + datetime.now().time().minute
1169 | scriptStartTime = max(startTime - warmUpDuration, currentTime)
1170 |
1171 | EndTime = startTime + meetLength + warmUpDuration
1172 | IdealStartTime = startTime - warmUpDuration
1173 | checkAtTime = [
1174 | [IdealStartTime, EndTime],
1175 | [(scriptStartTime // 60, scriptStartTime % 60)],
1176 | ]
1177 | if rejoinInterval > 0:
1178 | numberOfMeet = math.ceil(meetLength / int(rejoinInterval))
1179 | for i in range(numberOfMeet):
1180 | thatTime = startTime + (i + 1) * rejoinInterval
1181 | checkAtTime[1].append((thatTime // 60, thatTime % 60))
1182 |
1183 | return checkAtTime
1184 |
1185 | def launchMeeting(self, MeetLink, timeRange):
1186 | consoleText = "Initialising Launch Service"
1187 | serviceConsole = tk.Label(self, text=consoleText)
1188 | serviceConsole.config(font=("Segoe UI", 8), fg="#E8E8E8", bg="#333333")
1189 | serviceConsole.grid(row=3, column=0, sticky="nsew")
1190 |
1191 | currentTime = datetime.now().time().hour * 60 + datetime.now().time().minute
1192 | if currentTime in range(timeRange[0][0] - 1, timeRange[0][1] + 1):
1193 | consoleText += "\n Launching Meeting"
1194 | serviceConsole.config(text=consoleText)
1195 | self.launchZoommtgUrl(MeetLink)
1196 | return True
1197 | return False
1198 |
1199 | def launchRecordingbyOBS(self, recordMeet="True"):
1200 | if recordMeet == "True":
1201 | lbl = tk.Label(self, text="Launching Recording...")
1202 | lbl.config(font=("Segoe UI", 12), fg="#E8E8E8", bg="#333333")
1203 | lbl.grid(row=3, column=0, sticky="ew")
1204 | try:
1205 | if platform.system() == "Linux":
1206 | bashCommand = 'env LIBGL_ALWAYS_SOFTWARE=1 obs --startrecording --multi --scene "Zoom Meet" --minimize-to-tray'
1207 | elif platform.system() == "Windows":
1208 | bashCommand = 'start /d "C:/Program Files/obs-studio/bin/64bit" obs64.exe --startrecording --multi --scene "Zoom Meet"'
1209 | else:
1210 | raise "Unsupported OS"
1211 | os.system(bashCommand)
1212 | except Exception as e:
1213 | messagebox.showerror("Error", e)
1214 |
1215 | def endOBSRecording(self, recordMeet="True"):
1216 | if recordMeet == "True":
1217 | try:
1218 | if platform.system() == "Linux":
1219 | bashCommand = "killall -9 obs"
1220 | elif platform.system() == "Windows":
1221 | bashCommand = "taskkill /F /IM obs64.exe"
1222 | else:
1223 | raise "Unsupported OS"
1224 | os.system(bashCommand)
1225 | except Exception as e:
1226 | messagebox.showerror("Error", e)
1227 |
1228 |
1229 | class AppSettings(tk.Frame):
1230 | def __init__(self, master):
1231 | tk.Frame.__init__(self, master, bg="#333333")
1232 | style = ThemedStyle(self)
1233 | style.set_theme("default")
1234 | self.makeWidgets(master)
1235 |
1236 | def makeWidgets(self, master):
1237 | lbl = tk.Label(self, text="Settings")
1238 | lbl.config(font=("Segoe UI", 30), fg="#E8E8E8", bg="#333333")
1239 | lbl.grid(row=0, column=0, sticky="ew")
1240 |
1241 | # Default Recorder + OBS Location + fps + resolution + save dir if manual + mannual third party bash command with reset
1242 | # Display bash cmmand
1243 | btn = tk.Button(
1244 | self, text="Go to Home", command=lambda: master.switch_frame(HomePage)
1245 | )
1246 | btn.config(bg="#1F8EE7", fg="#E8E8E8", bd=0, activebackground="#3297E9")
1247 | btn.grid(row=8, column=0, padx=5, pady=10)
1248 |
1249 |
1250 | # Main Program
1251 | if __name__ == "__main__":
1252 | app = App()
1253 | app.title("Zoom AutoRecorder")
1254 | app.resizable(0, 0)
1255 | app.update_idletasks()
1256 | x_Left = int(app.winfo_screenwidth() / 4)
1257 | app.geometry("+{}+{}".format(x_Left, 100))
1258 | try:
1259 | Icon = PhotoImage(file=LOGOImgDir)
1260 | app.iconphoto(False, Icon)
1261 | except Exception as e:
1262 | Apptools.writeLog(e)
1263 | Icon = PhotoImage(file=DEFAULTIMAGEDir)
1264 | app.iconphoto(False, Icon)
1265 |
1266 | app.mainloop()
1267 |
--------------------------------------------------------------------------------
/poetry.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
2 |
3 | [[package]]
4 | name = "pillow"
5 | version = "10.4.0"
6 | description = "Python Imaging Library (Fork)"
7 | optional = false
8 | python-versions = ">=3.8"
9 | files = [
10 | {file = "pillow-10.4.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:4d9667937cfa347525b319ae34375c37b9ee6b525440f3ef48542fcf66f2731e"},
11 | {file = "pillow-10.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:543f3dc61c18dafb755773efc89aae60d06b6596a63914107f75459cf984164d"},
12 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7928ecbf1ece13956b95d9cbcfc77137652b02763ba384d9ab508099a2eca856"},
13 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4d49b85c4348ea0b31ea63bc75a9f3857869174e2bf17e7aba02945cd218e6f"},
14 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6c762a5b0997f5659a5ef2266abc1d8851ad7749ad9a6a5506eb23d314e4f46b"},
15 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:a985e028fc183bf12a77a8bbf36318db4238a3ded7fa9df1b9a133f1cb79f8fc"},
16 | {file = "pillow-10.4.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:812f7342b0eee081eaec84d91423d1b4650bb9828eb53d8511bcef8ce5aecf1e"},
17 | {file = "pillow-10.4.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ac1452d2fbe4978c2eec89fb5a23b8387aba707ac72810d9490118817d9c0b46"},
18 | {file = "pillow-10.4.0-cp310-cp310-win32.whl", hash = "sha256:bcd5e41a859bf2e84fdc42f4edb7d9aba0a13d29a2abadccafad99de3feff984"},
19 | {file = "pillow-10.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:ecd85a8d3e79cd7158dec1c9e5808e821feea088e2f69a974db5edf84dc53141"},
20 | {file = "pillow-10.4.0-cp310-cp310-win_arm64.whl", hash = "sha256:ff337c552345e95702c5fde3158acb0625111017d0e5f24bf3acdb9cc16b90d1"},
21 | {file = "pillow-10.4.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:0a9ec697746f268507404647e531e92889890a087e03681a3606d9b920fbee3c"},
22 | {file = "pillow-10.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dfe91cb65544a1321e631e696759491ae04a2ea11d36715eca01ce07284738be"},
23 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5dc6761a6efc781e6a1544206f22c80c3af4c8cf461206d46a1e6006e4429ff3"},
24 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e84b6cc6a4a3d76c153a6b19270b3526a5a8ed6b09501d3af891daa2a9de7d6"},
25 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:bbc527b519bd3aa9d7f429d152fea69f9ad37c95f0b02aebddff592688998abe"},
26 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:76a911dfe51a36041f2e756b00f96ed84677cdeb75d25c767f296c1c1eda1319"},
27 | {file = "pillow-10.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:59291fb29317122398786c2d44427bbd1a6d7ff54017075b22be9d21aa59bd8d"},
28 | {file = "pillow-10.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:416d3a5d0e8cfe4f27f574362435bc9bae57f679a7158e0096ad2beb427b8696"},
29 | {file = "pillow-10.4.0-cp311-cp311-win32.whl", hash = "sha256:7086cc1d5eebb91ad24ded9f58bec6c688e9f0ed7eb3dbbf1e4800280a896496"},
30 | {file = "pillow-10.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:cbed61494057c0f83b83eb3a310f0bf774b09513307c434d4366ed64f4128a91"},
31 | {file = "pillow-10.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:f5f0c3e969c8f12dd2bb7e0b15d5c468b51e5017e01e2e867335c81903046a22"},
32 | {file = "pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl", hash = "sha256:673655af3eadf4df6b5457033f086e90299fdd7a47983a13827acf7459c15d94"},
33 | {file = "pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:866b6942a92f56300012f5fbac71f2d610312ee65e22f1aa2609e491284e5597"},
34 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29dbdc4207642ea6aad70fbde1a9338753d33fb23ed6956e706936706f52dd80"},
35 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf2342ac639c4cf38799a44950bbc2dfcb685f052b9e262f446482afaf4bffca"},
36 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f5b92f4d70791b4a67157321c4e8225d60b119c5cc9aee8ecf153aace4aad4ef"},
37 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:86dcb5a1eb778d8b25659d5e4341269e8590ad6b4e8b44d9f4b07f8d136c414a"},
38 | {file = "pillow-10.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:780c072c2e11c9b2c7ca37f9a2ee8ba66f44367ac3e5c7832afcfe5104fd6d1b"},
39 | {file = "pillow-10.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37fb69d905be665f68f28a8bba3c6d3223c8efe1edf14cc4cfa06c241f8c81d9"},
40 | {file = "pillow-10.4.0-cp312-cp312-win32.whl", hash = "sha256:7dfecdbad5c301d7b5bde160150b4db4c659cee2b69589705b6f8a0c509d9f42"},
41 | {file = "pillow-10.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:1d846aea995ad352d4bdcc847535bd56e0fd88d36829d2c90be880ef1ee4668a"},
42 | {file = "pillow-10.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:e553cad5179a66ba15bb18b353a19020e73a7921296a7979c4a2b7f6a5cd57f9"},
43 | {file = "pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8bc1a764ed8c957a2e9cacf97c8b2b053b70307cf2996aafd70e91a082e70df3"},
44 | {file = "pillow-10.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6209bb41dc692ddfee4942517c19ee81b86c864b626dbfca272ec0f7cff5d9fb"},
45 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bee197b30783295d2eb680b311af15a20a8b24024a19c3a26431ff83eb8d1f70"},
46 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ef61f5dd14c300786318482456481463b9d6b91ebe5ef12f405afbba77ed0be"},
47 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:297e388da6e248c98bc4a02e018966af0c5f92dfacf5a5ca22fa01cb3179bca0"},
48 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:e4db64794ccdf6cb83a59d73405f63adbe2a1887012e308828596100a0b2f6cc"},
49 | {file = "pillow-10.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd2880a07482090a3bcb01f4265f1936a903d70bc740bfcb1fd4e8a2ffe5cf5a"},
50 | {file = "pillow-10.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b35b21b819ac1dbd1233317adeecd63495f6babf21b7b2512d244ff6c6ce309"},
51 | {file = "pillow-10.4.0-cp313-cp313-win32.whl", hash = "sha256:551d3fd6e9dc15e4c1eb6fc4ba2b39c0c7933fa113b220057a34f4bb3268a060"},
52 | {file = "pillow-10.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:030abdbe43ee02e0de642aee345efa443740aa4d828bfe8e2eb11922ea6a21ea"},
53 | {file = "pillow-10.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:5b001114dd152cfd6b23befeb28d7aee43553e2402c9f159807bf55f33af8a8d"},
54 | {file = "pillow-10.4.0-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:8d4d5063501b6dd4024b8ac2f04962d661222d120381272deea52e3fc52d3736"},
55 | {file = "pillow-10.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7c1ee6f42250df403c5f103cbd2768a28fe1a0ea1f0f03fe151c8741e1469c8b"},
56 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b15e02e9bb4c21e39876698abf233c8c579127986f8207200bc8a8f6bb27acf2"},
57 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a8d4bade9952ea9a77d0c3e49cbd8b2890a399422258a77f357b9cc9be8d680"},
58 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_28_aarch64.whl", hash = "sha256:43efea75eb06b95d1631cb784aa40156177bf9dd5b4b03ff38979e048258bc6b"},
59 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_28_x86_64.whl", hash = "sha256:950be4d8ba92aca4b2bb0741285a46bfae3ca699ef913ec8416c1b78eadd64cd"},
60 | {file = "pillow-10.4.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d7480af14364494365e89d6fddc510a13e5a2c3584cb19ef65415ca57252fb84"},
61 | {file = "pillow-10.4.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:73664fe514b34c8f02452ffb73b7a92c6774e39a647087f83d67f010eb9a0cf0"},
62 | {file = "pillow-10.4.0-cp38-cp38-win32.whl", hash = "sha256:e88d5e6ad0d026fba7bdab8c3f225a69f063f116462c49892b0149e21b6c0a0e"},
63 | {file = "pillow-10.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:5161eef006d335e46895297f642341111945e2c1c899eb406882a6c61a4357ab"},
64 | {file = "pillow-10.4.0-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:0ae24a547e8b711ccaaf99c9ae3cd975470e1a30caa80a6aaee9a2f19c05701d"},
65 | {file = "pillow-10.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:298478fe4f77a4408895605f3482b6cc6222c018b2ce565c2b6b9c354ac3229b"},
66 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:134ace6dc392116566980ee7436477d844520a26a4b1bd4053f6f47d096997fd"},
67 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:930044bb7679ab003b14023138b50181899da3f25de50e9dbee23b61b4de2126"},
68 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:c76e5786951e72ed3686e122d14c5d7012f16c8303a674d18cdcd6d89557fc5b"},
69 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:b2724fdb354a868ddf9a880cb84d102da914e99119211ef7ecbdc613b8c96b3c"},
70 | {file = "pillow-10.4.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dbc6ae66518ab3c5847659e9988c3b60dc94ffb48ef9168656e0019a93dbf8a1"},
71 | {file = "pillow-10.4.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:06b2f7898047ae93fad74467ec3d28fe84f7831370e3c258afa533f81ef7f3df"},
72 | {file = "pillow-10.4.0-cp39-cp39-win32.whl", hash = "sha256:7970285ab628a3779aecc35823296a7869f889b8329c16ad5a71e4901a3dc4ef"},
73 | {file = "pillow-10.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:961a7293b2457b405967af9c77dcaa43cc1a8cd50d23c532e62d48ab6cdd56f5"},
74 | {file = "pillow-10.4.0-cp39-cp39-win_arm64.whl", hash = "sha256:32cda9e3d601a52baccb2856b8ea1fc213c90b340c542dcef77140dfa3278a9e"},
75 | {file = "pillow-10.4.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:5b4815f2e65b30f5fbae9dfffa8636d992d49705723fe86a3661806e069352d4"},
76 | {file = "pillow-10.4.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:8f0aef4ef59694b12cadee839e2ba6afeab89c0f39a3adc02ed51d109117b8da"},
77 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9f4727572e2918acaa9077c919cbbeb73bd2b3ebcfe033b72f858fc9fbef0026"},
78 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff25afb18123cea58a591ea0244b92eb1e61a1fd497bf6d6384f09bc3262ec3e"},
79 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dc3e2db6ba09ffd7d02ae9141cfa0ae23393ee7687248d46a7507b75d610f4f5"},
80 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:02a2be69f9c9b8c1e97cf2713e789d4e398c751ecfd9967c18d0ce304efbf885"},
81 | {file = "pillow-10.4.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:0755ffd4a0c6f267cccbae2e9903d95477ca2f77c4fcf3a3a09570001856c8a5"},
82 | {file = "pillow-10.4.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl", hash = "sha256:a02364621fe369e06200d4a16558e056fe2805d3468350df3aef21e00d26214b"},
83 | {file = "pillow-10.4.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:1b5dea9831a90e9d0721ec417a80d4cbd7022093ac38a568db2dd78363b00908"},
84 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b885f89040bb8c4a1573566bbb2f44f5c505ef6e74cec7ab9068c900047f04b"},
85 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87dd88ded2e6d74d31e1e0a99a726a6765cda32d00ba72dc37f0651f306daaa8"},
86 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:2db98790afc70118bd0255c2eeb465e9767ecf1f3c25f9a1abb8ffc8cfd1fe0a"},
87 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:f7baece4ce06bade126fb84b8af1c33439a76d8a6fd818970215e0560ca28c27"},
88 | {file = "pillow-10.4.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:cfdd747216947628af7b259d274771d84db2268ca062dd5faf373639d00113a3"},
89 | {file = "pillow-10.4.0.tar.gz", hash = "sha256:166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06"},
90 | ]
91 |
92 | [package.extras]
93 | docs = ["furo", "olefile", "sphinx (>=7.3)", "sphinx-copybutton", "sphinx-inline-tabs", "sphinxext-opengraph"]
94 | fpx = ["olefile"]
95 | mic = ["olefile"]
96 | tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
97 | typing = ["typing-extensions"]
98 | xmp = ["defusedxml"]
99 |
100 | [[package]]
101 | name = "setuptools"
102 | version = "72.1.0"
103 | description = "Easily download, build, install, upgrade, and uninstall Python packages"
104 | optional = false
105 | python-versions = ">=3.8"
106 | files = [
107 | {file = "setuptools-72.1.0-py3-none-any.whl", hash = "sha256:5a03e1860cf56bb6ef48ce186b0e557fdba433237481a9a625176c2831be15d1"},
108 | {file = "setuptools-72.1.0.tar.gz", hash = "sha256:8d243eff56d095e5817f796ede6ae32941278f542e0f941867cc05ae52b162ec"},
109 | ]
110 |
111 | [package.extras]
112 | core = ["importlib-metadata (>=6)", "importlib-resources (>=5.10.2)", "jaraco.text (>=3.7)", "more-itertools (>=8.8)", "ordered-set (>=3.1.1)", "packaging (>=24)", "platformdirs (>=2.6.2)", "tomli (>=2.0.1)", "wheel (>=0.43.0)"]
113 | doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"]
114 | test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "mypy (==1.11.*)", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (<0.4)", "pytest-ruff (>=0.2.1)", "pytest-ruff (>=0.3.2)", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
115 |
116 | [[package]]
117 | name = "ttkthemes"
118 | version = "3.2.2"
119 | description = "A group of themes for the ttk extensions of Tkinter with a Tkinter.Tk wrapper"
120 | optional = false
121 | python-versions = ">=3.5"
122 | files = [
123 | {file = "ttkthemes-3.2.2.tar.gz", hash = "sha256:01daed001f2ff0e4f32832a0d9ea48176c0c505203b030756bdde3bd1bcb21d2"},
124 | ]
125 |
126 | [package.dependencies]
127 | pillow = "*"
128 |
129 | [metadata]
130 | lock-version = "2.0"
131 | python-versions = "^3.8"
132 | content-hash = "9cf78c49f34a6e49dce6cb6ceb460d537f97d507ef4e45c307f4858da50027e6"
133 |
--------------------------------------------------------------------------------
/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool.poetry]
2 | name = "zoom-autorecorder"
3 | version = "0.1.0"
4 | description = ""
5 | authors = ["Lab Rat "]
6 | license = "AGPL-3.0"
7 | readme = "README.md"
8 |
9 | [tool.poetry.dependencies]
10 | python = "^3.8"
11 | pillow = "^10.4.0"
12 | setuptools = "^72.1.0"
13 | ttkthemes = "^3.2.2"
14 |
15 |
16 | [build-system]
17 | requires = ["poetry-core"]
18 | build-backend = "poetry.core.masonry.api"
19 |
--------------------------------------------------------------------------------