I hereby claim:
- I am codeadict on github.
- I am dairon (https://keybase.io/dairon) on keybase.
- I have a public key ASAd7-ISbwuLfULnqKiOb6NvPej3BINo8CRAzLEf6K2yzwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from faker import Faker | |
fake = Faker() | |
fake.random.seed(1234) | |
print(fake.name()) |
from faker import Faker | |
from planet_provider import PlanetProvider | |
fake = Faker() | |
fake = Faker() | |
fake.add_provider(PlanetProvider) | |
print(fake.planet()) |
from faker.providers import BaseProvider | |
class PlanetProvider(BaseProvider): | |
__provider__ = 'planet' | |
__lang___ = 'en_US' | |
planets = ['Neptune', 'Mars', 'Mercury', 'Venus', 'Earth', 'Jupiter', 'Saturn', 'Uranus'] |
from faker import Faker | |
fake = Faker('es_ES') | |
print(fake.name()) | |
print(fake.address()) | |
print(fake.phone_number()) |
import unittest | |
from faker import Faker | |
from customer import Customer | |
class TestCustomer(unittest.TestCase): | |
def setUp(self): |
class Customer: | |
def __init__(self, name, address, state, zipcode, contact_name, | |
phone_number, email, notes): | |
self.name = name | |
self.address = address | |
self.state = state | |
self.zipcode = zipcode | |
self.contact_name = contact_name | |
self.phone_number = phone_number |
{ | |
"_meta": { | |
"hash": { | |
"sha256": "b802fff146f9ce84e1e9281ab16181a877ecd5981ecca9e462dcac13099e5b7e" | |
}, | |
"host-environment-markers": { | |
"implementation_name": "cpython", | |
"implementation_version": "3.6.3", | |
"os_name": "posix", | |
"platform_machine": "x86_64", |
$ cat .env | |
API_KEY=supersecretstuff | |
$ pipenv run python | |
Loading .env environment variables… | |
Python 3.6.3 (default, Oct 4 2017, 06:09:15) | |
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> os.getenv['API_KEY'] |
$ pipenv check | |
Checking PEP 508 requirements… | |
Passed! | |
Checking installed package safety… | |
33300: django >=1.10,<1.10.7 resolved (1.10.1 installed)! | |
CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs | |
============================================================================================ | |
Django relies on user input in some cases (e.g. |