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
import codecs | |
import cStringIO | |
import csv | |
class CsvConverter(object): | |
"""Convert a given list into CSV. | |
CsvConverter takes a data structure (list of iterables), and converts | |
it into a CSV. |
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
06. April 2019 LinuxInfoTag in Augsburg | |
03. - 04. Mai 2019 PyDays Vienna | |
08. - 10. Mai 2019 Zope Sprint in Halle | |
25. - 26. Mai 2019 PyCon Web in München |
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
# download the pwned password list from https://haveibeenpwned.com/Passwords | |
# (sha1 / ordered by hash) | |
# replace "password" with the password you want to check | |
time look -f $(echo -n password | sha1sum | awk '{print $1}') ordered_hashes.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
import click | |
from app import create_app | |
from config import Config | |
app = create_app(Config) | |
@app.cli.command() | |
def initialize_database(): |
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
[testenv:simple] | |
# Test that 'setup.py test' works | |
basepython = | |
python3.4 | |
commands = | |
python setup.py -q test -q | |
deps = {[testenv]deps} | |
[testenv:coverage] | |
basepython = |
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
(ZEO) jugmac00@jugmac00-XPS-13-9370:~/Projects/ZEO$ bin/test -vv -j3 | |
Running tests at all levels | |
Running .EmptyLayer tests: | |
Set up .EmptyLayer in 0.000 seconds. | |
Running: | |
Ran 0 tests with 0 failures, 0 errors and 0 skipped in 0.000 seconds. | |
[Parallel tests running in zope.testrunner.layer.UnitTests: | |
.] | |
[Parallel tests running in .!no tests here!: | |
.] |
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
new sections | |
------------ | |
- version pinning | |
- exceptions (Sphinx = new versions Python 3 only), see https://github.com/zopefoundation/Zope/pull/581 | |
- requires.io | |
- adding a new key to the Zope configuration, see https://github.com/zopefoundation/Zope/issues/580 | |
- all zope projects in overview https://zope3.pov.lt/py3/travis.html?filter=zope and https://github.com/zopefoundation/meta/issues/4 | |
update sections | |
--------------- |
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
D = dict() | |
def access_dict(D): | |
return D.get("some_key", None) | |
def do_stuff(): | |
if access_dict() is None: | |
pass |
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
class Index: | |
def do(self): | |
self._do_stuff() | |
def _do_stuff(self): | |
if "the_moon_shines": | |
pass | |
####################################### |
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
""" | |
Python 3.8 installieren ( + Pfad aktivieren) | |
In der Konsole: | |
# legt virtual env an | |
Python -m venv fastapi | |
cd fastapi |
OlderNewer