-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ddb908
commit 8aa1640
Showing
1,213 changed files
with
199,789 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
from flask import Flask, request, jsonify, render_template | ||
|
||
app = Flask(__name__) | ||
|
||
# Rota para a página inicial | ||
@app.route('charada.html') | ||
def index(): | ||
return ''' | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Charada</title> | ||
</head> | ||
<body> | ||
<h2>Resolva a Charada!</h2> | ||
<form id="charadaForm"> | ||
<label for="resposta">Insira sua resposta:</label> | ||
<input type="text" id="resposta" name="resposta"> | ||
<button type="submit">Enviar Resposta</button> | ||
</form> | ||
<script> | ||
document.getElementById('charadaForm').onsubmit = async function(e) { | ||
e.preventDefault(); | ||
const resposta = document.getElementById('resposta').value; | ||
const response = await fetch('/enviar-resposta', { | ||
method: 'POST', | ||
headers: { | ||
'Content-Type': 'application/json' | ||
}, | ||
body: JSON.stringify({resposta: resposta}) | ||
}); | ||
if (response.ok) { | ||
alert('Resposta enviada com sucesso!'); | ||
} else { | ||
alert('Erro ao enviar resposta.'); | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
''' | ||
|
||
# Endpoint para processar a resposta | ||
@app.route('/enviar-resposta', methods=['POST']) | ||
def receber_resposta(): | ||
dados = request.json | ||
resposta = dados.get('resposta') | ||
print(f"Resposta recebida: {resposta}") | ||
return jsonify({'mensagem': 'Resposta recebida com sucesso!'}), 200 | ||
|
||
if __name__ == '__main__': | ||
app.run(debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Charada</title> | ||
</head> | ||
<body> | ||
<h2>Resolva a Charada!</h2> | ||
<form id="charadaForm"> | ||
<label for="resposta">Insira sua resposta:</label> | ||
<input type="text" id="resposta" name="resposta"> | ||
<button type="submit">Enviar Resposta</button> | ||
</form> | ||
|
||
<script> | ||
document.getElementById('charadaForm').onsubmit = async function(e) { | ||
e.preventDefault(); // Impede que o formulário seja enviado da forma tradicional | ||
const resposta = document.getElementById('resposta').value; // Pega o valor do campo de resposta | ||
const response = await fetch('/enviar-resposta', { // Faz uma requisição POST ao servidor | ||
method: 'POST', | ||
headers: { | ||
'Content-Type': 'application/json' // Define que o corpo da requisição é um JSON | ||
}, | ||
body: JSON.stringify({resposta: resposta}) // Converte a resposta para string JSON | ||
}); | ||
|
||
if (response.ok) { | ||
alert('Resposta enviada com sucesso!'); // Mostra uma mensagem de sucesso | ||
} else { | ||
alert('Erro ao enviar resposta.'); // Mostra uma mensagem de erro | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
28 changes: 28 additions & 0 deletions
28
venv/Lib/site-packages/MarkupSafe-3.0.2.dist-info/LICENSE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Copyright 2010 Pallets | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
92 changes: 92 additions & 0 deletions
92
venv/Lib/site-packages/MarkupSafe-3.0.2.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
Metadata-Version: 2.1 | ||
Name: MarkupSafe | ||
Version: 3.0.2 | ||
Summary: Safely add untrusted strings to HTML/XML markup. | ||
Maintainer-email: Pallets <[email protected]> | ||
License: Copyright 2010 Pallets | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
Project-URL: Donate, https://palletsprojects.com/donate | ||
Project-URL: Documentation, https://markupsafe.palletsprojects.com/ | ||
Project-URL: Changes, https://markupsafe.palletsprojects.com/changes/ | ||
Project-URL: Source, https://github.com/pallets/markupsafe/ | ||
Project-URL: Chat, https://discord.gg/pallets | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Web Environment | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Classifier: Topic :: Text Processing :: Markup :: HTML | ||
Classifier: Typing :: Typed | ||
Requires-Python: >=3.9 | ||
Description-Content-Type: text/markdown | ||
License-File: LICENSE.txt | ||
|
||
# MarkupSafe | ||
|
||
MarkupSafe implements a text object that escapes characters so it is | ||
safe to use in HTML and XML. Characters that have special meanings are | ||
replaced so that they display as the actual characters. This mitigates | ||
injection attacks, meaning untrusted user input can safely be displayed | ||
on a page. | ||
|
||
|
||
## Examples | ||
|
||
```pycon | ||
>>> from markupsafe import Markup, escape | ||
|
||
>>> # escape replaces special characters and wraps in Markup | ||
>>> escape("<script>alert(document.cookie);</script>") | ||
Markup('<script>alert(document.cookie);</script>') | ||
|
||
>>> # wrap in Markup to mark text "safe" and prevent escaping | ||
>>> Markup("<strong>Hello</strong>") | ||
Markup('<strong>hello</strong>') | ||
|
||
>>> escape(Markup("<strong>Hello</strong>")) | ||
Markup('<strong>hello</strong>') | ||
|
||
>>> # Markup is a str subclass | ||
>>> # methods and operators escape their arguments | ||
>>> template = Markup("Hello <em>{name}</em>") | ||
>>> template.format(name='"World"') | ||
Markup('Hello <em>"World"</em>') | ||
``` | ||
|
||
## Donate | ||
|
||
The Pallets organization develops and supports MarkupSafe and other | ||
popular packages. In order to grow the community of contributors and | ||
users, and allow the maintainers to devote more time to the projects, | ||
[please donate today][]. | ||
|
||
[please donate today]: https://palletsprojects.com/donate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
MarkupSafe-3.0.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
MarkupSafe-3.0.2.dist-info/LICENSE.txt,sha256=RjHsDbX9kKVH4zaBcmTGeYIUM4FG-KyUtKV_lu6MnsQ,1503 | ||
MarkupSafe-3.0.2.dist-info/METADATA,sha256=nhoabjupBG41j_JxPCJ3ylgrZ6Fx8oMCFbiLF9Kafqc,4067 | ||
MarkupSafe-3.0.2.dist-info/RECORD,, | ||
MarkupSafe-3.0.2.dist-info/WHEEL,sha256=62QJgqtUFevqILau0n0UncooEMoOyVCKVQitJpcuCig,101 | ||
MarkupSafe-3.0.2.dist-info/top_level.txt,sha256=qy0Plje5IJuvsCBjejJyhDCjEAdcDLK_2agVcex8Z6U,11 | ||
markupsafe/__init__.py,sha256=pREerPwvinB62tNCMOwqxBS2YHV6R52Wcq1d-rB4Z5o,13609 | ||
markupsafe/__pycache__/__init__.cpython-312.pyc,, | ||
markupsafe/__pycache__/_native.cpython-312.pyc,, | ||
markupsafe/_native.py,sha256=2ptkJ40yCcp9kq3L1NqpgjfpZB-obniYKFFKUOkHh4Q,218 | ||
markupsafe/_speedups.c,sha256=SglUjn40ti9YgQAO--OgkSyv9tXq9vvaHyVhQows4Ok,4353 | ||
markupsafe/_speedups.cp312-win_amd64.pyd,sha256=sC88mCi7HJOQhbSSrdMPZfdCvi_VBfOzwkVuQ7V6T3M,13312 | ||
markupsafe/_speedups.pyi,sha256=LSDmXYOefH4HVpAXuL8sl7AttLw0oXh1njVoVZp2wqQ,42 | ||
markupsafe/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Wheel-Version: 1.0 | ||
Generator: setuptools (75.2.0) | ||
Root-Is-Purelib: false | ||
Tag: cp312-cp312-win_amd64 | ||
|
1 change: 1 addition & 0 deletions
1
venv/Lib/site-packages/MarkupSafe-3.0.2.dist-info/top_level.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
markupsafe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
20 changes: 20 additions & 0 deletions
20
venv/Lib/site-packages/blinker-1.9.0.dist-info/LICENSE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright 2010 Jason Kirtland | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Metadata-Version: 2.3 | ||
Name: blinker | ||
Version: 1.9.0 | ||
Summary: Fast, simple object-to-object and broadcast signaling | ||
Author: Jason Kirtland | ||
Maintainer-email: Pallets Ecosystem <[email protected]> | ||
Requires-Python: >=3.9 | ||
Description-Content-Type: text/markdown | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python | ||
Classifier: Typing :: Typed | ||
Project-URL: Chat, https://discord.gg/pallets | ||
Project-URL: Documentation, https://blinker.readthedocs.io | ||
Project-URL: Source, https://github.com/pallets-eco/blinker/ | ||
|
||
# Blinker | ||
|
||
Blinker provides a fast dispatching system that allows any number of | ||
interested parties to subscribe to events, or "signals". | ||
|
||
|
||
## Pallets Community Ecosystem | ||
|
||
> [!IMPORTANT]\ | ||
> This project is part of the Pallets Community Ecosystem. Pallets is the open | ||
> source organization that maintains Flask; Pallets-Eco enables community | ||
> maintenance of related projects. If you are interested in helping maintain | ||
> this project, please reach out on [the Pallets Discord server][discord]. | ||
> | ||
> [discord]: https://discord.gg/pallets | ||
|
||
|
||
## Example | ||
|
||
Signal receivers can subscribe to specific senders or receive signals | ||
sent by any sender. | ||
|
||
```pycon | ||
>>> from blinker import signal | ||
>>> started = signal('round-started') | ||
>>> def each(round): | ||
... print(f"Round {round}") | ||
... | ||
>>> started.connect(each) | ||
|
||
>>> def round_two(round): | ||
... print("This is round two.") | ||
... | ||
>>> started.connect(round_two, sender=2) | ||
|
||
>>> for round in range(1, 4): | ||
... started.send(round) | ||
... | ||
Round 1! | ||
Round 2! | ||
This is round two. | ||
Round 3! | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
blinker-1.9.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
blinker-1.9.0.dist-info/LICENSE.txt,sha256=nrc6HzhZekqhcCXSrhvjg5Ykx5XphdTw6Xac4p-spGc,1054 | ||
blinker-1.9.0.dist-info/METADATA,sha256=uIRiM8wjjbHkCtbCyTvctU37IAZk0kEe5kxAld1dvzA,1633 | ||
blinker-1.9.0.dist-info/RECORD,, | ||
blinker-1.9.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82 | ||
blinker/__init__.py,sha256=I2EdZqpy4LyjX17Hn1yzJGWCjeLaVaPzsMgHkLfj_cQ,317 | ||
blinker/__pycache__/__init__.cpython-312.pyc,, | ||
blinker/__pycache__/_utilities.cpython-312.pyc,, | ||
blinker/__pycache__/base.cpython-312.pyc,, | ||
blinker/_utilities.py,sha256=0J7eeXXTUx0Ivf8asfpx0ycVkp0Eqfqnj117x2mYX9E,1675 | ||
blinker/base.py,sha256=QpDuvXXcwJF49lUBcH5BiST46Rz9wSG7VW_p7N_027M,19132 | ||
blinker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Wheel-Version: 1.0 | ||
Generator: flit 3.10.1 | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from __future__ import annotations | ||
|
||
from .base import ANY | ||
from .base import default_namespace | ||
from .base import NamedSignal | ||
from .base import Namespace | ||
from .base import Signal | ||
from .base import signal | ||
|
||
__all__ = [ | ||
"ANY", | ||
"default_namespace", | ||
"NamedSignal", | ||
"Namespace", | ||
"Signal", | ||
"signal", | ||
] |
Binary file added
BIN
+496 Bytes
venv/Lib/site-packages/blinker/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.66 KB
venv/Lib/site-packages/blinker/__pycache__/_utilities.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Oops, something went wrong.