Comments (6)
Like a fake.identity() that returns a Profile object with all those fields (generated using existing functions)?
Can i work on it?
from faker.
Perhaps fake.profile() with optional args for extra fields? Good site btw.
from faker.
@joseph-norman i think it would be more useful and intuitive to generate all fields by the default and have an optional list of field names to limit the generation to those fields only.
from faker.
The generated output could be a dictionary IMO. I think we can generate all the fields, after all this generation is not a time consuming process. If someone needs less fields, (s)he can select them from the dictionary.
Please leave the possibility open for improvements. Keep in my mind that not everyone is from the US. Gender, name set and country should be optional parameters:
def profile(gender='random', name_set='American', country='US'):
# just an example but you get the idea
That is, if I want to generate non-US data, I should be able to do that. For the moment we can do it with US data, but leave the door open for future improvements.
from faker.
@jabbalaci look at the first commit i did. Anyway i forgot about the locale, you're right. I will try to design a consistent API and keep it intuitive for both US and non-US users.
from faker.
closing for inactivity. Feel free to reopen
from faker.
Related Issues (20)
- [Feature request] Support windows path for `file_path` provider HOT 2
- Feature request: file_path extension=False to generate a path without extension HOT 5
- two cases failed on Debian buildd HOT 7
- Add fa_IR for currency HOT 2
- add bank for uk_UA HOT 2
- Fake names based on ethnicity HOT 4
- Idea: Add Http status codes HOT 5
- Question: How faker parse and find data/list for format like {{ last_name }} - {{ first-name }} ? HOT 5
- Faker data isn't random when called from a function HOT 2
- Questions Documentation HOT 3
- `pydecimal(left_digits=14)` produced value with 13 left digits HOT 5
- Locale et_EE (Estoniana) with seed_instance returns random instead of fixed
- hu-Hu localization gives back non-capitalized city names HOT 1
- Add ability to define type for columns in csv HOT 2
- Updating land_coords used in local_latlng() to cover every supported country code HOT 1
- JSON from misc provider not working properly HOT 3
- Wrong digit separator in ru_RU locale. HOT 2
- Call fake.zipcode_in_state('AZ'), the return zipcode not valid AZ zip code HOT 3
- `tests/providers/test_phone_number.py::TestSkSk::test_phone_number` test fails HOT 1
- date_time_this_year provides non existent date HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faker.