Saravanan666/pypi-org huggingface dataset:
Package: fake-progress-bars
Fake Progress BarsI don't know why you'd want to, but now you can make fake progress bars.fromfake_progress_barsimportprogress_bar# Creates a 10 second default progress bar.progress_bar(10)# Creates a 10 second customized progress bar.progress_bar(time=10,size=200,step=2,label='Example',variability=0.1,progress='◼️',remaining='·',outside='⏺',percentage=False)All configuration options:time: The amount of time the progress bar takes to complete.size: The size of the progress bar in characters.step: The amount the progress increases every step.label: The label before the progress bar, succeeded by ": ".variability: The amount of change allowed in the time of each step. This property is limited to the time times the step divided by the size to keep the time consistent.progress: The character used to represent the current progress of the progress bar.remaining: The character used for the remaining percentage of the progress bar.outside: The character used as the border on either side of the progress bar.percentage: Whether the percentage competed should be shown on the right side of the progress bar.
Package: fakeproj
fakeproj: DevOps for DummiesA dummy project to introduce various DevOps tools and Best Practices to Python developers. Follow along with the tutorial onfakeproj.readthedocs.ioInstallationpipinstall.Developer Setuppipinstall-rrequirements.txtTestingpytest-s-v--cov=fakeprojtest/There are markers for individual modules from the library, eg,pytest-v-m"goodmodule"--cov=fakeprojtest/BenchmarksBenchmarks can be run locally usingasv run, followed byasv publishandasv preview.The benchmarks are also available to view online athere.To update the online dashboard by pushing the latest benchmarks, useasv gh-pagesComplexityradoncc-a.
xenon--max-absoluteB--max-modulesB--max-averageA.Docstringsdocstr-coverage.GitHub ActionsUnit Testing (Python 3.6, 3.7, 3.8 on ubuntu:latest)Code CoverageCode Complexity (Maximum CC of B/B/A)Build Testing (Python 3.6, 3.7, 3.8 on {ubuntu, macos, windows}:latest)Code FormattingThis project usesBlackfor Code FormattingTo-DoPopulate Docs
Package: fakeproj-nightly
fakeproj: DevOps for DummiesA dummy project to introduce various DevOps tools and Best Practices to Python developers. Follow along with the tutorial onfakeproj.readthedocs.ioInstallationpipinstall.Developer Setuppipinstall-rrequirements.txtTestingpytest-s-v--cov=fakeprojtest/There are markers for individual modules from the library, eg,pytest-v-m"goodmodule"--cov=fakeprojtest/BenchmarksBenchmarks can be run locally usingasv run, followed byasv publishandasv preview.The benchmarks are also available to view online athere.To update the online dashboard by pushing the latest benchmarks, useasv gh-pagesComplexityradoncc-a.
xenon--max-absoluteB--max-modulesB--max-averageA.Docstringsdocstr-coverage.GitHub ActionsUnit Testing (Python 3.6, 3.7, 3.8 on ubuntu:latest)Code CoverageCode Complexity (Maximum CC of B/B/A)Build Testing (Python 3.6, 3.7, 3.8 on {ubuntu, macos, windows}:latest)Code FormattingThis project usesBlackfor Code FormattingTo-DoPopulate Docs
Package: fake-proxy
Open source library that finds public proxies from several sources.UsageThe package must be imported and used through it’s API.get(amount, proxy_type)The main function isget, which receives 2 parameters:
-amountwhich specifies the amount of proxies required
-proxy_typewhich specifies the type of proxy (https, http, socks4)>>>importfake_proxy>>>fake_proxy.get()[{'ip':'188.166.83.20','port':'3128','country_code':'NL','country':'Netherlands','type':'http'}]>>>fake_proxy.get(amount=3)[{'ip':'89.20.135.204','port':'10000','country_code':'RU','country':'Russian Federation','type':'http'},{'ip':'165.22.154.157','port':'3128','country_code':'US','country':'United States','type':'http'},{'ip':'62.182.206.19','port':'37715','country_code':'RU','country':'Russian Federation','type':'http'}]>>>fake_proxy.get(proxy_type='https')[{'ip':'36.92.108.150','port':'3128','country_code':'ID','country':'Indonesia','type':'https'}]get_by_source(source_name, amount, proxy_type)Similar toget(), but lets you specify a particular source from which to obtain a proxy.
-source_name: name of the source from which to get a proxy
-amount: specifies the amount of proxies required
-proxy_type: specifies the type of proxy (https, http, socks4)>>>importfake_proxy>>>fake_proxy.get_from_source(source_name='free-proxy-list.net',amount=2,proxy_type='http')[{'ip':'76.87.101.188','port':'38875','country_code':'US','country':'United States','type':'http'},{'ip':'62.182.206.19','port':'37715','country_code':'RU','country':'Russian Federation','type':'http'}]proxy_sources()Returns a list with the names of all the sources from which the library fetches proxies.>>>importfake_proxy>>>fake_proxy.proxy_sources(){'https':['free-proxy-list.net'],'socks4':['socks-proxy.net'],'http':['free-proxy-list.net']}reload()Fetches new proxies from the proxy sources.SourcesFor the moment, the library fetches the proxies from the following sources:Source URLProxy Typeshttps://free-proxy-list.net/HTTP, HTTPShttps://www.sslproxies.org/HTTPShttps://www.socks-proxy.net/SOCKS4InstallationLatest release through PyPI:$pipinstallfake-proxyDevelopment version:$gitclonegit@github.com:machinia/fake-proxy.git$cdfake-proxy$pipinstall-e.ContributionContributions are welcome! Feel free to report bugs or open an issue if you feel a new feature is needed. Pull requests are welcome!
Package: faker_airtravel
Airtravel provider for FakerAcknowlegementsfaker_airtravelis a provider for theFakerPython package, and a fork ofhttps://github.com/kennethwsmith/faker_vehicle.  I would like to thank the maintainer of that repository, since I used the structure to create this one.Descriptionfaker_airtravelprovides airtravel related fake data for testing purposes.  The definition of "fake" in this context really means "random," as the airport codes, cities, and locations are real.  However, I make no claims about accuracy, so do not use this as location data!InstallationInstall with pip:pipinstallfaker_airtravelAdd as a provider to your Faker instance:fromfakerimportFakerfromfaker_airtravelimportAirTravelProviderfake.add_provider(AirTravelProvider)If you already use faker, you probably know the conventional use is:fake=Faker()Airport Object>>>fake.airport_object(){'Airport':'Tocumen International Airport','iata':'PTY','icao':'MPTO','City':'Tocumen','State':'Panama','Country':'Panama'}>>>fake.airport_name()'Lisbon Airport'Airport Codes (IATA and ICAO)>>>fake.airport_iata()'LSC'>>>fake.airport_icao()'KOKC'Airlines>>> fake.airline()
'Sichuan Airlines'FlightThe flight object is an example of how the data might be combined to create larger structures, and may not be the exact format you need.
However it does have the advantage that it will never choose the same 'origin' and 'destination' object.>>>fake.flight()

{'airline': 'Maya Island Air',
 'origin': {'Airport': 'Noi Bai Airport',
  'iata': 'HAN',
  'icao': 'VVNB',
  'City': 'Hanoi',
  'State': 'Ha Noi',
  'Country': 'Vietnam'},
 'destination': {'Airport': 'Geneva Airport',
  'iata': 'GVA',
  'icao': 'LSGG',
  'City': 'Geneva',
  'State': 'Canton of Geneva',
  'Country': 'Switzerland'},
 'stops': 'non-stop',
 'price': 641}
Package: faker-bill
faker-billProvider forFakerwhich adds fake bill data.install:pip install faker-billhow to use:from faker import Faker
from faker_bill.fa_IR import BillProvider
fake = Faker('fa_IR')
fake.add_provider(BillProvider)
print(fake.bill_full())

شرکت گاز

قبض گاز

bill id: 7734853606234

payment id: 3004125788500to run tests:python -m unittest tests/test_bill.py
Package: faker-biology
faker-biologyBiology-related fake data provider for Python FakerSome providers for biology-related concepts and resources.Installationpip install faker-biologyUsage:Standard code to access FakerfromfakerimportFakerfake=Faker()Physiology: Cell types and  organsfromfaker_biology.physiologyimportCellType,Organ,Organellefake.add_provider(CellType)fake.add_provider(Organ)fake.add_provider(Organelle)fake.organ()# Sublingual glandsfake.celltype()# Centroacinar cellfake.organelle()# chloroplastBiosequencesfromfaker_biology.bioseqimportBioseqfake.add_provider(Bioseq)fake.dna(10)# ATCGTGTCATfake.rna(10)# AUCGUGUCAUfake.protein(10)# MTGHILPSTWfake.protein_name()# HYAL4_HUMANfake.amino_acid()# AminoAcid(full_name='Glycine', three_letters_name='Gly', one_letter_name='G', mass=57)fake.amino_acid_name()# Glycinefake.amino_acid_3_letters()# Cysfake.amino_acid_1_letter()# Wfake.amino_acid_mass()# 103Molecular Biologyfromfaker_biology.mol_biolimportAntibody,RestrictionEnzyme,Enzymefake.add_provider(RestrictionEnzyme)fake.add_provider(Antibody)fake.add_provider(Enzyme)fake.re()# EcoRIfake.blunt()# SmaIfake.antibody_isotype()# IgGfake.enzyme()# Ubiquitin carboxy-terminal hydrolase L1Taxonomyfromfaker_biology.taxonomyimportModelOrganismfake.add_provider(ModelOrganism)fake.organism()# Fission yeastfake.organism_latin()# Schizosaccharomyces pombe
Package: faker-blog-provider
Python Faker Blog ProviderPython Faker Blog Content ProviderDescriptionThis Python package provides a Faker provider that generates fake blog content in Brazilian Portuguese. It consists of various methods that can be used to create blog-related fake data such as blog titles, blog posts, images, tags, and more.InstallationUse pip for install fromsource in PyPI:pipinstallfaker-blog-providerTestsUse pytest to test the project:pytest-vvsxUsageImport theFakerclass from thefakerpackage and initialize an instance of it. Then, import theBlogProviderclass from thefaker_blogmodule. Finally, add theBlogProviderto the instance ofFaker.fromfakerimportFakerfromfaker_blogimportBlogProviderfake=Faker()fake.add_provider(BlogProvider)# Generate fake blog contenttitle=fake.article_title()image=fake.article_image()tag=fake.article_tag()tags=fake.article_tags(nb=5)category=fake.article_category()image=fake.article_image()content_html=fake.article_content_html()# You can generate a dictionary containing the text and a slugified version using the following methods.title=fake.article_title_and_slug()tag=fake.article_tag_and_slug()tags=fake.article_tags_and_slug(nb=5)category=fake.article_category_and_slug()FeaturesGenerate fake blog titlesGenerate fake blog posts contentGenerate fake blog tag and tagsGenerate fake blog categoryGenerate fake URLs for blog image using theLorem PicsumExamplesGenerate a fake blog title:title=fake.article_title()print(title)Output:Os Segredos De Dirigir Um Poderoso GrupoGenerate fake blog tags:tags=fake.article_tags(nb=5)print(tags)Output:['Transformação Pessoal', 'Gestão do Tempo', 'Estratégias de Crescimento', 'Automação', 'Desenvolvimento Sustentável']Generate fake blog tags with slug:tags_and_slug=fake.article_tags_and_slug(nb=3)print(tags_and_slug)Output:[{'tag': 'Ferramentas para Empreendedores', 'slug': 'ferramentas-para-empreendedores'}, {'tag': 'Transformação Digital', 'slug': 'transformacao-digital'}, {'tag': 'Cultura Empresarial', 'slug': 'cultura-empresarial'}]LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: faker-credit-score
faker_credit_score is a community-created provider for theFakertest data
generator Python package.This package provides fake credit score data for testing purposes. The most common non-industry specific credit scoring models are supported:FICO Score 8VantageScore 3.0FICO Score 10FICO Score 10 TEquifax Beacon 5.0Experian/Fair Isaac Risk Model V2SMTransUnion FICO Risk Score, Classic 04InstallationInstall with pip:$pipinstallfaker-credit-scoreAlternatively, install with setup.py:$gitclonehttps://github.com/crd/faker_credit_score.git$cdfaker_credit_score&&pythonsetup.pyinstallUsageFrom the Command Line$fakercredit_score-ifaker_credit_score756From within your Python ProjectAdd theCreditScoreProvider to yourFakerinstance:fromfakerimportFakerfromfaker_credit_scoreimportCreditScorefake=Faker()fake.add_provider(CreditScore)fake.credit_score_name()# 'TransUnion FICO Risk Score, Classic 04'fake.credit_score_provider()# 'TransUnion'fake.credit_score()# 791ContributingBy all means, contribute! I’d be happy to work with any first-time open source contributors so please, don’t be shy.TestingExecute unit tests and calculate code coverage like so:$coveragerun-munittesttests/*..............----------------------------------------------------------------------Ran14testsin0.406sOK$coveragereportNameStmtsMissCover----------------------------------------------------faker_credit_score/__init__.py580100%
Package: faker-crypto
faker-cryptoVersion:0.2.2faker-crypto is a Faker provider for Cryto Addreses.Following crypto addresses are supported:BitcoinBitcoin CashLitecoinDogecoinEthereumBinance Smart ChainPolygonInstallationInstall with pip:pipinstallfaker-cyptoUsageAddCryptoAddressprovider to Faker instance:fromfakerimportFakerfromfaker_cryptoimportCryptoAddressfake=Faker()fake.add_provider(CryptoAddress)fake.bitcoin_address()# '13XTsE8TKEHW5zAmCWmBvNk5KvEcEjVQu'fake.litecoin_address()# 'LM3HgLcPemiBb5MJ3vqRRPrPqBdtf7pL'fake.ethereum_address()# '0x7ea8abae70ce7e9ce09155ee9169d5f18fc96b'fake.binance_smart_chain_address()# '0xceeea432e1eb0fdcbd7ffbe2e7fefa6ccb78dd'fake.polygon_address()# '0x32f065b1fe349fcaa29bfdfa5e6aae25a53203'TestingRun unit tests with code coverage with:pytest --cov -v
Package: faker-e164
# Faker Provider for E164 Phone Numbers`pip install faker-e164`## Usage```pythonfrom faker import Fakerfrom faker_e164.providers import E164Providerfake = Faker()fake.add_provider(E164Provider)# To actually fake an e164 phone numberfake.e164()```## ContributingContributions for faker-e164 are welcomed by the community. If you are looking for issues to work on, please visit [the issues tab](https://github.com/crowdcomms/faker-e164/issues). If you have an idea for an improvement, please submit an new issue and allow some time for discussion before starting any work on a PR. If you get stuck please don't hesitate to start a discussion with the project maintainers.
Package: fake-read-write-files
Write/read from memory instead of files when open() is called@read_decorator fakes the existence of a file and provides the file content when open(mode='r'/mode='rb') from the builtins is called.@write_decorator captures the output when open(mode='w'/mode='wb') from the builtins is called.The decorators don't work with functions/methods that don't use the open() function (for example: cv2.imread / cv2.imwrite)Some examplesimportpandasaspdimportcv2fromPILimportImageimportnumpyasnpimportos.pathfromfake_read_write_filesimportread_decorator,write_decorator@read_decoratordefreadutf8(filename,_file_data):withopen(filename,mode="r",encoding="utf-8")asf:data=f.read()returndata@write_decoratordefwrite_pil_image(pilpic,filepath):pilpic.save(filepath)# don't use "return" here, the function will return a dict@read_decoratordefread_bin_file(filename,_file_data):withopen(filename,mode="rb")asf:data=f.read()returndata@read_decoratordefpandasread(filename,_file_data):returnpd.read_csv(filename)@write_decoratordefpandaswrite(df,filename):df.to_csv(filename)# don't use "return" here, the function will return a dict# the read decorator always checks for the kwarg "_file_data"# It must be passed as a kwarge=readutf8(filename="f:\\txtdoesnotexist.txt",_file_data="I am fake\nDid you know that?")print(e)# real filebi=Image.open(r"C:\Users\Gamer\anaconda3\envs\dfdir\xxxxxxxxxx.png")# writing to a fake file, returns a dict with all written files in the function,# even if there is no return value declaredo=write_pil_image(bi,filepath="i_am_a_fake_image.png")print(cv2.imdecode(np.frombuffer(o["i_am_a_fake_image.png"],np.uint8),cv2.IMREAD_COLOR))binaryfile=read_bin_file(filename="i_am_a_fake_image.png",_file_data=o["i_am_a_fake_image.png"])df=pandasread(filename="test.csv",_file_data="john,1\nmaria,2\ncarlos,3")print(df)pdcsv=pandaswrite(df,filename="test.csv")print(pdcsv)# outputIamfakeDidyouknowthat?[[[255255255][255255255][255255255]...[255255255][254255255][253255255]][[255255255][255255255][255255255]...[255255255][254255255][253255255]][[255255255][255255255][255255255]...[255255255][254255255][253255255]]...[[255255255][255255255][255255255]...[255255254][255255254][255255254]][[255255255][255255255][255255255]...[255255254][255255254][255255254]][[255255255][255255255][255255255]...[255255254][255255254][255255254]]]john10maria21carlos3{'test.csv':',john,1\r\n0,maria,2\r\n1,carlos,3\r\n'}
Package: fakereal
FakeRealOverviewFakeReal is a Python library designed to populate MySQL, PostgreSQL, and SQLite databases with random test data. With FakeReal, you can easily generate and insert fake but realistic data into your databases, either for testing or for other purposes. It's built on top of the Faker library for generating the data and uses Peewee for database connectivity.FeaturesMultiple Database Support: FakeReal supports MySQL, PostgreSQL, and SQLite databases.Intuitive API: FakeReal provides an easy-to-use API for seeding databases and running test queries.Customizable Data Generation: Auto-generates realistic data based on your database schema, semantics of fields, and relationship between the tables.Wipe Test Data: Provides the ability to wipe test data from databases.InstallationYou can install FakeReal via pip:pipinstallfakerealQuick StartPre-requisitesBefore diving into FakeReal, create a sample database named OnlineStore:mysql-uroot-p<onlineStoreDB.sqlSeed Your DatabaseHere's a Python script to quickly get you started with FakeReal:fromfakerealimportfakereal# Initialize FakeReal with a connection stringconnection_string='mysql://root:@localhost:3306/OnlineStore'FakeReal=fakereal(connection_string)# Seed 'all' tables with 100 rows each, in batches of 10FakeReal.seed('all',rows=100,batch_size=10)# Run test queries and print the resultresult=FakeReal.test_queries(return_bool=True,silent=False)print(result)ContributingContributions are welcome!LicenseThis project is open source.
Package: fakeredis
fakeredis: A fake version of a redis-pyDocumentation is hosted inhttps://fakeredis.readthedocs.io/IntroFakeRedis is a pure-Python implementation of the Redis key-value store.It enables running tests requiring redis server without an actual server.It provides enhanced versions of the redis-py Python bindings for Redis. That provide the following added functionality:
A built-in Redis server that is automatically installed, configured and managed when the Redis bindings are used. A
single server shared by multiple programs or multiple independent servers. All the servers provided by
FakeRedis support all Redis functionality including advanced features such as RedisJson, GeoCommands.Seeofficial documentationfor list of supported commands.Sponsorfakeredis-py is developed for free.You can support this project by becoming a sponsor usingthis link.
Package: faker_education
Education provider for FakerAcknowlegementsfaker_educationis a provider for theFakerPython package, and a fork ofhttps://github.com/kennethwsmith/faker_airtravel.  I would like to thank the maintainer of that repository, since I used their structure to create this one.Descriptionfaker_educationprovides education related fake data for testing purposes.  The definition of "fake" in this context really means "random," as the public institutions including names, districts, states, and other information are real.  However, I make no claims about accuracy, so do not use this as location data!The data was provided for free from the authoritative sourcehttps://data-nces.opendata.arcgis.com/published May 2, 2022.InstallationInstall with pip:pipinstallfaker_educationAdd as a provider to your Faker instance:fromfakerimportFakerfromfaker_educationimportSchoolProviderfake.add_provider(SchoolProvider)If you already use faker, you probably know the conventional use is:fake=Faker()School Object>>>fake.school_object(){"school":"Craig Elementary","district":"Craig City School District","level":"Elementary","type":"Regular school","state":"AK","nces_id":"20009000629",}>>>fake.school_name()'Glendening Elementary School'School NCES IDs>>>fake.school_nces_id()'390469702730'Districts>>>fake.school_district()'Dighton-Rehoboth'Level>>>fake.school_level()'Elementary'Type>>>fake.school_type()'Career and Technical School'State>>>fake.school_state()'KY'
Package: faker-enum
faker_enumis a provider for theFakerPython package.SummaryFaker enum provides the ability to generate enum values based on an enum type.UsagefromenumimportEnumfromfakerimportFakerfromfaker_enumimportEnumProviderfake=Faker()fake.add_provider(EnumProvider)classColor(Enum):RED=1GREEN=2BLUE=3fake.enum(Color)# One of [Color.RED, Color.GREEN, Color.BLUE]
Package: faker-file-qt
PyQT UI forfaker-file.Prerequisitesfaker-file(faker-file[common])QDarkStylePyQT5DocumentationDocumentation is available onRead the Docs.InstallationLatest stable version from PyPIpipxinstallfaker-file-qtOr development version from GitHubpipxinstallhttps://github.com/barseghyanartur/faker-file-qt/archive/main.tar.gzInstall locally in development modepipinstall-e.[dev]Runningfaker-file-qtTestingSimply type:pytest-vrxOr use tox:toxRelated projectsCheck the demo(s):REST API demo(based onfaker-file-apiREST API)UI frontend demo(based onfaker-file-uiUI frontend)WASM frontend demo(based onfaker-file-wasmWASM frontend)Writing documentationKeep the following hierarchy.=====
title
=====

header
======

sub-header
----------

sub-sub-header
~~~~~~~~~~~~~~

sub-sub-sub-header
^^^^^^^^^^^^^^^^^^

sub-sub-sub-sub-header
++++++++++++++++++++++

sub-sub-sub-sub-sub-header
**************************LicenseMITSupportFor security issues contact me at the e-mail given in theAuthorsection.For overall issues, go toGitHub.AuthorArtur Barseghyan <artur.barseghyan@gmail.com>
Package: faker_food
faker_food: food provider for FakerAn add-on provider for the Python Faker module to generate random and/or fake data for food-related categories.Descriptionfaker_foodprovides food-related fake data for testing purposes.InstallationInstall thefaker-foodlibrary with your package management tool.pipinstallfaker-foodUsageAdd as a provider to your Faker instance:>>>fromfakerimportFaker>>>fromfaker_foodimportFoodProvider>>>fake=Faker()>>>fake.add_provider(FoodProvider)Now you can start to generate data:>>>fake.dish()>>>fake.dish_description()>>>fake.ethnic_category()>>>fake.fruit()>>>fake.ingredient()>>>fake.measurement()>>>fake.metric_measurement()>>>fake.measurement_size()>>>fake.spice()>>>fake.sushi()>>>fake.vegetable()Data SourcesData for this project was sourced from many different areas. Special thanks to the following sources:faker-ruby/faker(food.yml)Elixirs/faker(food/en.ex)
Package: faker-geoscience
# faker-geoscience
Fake data generators for everything Earth (and beyond!)faker-geoscienceis a Community Provider for the Python [faker](https://github.com/joke2k/faker) package, intended to provide generators for data relating to the Earth sciences.## Installpip install faker-geoscience## UseBasefakerdoes not currently support locale resolution for dynamically linked providers, therefore
locale-specific Provider classes have to be linked explicitly usingFaker.add_provider(),
or the containing module has to be passed to the Faker constructor (examples below).from faker import Faker
from faker_geoscience import flora# Example 1: Using Faker.add_provider()
f = Faker()
f.add_provider(flora.el_GR.Provider)# Example 2: Passing to constructor
f = Faker(locale=’el-GR’, providers=[‘flora’])# Module generators available - may be called
f.plant_name()## Buildpython3 -m build## Testtox## Contributefaker-geoscienceis in early development - we accept any and all relevant contributions! Check out
[base faker’s contributing guidelines](https://github.com/joke2k/faker/blob/master/CONTRIBUTING.rst)
for further information.## AcknowledgementsTox/GitHub Actions configuration strongly influenced by [faker-airtravel](https://github.com/dkotschessa/faker_airtravel) and [faker_wifi_essid](https://github.com/SkypLabs/faker-wifi-essid).