Re: Faker package [RESOLVED]

2021-06-19 Thread Rich Shepard
On Sat, 19 Jun 2021, MRAB wrote: It looks like you're mixing some Python usage ("faker.names()") in with command line usage. MRAB, You are correct. That was my problem. Judging from the docs, I'd say you need something more like: $ faker -o temp.out name for 1 fake name or: $ faker -r

Re: Faker package

2021-06-18 Thread MRAB
On 2021-06-19 02:51, Rich Shepard wrote: On Sat, 19 Jun 2021, MRAB wrote: When it says "command line" it means the operating system's command line. If it's the Python shell , it'll say "Python shell" or "Python prompt. MRAB, The root shell's (#) what I assumed. User shells (in bash, anyway)

Re: Faker package

2021-06-18 Thread Rich Shepard
On Sat, 19 Jun 2021, MRAB wrote: When it says "command line" it means the operating system's command line. If it's the Python shell , it'll say "Python shell" or "Python prompt. MRAB, The root shell's (#) what I assumed. User shells (in bash, anyway) have $ as the prompt. Regardless, $ fake

Re: Faker package

2021-06-18 Thread MRAB
On 2021-06-18 23:24, Rich Shepard wrote: I'm trying to use the faker package to generate data to load in a sample postgres database so I can learn how to use tksheet and psycopg2. The 8.8.1 documentation shows output on a root shell prompt (#), not a python prompt (>>>).

Re: Faker package

2021-06-18 Thread Rich Shepard
On Fri, 18 Jun 2021, Terry Reedy wrote: I would try using the 'given' function/decorator of hypothesis (on pypi) to generate random data that conforms to whatever specification. Thank you, Terry. I'll do that. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Faker package

2021-06-18 Thread Terry Reedy
On 6/18/2021 6:24 PM, Rich Shepard wrote: I'm trying to use the faker package to generate data to load in a sample postgres database so I can learn how to use tksheet and psycopg2. The 8.8.1 documentation shows output on a root shell prompt (#), not a python prompt (>>>).

Faker package

2021-06-18 Thread Rich Shepard
I'm trying to use the faker package to generate data to load in a sample postgres database so I can learn how to use tksheet and psycopg2. The 8.8.1 documentation shows output on a root shell prompt (#), not a python prompt (>>>). It also has a description of using faker from &#x