Saravanan666/pypi-org huggingface dataset:
Package: niceplots
NicePlotsA collection of nice styles and helper functions for matplotlibHow do I install?NicePlots can be pip installed directly from PyPIpipinstallniceplotsIf you want to make changesClone this repository, then enter the folder in the command line terminal.Enterpip install -e .within theniceplotsfolder.Font installation (optional)NicePlots styles use fonts that do not ship with most operating systems, so you'll need to install them separately.
If they are not installed, matplotlib will revert back to its default sans-serif font, DejaVu Sans.The font used by each style is as follows:doumont-light (default niceplots): CMU Brightdoumont-dark: CMU Brightjames-dark: Promptjames-light: PromptInstall the fonts on your system and then delete Matplotlib's font cache, which is located in~/.cache/matplotlibby default on most operating systems.
Matplotlib will rebuild the font cache next time it is run and (hopefully) find the new fonts.CMU Bright (doumont-light and doumont-dark)The computer modern bright font can be downloaded fromthis link.
Alternatively, on Ubuntu, the font can be installed with the following commands:sudo apt-get update
sudo apt-get install fonts-cmuArch linux users can get the font by installing theotf-cm-unicodepackage from AUR.Prompt (james-dark and james-light)The Prompt font can be download fromGoogle Fonts.How do I get set up?import matplotlib.pyplot as pltandimport niceplotsat the top of a file where you would like to use any function defined in this package.Useplt.style.use(niceplots.get_style())to set some defaults for nice-looking plots. You can also try passing different styles toget_style(), such as NicePlots'"james-dark"or any of matplotlib's styles (see the function's documentation for a full list of available NicePlots styles).Take advantage of NicePlots' helper functions, including (but not limited to)adjust_spines,horiz_bar, andplot_nested_pie, which are all documented in theexamples gallery.Admire your beautiful data.Do you have docs?Sort of, you can find our examples gallery and API documentationhereHelp, my old NicePlots code doesn't work anymore!We made a couple of changes to the API in version 2.0.0, most of them can be fixed with a simple find and replace.
Check therelease notesfor more details.Contribution guidelinesMake any changes you see fit. Please fork your own version and submit a pull request.Who do I talk to?Alasdair Gray,alachris@umich.eduEytan Adler,eytana@umich.eduEirikur Jonssoneirikurj@umich.edu
Package: niceposter
NiceposterA library that allows you to create your own image poster which you can use to share on social media. Implemented in Python using the PIL module.InstallationpipinstallniceposterImportant:depending on your system, make sure to usepip3andpython3instead.That's all! 🎉If you would like to install a specific version of Niceposter you may do so with:pipinstallniceposter==0.1.1Using NiceposterTo start creating an image poster, you have to initialize it, like so:fromniceposterimportCreatebg_image=Create.Poster()# default size of 500x500Then use any one of the methods to make or add changes to an image. Examples:bg_image.add_image('cool-image.png',position='cc',scale=20)bg_image.text('Interesting text!',position(50,50),color='red',align='center')bg_image.frame(thickness=10)bg_image.filter(rgb=(255,255,255),opacity=50)Updating Niceposterpipinstallniceposter-UBasic functions[In progress]Features in progress⬜ Addadd_shapemethod option to provide variety of available shapes⬜ Add image transformations options⬜ Add image effects optionsDocumentationContributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.
Package: niceprint
niceprintDescriptionThis is a python package for printing text with different colors and styles. Best for printing results from CLI programs. Parts of the code is gotten fromcolorpackage.niceprint comes with a few other functionalities such asSetInterval, ProgressBar, MultiColoredPrint.and manyothersInstallation$pip3installniceprintExamplesfromniceprintimportPrintfromniceprintimportMultiColoredPrintasmcpPrint("Niceprint",color="c")mcp("Niceprint",color="crb")DocumentationAvailiable athttp://astraldev.github.io/niceprintViewchangelog
Package: nice-prompts
Nice-prompts.Generate nice looking prompts for your cli applications.Install from PyPi:$pip3installnice-promptsDemo (select 1, select at least 2 with max 2, select any amount):importnice_promptsn=nice_prompts.NicePrompt()print(n.selection({"I like pizza":"Good taste","I respectfully disagree with the opinion of liking pizza":"Fair enough, good day","I hate pizza":"Bad sport 👎"}))# Select one from the keys, return the valueprint(n.multiselection({"I like pizza":"Good taste","I respectfully disagree with the opinion of liking pizza":"Fair enough, good day","I hate pizza":"Bad sport 👎"},amount=2,required=2))# Select multiple from the keys, return the values. You must select 2print(n.multiselection({"I like pizza":"Good taste","I respectfully disagree with the opinion of liking pizza":"Fair enough, good day","I hate pizza":"Bad sport 👎"},required=0))# Select multiple from the keys, return the values. No max, can be left blank
Package: nicepyright
nicepyrightnicepyright is a tool that provides a nicer CLI interface to the pyright type checker. It continuously monitors and displays type warnings in a more user-friendly format.Please note that nicepyright is currently in an early stage of development, so it may be feature incomplete and contain bugs. However, it is already useful and can help you to find type warnings in your code faster and more easily.Installationnicepyrightis available on PyPI and can be installed withpip,poetry, or your favorite Python package manager.poetryadd--devnicepyrightUsageTo use nicepyright, navigate to the root directory of your project and run the following command:nicepyrightMake sure that the environment being used is the one that contains all the libraries your project uses.
That is, if you are using a virtual environment, make sure that it is activated.
If you are usingpoetry, you can use thepoetry runcommand to ensure that the correct version ofnicepyrightis used.poetryrunnicepyrightThis will start the pyright type checker and display the type warnings in a more user-friendly format.
Package: nicescad
nicescadnicescad brings OpenScad to the browser (again)DemoDemoDocs and TutorialsWikiExamplesBasics/logoIntersectionLinkshttps://openscad.org/https://nicegui.ioAlternative online editorshttps://ochafik.com/openscad2/http://www.implicitcad.org/editorhttps://www.blockscad3d.com/editor/https://openjscad.azurewebsites.net/https://openjscad.xyz/Jupyter notebook integrationhttps://github.com/nickc92/ViewSCADPython integrationhttps://github.com/jeff-dh/SolidPython
Package: niceshell
niceshell - Python 3 module for better shell codingRequirementsPython 3.6+ (tested on 3.6.0)InstallationAutomatic installationpython3-mpipinstallniceshellManual installationcd/tmp/version=2.0.3# Choose desired versionwget-c"https://github.com/Andrew15-5/niceshell/releases/download/v${version}/niceshell-${version}-py3-none-any.whl"python3-mpip-U--userinstallniceshell-${version}-py3-none-any.whlUsagefromniceshellimport*ext="py"process1=ls(f"*.{ext}",batch=True)ifprocess1.exit_code():print("No Python scripts here. :(")print("stderr:",process1.error_output(),end='')exit(1)process2=ls(f"*.{ext}",True).shell("head -n 5")print("stdout:",process2.output(),end='')files=process2.get_lines()ln(files,"/tmp/").wait()Important noteDue to different preferences among coders some things like:raised error instead of silencly returned error code or Nonetype of raised error and its message;behavior of edge cases (the way parameter's data is handled);parameter names and their ordinal positionbehavior of command with provided input text (with sudo)can be inconvenient to some extent for someone and be perfect for others.
Therefore, I encourage everyone to test result of each function, method,
variable, constant, etc. to be 100% sure of how your
script/program/app will handle every situation.There are some tests in "tests" directory (./niceshell/tests/) to get you
started. And of course you can see implementation of whatever the module
provides for better understanding of what you are looking for.Complete list of modules and their functions/classesNote: list can be exteneded in future updates.__init__GID   ($USER's group ID)GROUP ($USER's group name)HOME  ($USERS's home dir aka '~')UID   ($USER's ID)USER  ($USER)coreexpose_tilde()normalize_short_and_long_args()quotes_wrapper()shell()ShellShortArgsOptionextraforce_sudo_password_promt()get_root_privileges()get_root_privileges_or_exit()has_root_privileges()list_dirs()list_files()gnu_coreutilscd()cp()ln()ls()mv()pwd()rm()TODO listAdd grepAdd dirname and basenameAdd pwdAdd functions to get dirs and files from pathAdd ability to install module via pipAdd ability to get command's output and pipe it to another commandAdd function that check if sudo can be used without passwordAdd ability to provide input to command in core.ShellAdd cdAdd mvAdd rmAdd cp
Package: nice-sql
使用手册如何安装？pip install nice-sql如何使用？Step 1: 添加 db 配置fromnicesql.dbimportadd_dbif__name__=='__main__':add_db("mysql://test:test@localhost:3306/test_db?charset=utf8mb4")step2: 执行 sqlfromnicesql.shortcutimportselect,update,insert,delete,sql# 方式 1：直接查询defway1():result=select("select * from t where a={a}and b in ({b})",a=1,b=["1","2"]).execute()# 方式 2：装饰器查询@select("select * from t where a={a}")defget(a=1):passdefway2():returnget(2)扩展功能支持控制返回数据模型:fromnicesql.shortcutimportselectclassUser:def__init__(self):self.id=Noneself.name=Noneif__name__=='__main__':# 使用 model(T) 方法设置数据模型users=select("select * from user where id in ({ids})",id=[1,2,3]).model(User).execute()支持 sql 中扩展列表:/*ids 对应的传参，可以是列表，会被展开成  v1,v2,v3...但只会展开第一层，不支持递归展开*/select*fromtwhereidin({ids})支持返回第 1 条数据:fromnicesql.shortcutimportselectclassUser:def__init__(self):self.id=Noneself.name=Noneif__name__=='__main__':# 使用 first(T=None) 控制只获取第一条数据, 同时也可以设置 modeluser=select("select * from user where id={id}",id=1).first(User).execute()支持设置多 DBfromnicesql.dbimportadd_dbif__name__=='__main__':# 通过设置别名参数，创建多个 db；add_db("mysql://username:password@localhost:3306/test1","db1")add_db("mysql://username:passwprd@localhost:3306/test2","db2")# 使用是通过 db(alias) 指定需要使用的 dbfromnicesql.shortcutimportinsertinsert("insert into t(name) values({name})",name="hello").db("db1").execute()占位符支持递归查询，同时支持管道进行数据处理fromnicesql.shortcutimportselectclassUser:def__init__(self):self.id=5if__name__=='__main__':select("select * from t where id={user.id|str}",user=User())
Package: niceware
A Python port ofNiceware, for generating random-yet-memorable passwords.
Each word provides 16 bits of entropy, so a useful password requires at least
3 words.Because the wordlist is of exactly size 2^16, Niceware is also useful for converting cryptographic keys and other sequences of random bytes into human-readable phrases. With Niceware, a 128-bit key is equivalent to an 8-word phrase.Free software: MIT licenseDocumentation:https://python-niceware.readthedocs.io.UsageTo insall$pipinstallnicewareTo generate an 8-byte passphrase>>>importniceware>>>niceware.generate_passphrase(8)['deathtrap','stegosaur','nilled','nonscheduled']or from the command line$niceware--words5tincturing distasting await trusser treadlerNiceware for Python usesos.urandomfor entropy.CreditsNiceware for Python is a port ofNiceware, byyan.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.1 (2017-03-25)Add example command line usage0.2.0 (2017-03-25)Addnicewarecommand to generate passphrase(s)Add examples to docstringsMark Python 3.6 as supported0.1.1 (2017-03-12)README fixes, no code changes0.1.0 (2017-03-11)First release on PyPI.
Package: nicexcel
nicexcelis a lightweight Python package
that provides the possibility of exporting pandas
native DataFrame objects into nicely formatted MS Excel files.The package leveragespandasandopenpyxlopen-source
Python libraries to add some simple aesthetic details to output Excel files.
This improves the overall aspect and usability of the files, hence, it
can help in the automation of reporting activities.Column widths auto-adapted to fit characters contained inside themHeader row containing filterable columns within Excel (by default)Header row freezed (by default)No indexing by default (vspandasdefault index set on)Columns in the output Excel file have a formatting that resemblespandasdefault data types. However, it is still possible to specify some
number format via specific argumentsGetting started withto_excel()Thenicexcelpackage main functionality consists in the exporting of
pandas.DataFrame object. Theto_excel()method is conceived as
a wrapper of the popularpd.DataFrame.to_excel()that takes two
key inputs:df: pd.DataFrame instancefilename: string containing file path where the output.xlsxfile will be savedSee below a simple example of applicationimportnicexcelasnlimportpandasaspd# instantiate mock datamock_df=pd.DataFrame(data={'Product Line':["T-Shirts","Jeans","Jackets"],'Units sold':[11213,9908,2345],'Yearly Revenues':[30000.0411,45513.1228,10220.103],'Gross Margin (%)':[0.223,0.1151,0.458]})# column formatcols_format={'Integer':['Yearly Income'],'%':['Gross Margin (%)']}# generate nicely formatted excelnl.to_excel(df=mock_df,filename='output.xlsx',cols_format=cols_format)A second method:to_excel_ms()In a similar fashion, thenicexcel.to_excel_ms()allows the
possibility of exporting a group of differentpd.DataFrameobjects to the same output .xlsx files on different worksheets.The method takes two main argumentsdfs: dict of pd.DataFrame instancesfilename: string containing file path where the output.xlsxfile will be savedSee an example of application below.importnicexcelasnlimportpandasaspd# get sample datatx_df=pd.DataFrame(data={'date':['11/08/2018','09/04/2018','30/03/2018'],'customer':['XYZ Corporation','ABC Electric','XYZ Corporation'],'price':[113.202,220.99,90.1011]})cust_df=pd.DataFrame(data={'customer':['ABC Electric','XYZ Corporation'],'city':['London','Tokyo'],'revenue (M)':[100.2334,76.23216]})# initiate dict of dataframesdfs={'transactional_db':tx_df,'customer_db':cust_df}# generate nicely formatted excel filenl.to_excel_ms(dfs=dfs,filename='output_ms'))DocumentationThe documentation is available in docstrings provided within
the code.
Package: nicfit.py
Basic building blocks for building Python applications.FeaturesCommon appplication skeletons (including async) providing common argument
parsing add-ons and utilities, error handling boiler-plate, and application
life-cycle hooks. Including intregratedcookiecutterthat
suuports updating to future versions with auto-merging.Simple command API based onargparseand sub-parsers.Integrated configuation file (based on configparser) utitiles.Logging extras (e.g. verbose level) and command line configuration.Free software: MIT licenseSee thechangelogfile for release history and changes.
Package: nichecompass
NicheCompass (NicheIdentification based onCellular grapHEmbeddings ofCOMmunicationProgramsAligned acrossSpatialSamples) is a package for end-to-end analysis of spatial multi-omics data, including spatial atlas building, niche identification & characterization, cell-cell communication inference and spatial reference mapping. It is built on top ofPyGandAnnData.ResourcesAn installation guide, tutorials and API documentation is available in thedocumentation.Please useissuesto submit bug reports.If you would like to contribute, check out thecontributing guide.If you find NicheCompass useful for your research, please consider citing the NicheCompass manuscript.Reference
Package: niche-vlaanderen
(Nederlandstalige versie hieronder / Dutch version below)NICHE Vlaanderen (Nature Impact Assessment of Changes in Hydro-Ecological Systems) is ahydro-ecological modelthat predicts the potential occurrence of (ground)water-dependent vegetation types in an area based on information about the (abiotic) site conditions. NICHE Vlaanderen can be used to evaluate the impact of changes in the water management to groundwater-dependent vegetation.The model is based on a number of location factors that are important for the vegetation: soil type, hydrology, nutrient availability and acidity.
Based on calculated abiotic properties of the location NICHE Vlaanderen determines whether certain vegetation types can develop. An additionalflooding moduleallows the user to test whether the predicted vegetations are compatible with a particular flooding regime.This project is a redevelopment of an existing ArcGIS plugin in Python, without external non-open source dependencies.NICHE Vlaanderen (Nature Impact Assessment of Changes in Hydro-Ecological Systems) is eenhydro-ecologisch modeldat de potenties voor (grond)waterafhankelijke vegetatietypes in een gebied berekent op basis van informatie over de (abiotische) standplaatscondities. NICHE Vlaanderen kan ingezet worden om de effecten van ingrepen in de waterhuishouding op grondwaterafhankelijke vegetaties te evalueren.Het model is gebaseerd op een aantal voor de vegetatie bepalende standplaatsfactoren: bodemtype, hydrologie, voedselrijkdom en zuurgraad. Op grond van de berekende abiotische kenmerken van de standplaats bepaalt NICHE Vlaanderen of bepaalde vegetatietypes zich al dan niet kunnen ontwikkelen. Met een bijkomendeoverstromingsmodulekunnen de potenties verder getoetst worden aan de compatibiliteit met een bepaald overstromingsregime.Dit project is een herontwikkeling van een bestaande ArcGIS plugin in Python, zonder externe non-open source dependencies.License - LicentieThis project is licensed under the MIT License, seeLICENSEfor more information.Dit project maakt gebruik van de MIT Licentie, zieLICENSEvoor meer informatie.Documentation - DocumentatieThe documentation of this project is available athttps://inbo.github.io/niche_vlaanderen/De documentatie van dit project kan geraadpleegd worden viahttps://inbo.github.io/niche_vlaanderen/
Package: nicholima-csv-converter
CSV to JSON converter.IntroductionTeaching how to deploy a lib on Pypi at PUC using PoetryWhat this project can doRead acsvfile or afolderwith csv's and convert them toJSONThis project is a program running on terminal, preferably install with pipx:pipx install nicholima-csv-converterTo use, just type in:csv_converter--helpOr:json_converter--help
Package: nichtparasoup
nichtparasoupnichtparasoupis a hackspaces entertainment system.
It randomly displays images frominstagram,pr0grammandreddit.Other crawlers are currently removed, but will be back soon.If you find an ImageCrawler for your favourite ImageBoard missing, feel free to write an own ImageCrawler therefore.Contribute it to thenichtparasoupproject or write it as an independent plugin :-)At our hackspacek4cgwe use it since years now.It turns out to be a very non-invasive way of entertaining a crowd of nerds
without having the noise and interruptions of videos or other stuff.Here is what it looks like in your browserand even better, on a video projector in your local hackspace!How it worksImages are crawled from multiple public pre-configured sources.No image is actually downloaded, just the URL to images are gathered. Found images are kept in a list, also it is
assured that the same URL is never gathered twice.To display the crawled images,nichtparasoupstarts a web-server display a web UI.The web UI fetches a random image URL from thenichtparasoupserver one by one.The web UI will load new images continuously, unless one of the following events happen:paused manually in the web UIscroll position in web UI is not on topwindow or tab lost focusweb UI is in image theater/zoom modeboss mode is active in web UIIn the web UI the images are downloaded from the original source. Also the original source is linked and marked by
an icon. Just hover or click the icon in the bottom right of an image.Every timenichtparasoupserves an image URL it also removes it from its list. This means an image URL is served
only once - unless the server was reset. (This might change in the future)DemoVisitnicht.parasoup.de/demo/to try it!Install, Usage, Config, etcsee thedocs.ImageCrawler (plugin) developmentsee thedocs.LicenseMIT - see theLICENSEfile for details.Creditssee theAUTHORSfile
for a list of essential contributors.parts of the logo are taken
fromSmashiconsonwww.flaticon.comare licensedCC BY 3.0.
Package: nick-derobertis-site
Nick DeRobertis' Personal Websitenick-derobertis-siteOverviewNick DeRobertis' Personal Website, built with Python, Panel, Bootstrap, and jQuery.LinksSee the websiteat nickderobertis.com.DevelopingBackend DevelopmentRunjust dev-beto run the backend server.Frontend DevelopmentRunjust dev-feto run the frontend server. You may need to
cd into the frontend/nick-derobertis-site directory and runpnpm ifirst.QAMake sure you have Docker installed.Runjust qato start a production-like
build. Run./stop-docker.shto stop.Development StatusThis project is currently in early-stage development. There may be
breaking changes often. While the major version is 0, minor version
upgrades will often have breaking changes.DevelopingSee thedevelopment guidefor development details.AuthorCreated by Nick DeRobertis. MIT License.
Package: nickffs-example-pkg
pypi-packaging-templateBadgeThis is a basic template that I keep updated with PyPi packaging best practices in an effort to speed up the process of packaging my python based git repositories. I hope you find these of use to you.This README.md file is also made as a general template so as to be useful for other projects.InstallationUse the package managerpipto install example-pkg.pipinstallnickffs-example-pkgUsagefromhelloworldimporthello_worldhello_world()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.ReferencesPython's Official Packaging Tutorial: A tutorial on how to get your own PyPi package.Choose a license: A site that explains all the different Licenses out there and which you need to choose for you project.Make a ReadMe: Another really helpful site explaining what are READMEs and how to make them.LicenseMIT
Package: nickname-generator
(supports cyrillic and latin)Installation and usageFrom pypi:$pipinstallnickname_generatorFrom dist:$pipinstalldist/nickname_generator-*.tar.gzScript usage:>>>fromnickname_generatorimportgenerate>>>print(generate())NicknameConsole usage:$pythonnickname_generatorNicknameOptionsYou can specify locale (available ‘en’ and ‘ru’ values).For example:>>>fromnickname_generatorimportgenerate>>>print(generate('ru'))НикнеймOr pass it as argument in console:$pythonnickname_generatorruНикнейм