Saravanan666/pypi-org huggingface dataset:
Package: fanstatictemplate
Fanstatic templateIntroductionThe Fanstatic paster template is used to create Fanstatic python packages.
Fanstatic packages wrap static resources, such as javascript and CSS libraries.For more information on Fanstatic, visithttp://fanstatic.org.UsageAfter installing thefanstatictemplatepackage, a paster template is made
available:$ paster create -t fanstaticWhen running thepaster createcommand, you will be asked to supply the name
of the Fanstatic package and the name, version and URL of the wrapped library.We use thejsnamespace for creating javascript packages, for examplejQueryis made available as thejs.jquerypython package.After running thepaster createcommand, copy the library into the
newly createdresourcessubdirectory and register the Resources
in__init__.py.
A doctest stub is created. It is up to you to make the tests pass based on the
newly registered Resources.CHANGES1.6 (2015-08-12)Update bootstrap to work with recent releases of setuptools.1.5 (2014-05-16)Updated bootstrap to latest buildout 2 version.Added zest.releaser per default.1.4 (2013-04-18)Update to buildout 2.1.3 (2012-03-03)Replaced hgtools with MANIFEST.in because people are also using git
to maintain fanstatic packages. Basically, back to v1.1.1.2 (2011-04-25)Replace MANIFEST.in with hgtools to provide setuptools-svn like functionality.1.1 (2011-01-20)Bootstrap.py and .hgignore were not distributed before.1.0 (2011-01-11)initial release.
Package: fanstatic-tools
Fanstatic is a smart static resource publisher for Python. For more
information on what it’s about and how to use it, see:http://fanstatic.orgShell UtilitiesFanstatic tools comes with a utility script calledmkfanstaticsymlink.
Please typemkfanstaticsymlink--helpat the shell prompt to
know more about this tool.$ mkfanstaticsymlink
make symlink fanstatic/angularjs to ../site-packages/js/angular/resources
make symlink fanstatic/bootstrap to ../site-packages/js/bootstrap/resources
make symlink fanstatic/jquery to ../site-packages/js/jquery/resources

$ mkfanstaticsymlink --sys_path_appends=site-packages --versioning --versioning_use_md5 --base_url=static --publisher_signature=lib --dry-run
make symlink static/lib/angularjs/+version+643d90594087d56cea34e2b460fc94f2 to ../../../site-packages/js/angular/resources
make symlink static/lib/bootstrap/+version+94b615ca583b25c0374fac2f91e6a814 to ../../../site-packages/js/bootstrap/resources
make symlink static/lib/jquery/+version+171ea6989058db3f1fa646d1292bb650 to ../../../site-packages/js/jquery/resourcesInstallationInstalling from PyPI usingpip:pip install fanstatic-toolsInstalling from PyPI usingeasy_install:easy_install fanstatic-toolsInstalling from source:python setup.py installDependenciesPython 2.6, 2.7, 3.2+ or PyPy.sixLicensingFanstatic tools is licensed under the terms of theBSD 3-Clause.Copyright 2012 ENDOH takanao.Projectsource codeis available at Github. Please report bugs and file
enhancement requests at theissue tracker.
Package: fanstore
# Overview
Fanstore is a shared object store to support parallel neural network training. Fanstore provides a POSIX-compatible file system interface through fusepy, and low latency communication through mpi4py. Fanstore can use main memory, RAM disk, and local storage for transient parallel I/O at run time.# To start` sbatch bin/fanstore.slurm `# To manually start fanstore
## The complete ImageNet dataset` module load python3 mpiexec.hydra-f../test/hostfile-ppn1 python3 fanstore.py /tmp/amfora /tmp/data--loadscatter/work/00946/zzhang/imagenet/16-parts--loadbcast/work/00946/zzhang/imagenet/16-parts-validation& `## A quarter of the ImageNet dataset` mpiexec.hydra-f../test/hostfile-ppn1 python3 fanstore.py /tmp/amfora /tmp/data--loadscatter/work/00946/zzhang/imagenet/16-parts-test--loadbcast/work/00946/zzhang/imagenet/16-parts-validation& `# To run a horovod application` module load cuda/9.0 cudnn/7.0 mpiexec.hydra-f/work/00946/zzhang/maverick2/fanstore/test/hostfile-ppn4  python3 keras_imagenet_resnet50_fanstore.py `# Before terminating the job` for h in `cat../test/hostfile`;do   ssh $h "rm-rf/tmp/data; mkdir /tmp/data; mkdir-p/tmp/amfora; rm/tmp/fuse-fanstore.log;fusermount-u/tmp/amfora"; done `
Package: fanta
FantaPythonic API Wrapper For Discord, Fork of SpeedcordInstallingYou can install Fanta from PyPi using the following command:pipinstallfantaInstalling Our Speed VersionYou can install Fanta's Speed version usingpipinstallfanta[speed]It is recommended topin the version in production as breaking changes might occurFeaturesSimple sharding for larger botsMore customizablilityUsageThere are currently few examples, you are free to contribute new examplesSimple command using theMESSAGE_CREATElistenerContributingContributions are more than welcome as long as they follow ourcontribution guidelines
Package: fantable
Fantable - Table Builder For PythonAuthor:Sptty Chan (Fanda)Github & Examples:https://github.com/sptty-chan/fantableExample Table:from fantable import Table # import

create_table = Table(title="Daftar Hero Mobile Legends") # Title hanya optional
create_table.column("no", "nama hero", "role", "tipe damage") # Set Column
create_table.tab_row("01", "gusion", "assasin", "magic damage") # Menambah baris
create_table.tab_row("02", "kagura", "mage", "magic damage")
create_table.tab_row("03", "jhonson", "tank", "magic damage")
create_table.tab_row("04", "lesley", "marksman", "phisical damage")
create_table.commit() # Commit table
print(create_table) # Print tableExample Live:from fantable import Live # import
from fantable import Table
import time

def descript(): # make description for Live
    desc = Table()
    desc.column("time1", "time2", "time3", "time4", "time5")
    desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
    desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
    desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
    desc.commit()
    return desc

screen = Live(refresh=True):
while True:
    screen.render(description=descript())
    time.sleep(0.2)
Package: fantasy-database
# fantasy-database> A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.## DjangoThis test app for Django provides models, migrations, and fixtures that implement the fantasy-database. It'srecommended that app installation be limited to testing only.Example usage:In your `settings.py` module:```python# TestingTESTING = len(sys.argv) > 1 and sys.argv[1] in ('test', 'testserver')if TESTING:INSTALLED_APPS += ('django_fantasy',)...```In a test module:```pythonfrom django.test import TestCaseclass FantasyTests(TestCase):fixtures = ['fantasy-database.json']...```
Package: fantasyfootball-crawler
fantasyfootball-crawlerThis is an open source project that will help people access all the important statistics for fantasy football.
I want to create crawlers for both team and player statistics, and package them into neat dataframes.OverviewFantasy football is a game played by many Americans, however most are uneducated when it comes to the various in-depth statistics that are needed to "level up" your team, and potentially win big. Most websites gloss over important statistics, or don't include all of the information needed (think FantasyPros), or perhaps include too much information (think pro-football-reference). I want to build a one-stop-shop for these important statistics.This project is a pure python project using modern tooling. It uses aMakefileas a command registry, with the following commands:make: list available commandsmake develop: install and build this library and its dependencies usingpipmake build: build the library usingsetuptoolsmake lint: perform static analysis of this library withflake8andblackmake format: autoformat this library usingblackmake annotate: run type checking usingmypymake test: run automated tests withpytestmake coverage: run automated tests withpytestand collect coverage informationmake dist: package library for distributionHow to Install Librarypip install fantasyfootball_crawler.tar.gzHow to Use LibraryUse the library by calling the functions that have been written in ff_functions, after importing them.
Package: fantasy-hockey-notifier-cdk
Fantasy Hockey Notifier CDKAWS CDK construct to send notifications for adds, drops, and trades in an ESPN Fantasy Hockey leagueThis application checks for and sends notifications about adds, drops, and trades in an ESPN Fantasy Hockey league. All ESPN APIs used are unofficial and undocumented, thus this application may break at some point in the future if ESPN changes the response schema for any of the endpoints. The codebase supports local execution, along with deployment to AWS usingAWS CDK.Local ExecutionIn addition to being consumable as a CDK construct (which is the primary use-case), the project supports local execution for testing purposes.Prerequisites for Local ExecutionNode.js 14 or laterSee theEnvironment Variablessection for a list of required and optional variables that should be exported in the shell or set in the .env fileIf using any of the environment variables starting withAWS_or ending with_SSM, you must configure AWS credentials via a local credentials file or environment variables. See theAWS documentationfor details.Shell Commands for Local Executionnpmci
npmstartAPI ReferenceSeeAPI.md.Environment VariablesRequired VariablesFH_SEASONorFH_SEASON_SSM: The year of the fantasy hockey season (i.e.2020for the 2019-2020 season)FH_LEAGUE_IDorFH_LEAGUE_ID_SSM: The ID of the ESPN fantasy hockey league (this is displayed in the URL when you go to theMy Teampage) or the path for an SSM parameter with this value (SSM variable takes prescedence if both are specified)ESPN_S2_COOKIEorESPN_S2_COOKIE_SSM: The value of yourespn_s2cookie to be used for authentication (you can find this by examining stored cookies for espn.com using the Chrome or Firefox developer tools) or the path for an SSM parameter with this value (SSM variable takes prescedence if both are specified)Optional VariablesAWS_SNS_TOPIC_ARN: The ARN of an existing AWS SNS topicAWS_DYNAMO_DB_TABLE_NAMEorDISCORD_WEBHOOK_SSM: The name of an existing Dynamo DB table to use for storing last run dates (takes priority overLAST_RUN_FILE_PATHif both are set) or the path for an SSM parameter with this value (SSM variable takes prescedence if both are specified)DISCORD_WEBHOOK: A Discord webhook URLLAST_RUN_FILE_PATH: A local file path to use for storing last run dates (defaults to.lastrun)EARLIEST_DATE: A unix timestamp in milliseconds to use as the earliest date when looking up transactionsLATEST_DATE: A unix timestamp in milliseconds to use as the latest date when looking up transactionsLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: fantasylcs
Fantasy LCS API WrapperCreated a Fantasy LCS API in Python 3.6.Installationpip install fantasylcsDocumentationTable of Contents:FantasyLeague documentationObtains general data from the specified fantasy leagueSeasonData documentationObtains data of the fantasy season so farPlayerData documentationObtains the player's seasonal dataTeamData documentationObtains the team's seasonal dataDonationsBoost this summoner out?
Package: fantasynames
Fantasy Name GeneratorA random name generator that produces names aligning (more or less) with common conventions for fantasy characters in fictional media such as Dungeons and Dragons or World of Warcraft.Installationpython3 -m pip install fantasynamesOr if your project is using Poetry:poetry add fantasynamesUsageThe following name generating methods are provided for a variety of different stereotypical fantasy "races", as well as a few different "medieval-y" languages:importfantasynamesasnamesnames.elf()# Example outputs: 'Farathia Eaviel', 'Iethian Willowblossom'names.dwarf()# Example outputs: 'Dagdr Steelbeard', 'Thorinna Ironstrike'names.hobbit()# Example outputs: 'Libby Honeyfoot', 'Flublius Sweetscone'names.french()# Example outputs: 'Richert Roublac', 'Clavena de Clardalle'names.anglo()# Example outputs: 'Brandin of Avonlyn', 'Kallem Davenmere'names.human()# Example outputs: 'Danric du Tourbloc', 'Sumia Sageholme'Note thathuman()provides a diverse mix of different first and last name styles, includinganglo()andfrench()...and more!You can also pass a string argument to specify whether you want to recieve masculine or feminine names. By default, it's totally random:names.human()# this will randomly generate either a male or female namenames.human('any')# this is equivalent to the above, in case you want to be specificnames.human('male')# this will generate a masculine namenames.human('female')# this will generate a feminine nameContributingPoetryThis package usesPoetryfor package management. After checking out the repo, usepoetry installto install all the required dependencies. Anytime you need to add a package, use:poetry add PACKAGE_NAME_HERELinting / FormattingWe do code formatting withPython Black, additional linting withflake8, and type checking withmypy. Before opening a PR, please make sure to run all of these. Below is a helpful command to do them all at once:poetry run black fantasynames && poetry run flake8 fantasynames && poetry run mypy fantasynamesGuidesIf you want to make your own name generators, check out:How to Add a New Name Generator GuideAnd then if you want to ramp up the complexity, take a look at:Transformation Guide
Package: fantasy-premier-league-stats
Fantasy Premier League variants Stats and VisualizationThis project contains a package for collecting captaincy, chip usage, ownership, effective ownership, template team stats fromFantasy Premier League,Fantasy Allsvenskan, andFantasy Eliteserien.InstallationTo be able to run the package, you have to have Python 3+ installed on your computer.Check if you have python and pip available. If notyou have to install them.After running the following command, you are ready to go:pip install fantasy-premier-league-statsUsageFirst, you have to choose one of the games:FPL,ALLSVENSKANorELITESERIEN.To be able to collect stats and create visualizations, you need to get player information and also the teams.players = api.get_players(game)
team_ids = api.get_league(league_id, max_players, game)
teams = api.get_league_team_picks(team_ids, gameweek, game)After this, you can get the statistics and plot them if you want (after necessary imports):chip_usage = chips.get_weekly_chip_usage(teams, percentage=True)
captaincy = captains.get_captaincy_stats(teams, players, percentage=True)
ownership_stats = ownership.get_ownership_stats(teams, players)
effective_ownership_stats = ownership.get_effective_ownership_stats(teams, players)
template = template_team.create_template_team(teams, players, effective=True, percentage=True, with_team=True)

plots.draw_chip_usage(chip_usage)
plots.draw_captaincy_stats(captaincy)
plots.draw_ownership_stats(ownership_stats)
plots.draw_effective_ownership_stats(effective_ownership_stats)
plots.draw_template_team(template, game)You can either see the plots while running your script or save them to a path of your choice.Another point is that team picks are cached in path~/.fplfolder, and if you do not want to download team picks again, you can addoverwrite=Falsetoapi.get_league_team_picksfunction call. If you want to clear the directory, you can runclear_directoryfunction inutilities.Future Improvements and ContributingI do not plan to enhance the package into containing live stats, but all contributions are welcome. You can create issues for feature requests and bugs. You can also contribute by adding features and creating pull requests.
Package: fantasy-rankings-scraper
FANTASY-RANKINGS-SCRAPERA Python package for scraping fantasy football draft rankings across multiple websites.InstallationRepoClone the repository onto your machine to get started. Ensure you have Python and pip installed, then set up the virtual environment using:pipenv install -r "requirements.txt"
pipenv shellUsageCommand Line Examplepython scrape.py fantasypros.com 1These will output the scraped Standard scoring rankings from fantasypros.com.AboutScoring Format Mapping1 = Standard2 = Half-PPR3 = PPRCurrently Supported SitesFantasyFootballCalculatorRotoballerFantasyProsTermsThis project is for learning purposes only. Scraping websites may violate terms of use. Please use responsibly and do not create large volumes of traffic for supported sites. This project is in no way affiliated with the NFL or any of the supported websites.
Package: fant-sizer
Usage:After installation, you can run this package directly in command line. Launching it without arguments starts it in interactive mode:Sample output:Path: /home/sany/PycharmProjects
Number of files: 6657
№ |     B     |  MB   | Path
1 | 368078630 | 368.1 | /home/sany/PycharmProjects/xml_to_csv/Harrods_Google_Feed_USD_US.xml
2 | 195476333 | 195.5 | /home/sany/PycharmProjects/xml_to_csv/test.csv
3 | 188825866 | 188.8 | /home/sany/PycharmProjects/just/test.csv
4 |  40412990 |  40.4 | /home/sany/PycharmProjects/BuildingMachine/_sparsetools.cpython-36m-x86_64-linux-gnu.so
5 |  38513408 |  38.5 | /home/sany/PycharmProjects/BuildingMachine/.libs/libopenblasp-r0-39a31c03.2.18.soBesides that, you can start it with arguments:-h,--helpshow this help message and exit-pPATHthe path to parent dir-nNUMBERhow much files will be shown-m,--minsort by min size--biggestget information about the biggest file--smallestget information about the smallest file--averageget the sum of the sizes divided by how many files are in the directory--medianget the middle value of an ordered list of sizes--rangeget the difference between the min and max file sizes--modeget file sizes repeated most oftenSample output$ fant_sizer -p /home/sany/PycharmProjects/some_dir -n 40 -m

Path: /home/sany/PycharmProjects/some_dir
Number of files: 45
 № |  B   | MB  | Path
 1 |    0 | 0.0 | /home/sany/PycharmProjects/some_dir/setup.cfg
 2 |    6 | 0.0 | /home/sany/PycharmProjects/some_dir/.gitignore
 3 |   10 | 0.0 | /home/sany/PycharmProjects/some_dir/runtime.txt
 4 |   23 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/HEAD
 5 |   24 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/COMMIT_EDITMSG
 6 |   41 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/refs/heads/master
 7 |   73 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/description
 8 |   92 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/config
 9 |  180 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/vcs.xml
10 |  189 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/hooks/post-update.sample
11 |  208 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/misc.xml
12 |  240 | 0.0 | /home/sany/PycharmProjects/some_dir/.git/info/exclude
13 |  280 | 0.0 | /home/sany/PycharmProjects/some_dir/.idea/modules.xmlDownloadpython3.6 -m pip install fant_sizer
Package: fanucpy
fanucpy: Python package for FANUC industrial robotsIMPORTANTThe funding for this project officially ended on September 1, 2023. I am seeking external funding to keep this package alive and to develop packages such as abbpy, kukapy, etc. Please help me with your comments and use cases to understand better your needs. This is my calendar link for arranging a quick video call:https://calendar.app.google/GRfs1Q61QbQSMtAD8.Software contentsThe package consists of two parts:Robot interface code written in Python programming languageFANUC robot controller driver (tested with R-30iB Mate Plus Controller) written in KAREL and FANUC teach pendant languagesThe communication protocol between the Python package and the FANUC robot controller is depicted below:Python package installationpipinstall-UfanucpyDriver installationFollow thesestepsto install FANUC driver.UsageConnect to a robot:fromfanucpyimportRobotrobot=Robot(robot_model="Fanuc",host="192.168.1.100",port=18735,ee_DO_type="RDO",ee_DO_num=7,)robot.connect()Moving# move in joint spacerobot.move("joint",vals=[19.0,66.0,-33.0,18.0,-30.0,-33.0],velocity=100,acceleration=100,cnt_val=0,linear=False)# move in cartesian spacerobot.move("pose",vals=[0.0,-28.0,-35.0,0.0,-55.0,0.0],velocity=50,acceleration=50,cnt_val=0,linear=False)Opening/closing gripper# open gripperrobot.gripper(True)# close gripperrobot.gripper(False)Querying robot state# get robot stateprint(f"Current pose:{robot.get_curpos()}")print(f"Current joints:{robot.get_curjpos()}")print(f"Instantaneous power:{robot.get_ins_power()}")print(f"Get gripper state:{robot.get_rdo(7)}")Calling external programrobot.call_prog(prog_name)Get/Set RDOrobot.get_rdo(rdo_num=7)robot.set_rdo(rdo_num=7,value=True)Get/Set DOUTrobot.get_rdo(dout_num=1)robot.set_rdo(dout_num=1,value=True)ContributionsExternal contributions are welcome!Agajan Torayev: Key developerKarolFan MoMichael Yiu: External contributorRobotAppWe introduce an experimental feature: Robot Apps. This class facilitates modularity and plug-and-produce functionality. Check the following example apps:Pick and Place AppAruco Tracking AppFANUC ChatGPTCitationPlease use the following to cite if you are using this library in academic publicationsTowards Modular and Plug-and-Produce Manufacturing Apps@article{torayev2022towards,
  title={Towards Modular and Plug-and-Produce Manufacturing Apps},
  author={Torayev, Agajan and Mart{\'\i}nez-Arellano, Giovanna and Chaplin, Jack C and Sanderson, David and Ratchev, Svetan},
  journal={Procedia CIRP},
  volume={107},
  pages={1257--1262},
  year={2022},
  publisher={Elsevier}
}AcknowledgementsThis work was developed at theInstitute for Advanced Manufacturing at the University of Nottinghamas a part of theDigital Manufacturing and Design Training Network.This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 814078.
Package: fanuc-remote-buffer
Fanuc Remote Buffer InterfaceFanuc Remote Buffer interface libraryFree software: MIT licenseDocumentation:https://fanuc-remote-buffer.readthedocs.io.FeaturesParse and build packets used for Fanuc remote buffer interfaceCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.3 (2018-09-07)added Protocol class for storing configuration and generation of structuresimproved documentation0.1.2 (2018-09-05)Changed naming of a protocol class.0.1.0 (2018-09-04)First release on PyPI.
Package: fanumbers
fanumbersA Library to work with Farsi(Persian) numbersUsagesto_fa_numberUse this method to convert an integer into a Persian number. You can select encoding, Persian, Arabic or All possibilities (all combinations of Arabic and Persian digits).fromfanumbersimportto_fa_numberprint(to_fa_number(85))# returns a str, in Persian digitsprint(to_fa_number(75,'arabic'))# returns a str, in Arabic digitsprint(to_fa_number(2018,'all'))# returns a list of strings, all possibilitiesfrom_fa_numberUse this method to convert a number in Persian and Arabic digits to an integer.fromfanumbersimportfrom_fa_numberprint(from_fa_number("۸۵۸۵"))# returns an int, 8585number_to_wordsUse this method to convert int or Arabic/Persian numbers into Persian words.This method two optional arguments,ordinalwhich is set to False by default and if set to True will return ordinal numbers instead of cardinal. Andall_possibilitieswhich is set to False by default and if set to True, will return a list of all possible writings of the number instead of a single string.fromfanumbersimportnumber_to_wordsprint(number_to_words(85))# هشتاد و پنجprint(number_to_words(7,ordinal=True))# هفتمforresinnumber_to_words(111111111,all_possibilities=True):# wil return multiple stringsprint(res)