Go to any directory and clone repo with sources.
cd ~
git clone https://github.com/certbot/certbot| (test) utek@grendel:~$ pip install -U --force --no-cache-dir enum | |
| DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. | |
| Collecting enum | |
| Downloading https://files.pythonhosted.org/packages/02/a0/32e1d5a21b703f600183e205aafc6773577e16429af5ad3c3f9b956b07ca/enum-0.4.7.tar.gz | |
| Collecting setuptools (from enum) | |
| Downloading https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl (573kB) | |
| 100% |████████████████████████████████| 573kB 27.8MB/s | |
| Exception: | |
| Traceback (most recent call last): | |
| File "/home/utek/test/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main |
| # coding=utf-8 | |
| from .ddd import ( | |
| DDD | |
| ) | |
| __version__ = "0.5.1" | |
| __author__ = "Łukasz Bołdys" |
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| from setuptools import setup, find_packages | |
| from setuptools.command.develop import develop | |
| requires = [ | |
| 'requests' | |
| ] |
| C:\Users\utek | |
| λ pyc | |
| Python27 | |
| Python34 | |
| pypy | |
| C:\Users\utek | |
| λ python --version | |
| Python 2.7.8 |
I hereby claim:
To claim this, I am signing this object:
| class User(Base): | |
| __tablename__ = 'users' | |
| id = sa.Column(sa.Integer, primary_key=True) | |
| username = sa.Column(sa.Unicode(255), | |
| unique=True, | |
| nullable=False, | |
| index=True) | |
| _password = sa.Column(sa.Unicode(255), nullable=False) | |
| last_logged = sa.Column(sa.DateTime, default=datetime.datetime.utcnow) |
| def check_recaptcha(challenge, response, ip, private_key): | |
| import requests | |
| url = "http://www.google.com/recaptcha/api/verify" | |
| data = { | |
| 'privatekey': private_key, | |
| 'remoteip': ip, | |
| 'challenge': challenge, | |
| 'response': response, | |
| } | |
| res = requests.post(url, data=data) |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py:
import re
| class Root(object): | |
| __acl__ = [ | |
| (Allow, Authenticated, 'create_user'), | |
| (Allow, Authenticated, 'view_user_links'), | |
| ] | |
| def __init__(self, request): | |
| self.request = request | |
| # main() z __init__.py |