Saravanan666/pypi-org huggingface dataset:
Package: amuse-masc
MASCMASC (Make a star cluster) is an AMUSE-based script to generate a star cluster, to be used in N-body simulations or for other purposes. It aims to include all popular distribution models, initial mass functions, and many more features.Supported featuresStellar distributions: Plummer, King, fractal-basedInitial mass function: Salpeter, Kroupa, equal-massMetallicityVirial ratioNot yet supported featuresStars in initial binary/triple/multiple configurationsOther particles than starsRequirementsMASC requires AMUSE (https://github.com/amusecode/amuse) to work.Usage:Package version:from amuse.units import units
from amuse.ext.masc import new_star_cluster
cluster = new_star_cluster(
    number_of_stars=1024,
    # stellar_mass=False,
    initial_mass_function='salpeter',
    upper_mass_limit=125.0 | units.MSun,
    effective_radius=3.0 | units.parsec,
    star_distribution='plummer',
    # star_distribution_w0=7.0,
    # star_distribution_fd=2.0,
    star_metallicity=0.01,
)Standalone version:$ python make_a_star_cluster.py -h
usage: make_a_star_cluster.py [-h] [-o CLUSTERNAME] [-type FILE TYPE]
                              [-N NUMBER_OF_STARS] [-M CLUSTER_MASS]
                              [-dist STAR_DISTRIBUTION]
                              [-gasdist GAS_DISTRIBUTION]
                              [-imf INITIAL_MASS_FUNCTION]
                              [-modelnr CLUSTER_MODEL_NUMBER]
                              [-kingw KING_PARAMETER_W0]
                              [-fractald FRACTAL_PARAMETER_FD]
                              [-uml UPPER_MASS_LIMIT] [-Z METALLICITY]
                              [-ibf INITIAL_BINARY_FRACTION]
                              [-R EFFECTIVE_RADIUS] [-vr VIRIAL_RATIO]

optional arguments:
  -h, --help            show this help message and exit
  -o CLUSTERNAME        Outputfile name [auto]
  -type FILE TYPE       Output file type ([amuse]/ascii/starlab/nemo)
  -N NUMBER_OF_STARS    Number of stars
  -M CLUSTER_MASS       Cluster mass (takes precedence over number of stars)
  -dist STAR_DISTRIBUTION
                        Star distribution ([plummer]/king/fractal)
  -gasdist GAS_DISTRIBUTION
                        Gas distribution ([none]/plummer/king/fractal) NOT
                        IMPLEMENTED YET
  -imf INITIAL_MASS_FUNCTION
                        IMF ([kroupa]/salpeter/fixed)
  -modelnr CLUSTER_MODEL_NUMBER
                        Model number
  -kingw KING_PARAMETER_W0
                        King W0 parameter [7.0]
  -fractald FRACTAL_PARAMETER_FD
                        Fractal distribution [2.0]
  -uml UPPER_MASS_LIMIT
                        Upper mass limit (in MSun) [125.]
  -Z METALLICITY        Metallicity [0.01]
  -ibf INITIAL_BINARY_FRACTION
                        Initial binary fraction (0-1) [0.] NOT IMPLEMENTED YET
  -R EFFECTIVE_RADIUS   Cluster radius [3.0] (parsec)
  -vr VIRIAL_RATIO      Virial ration [0.5], 0.5=stable, 0.75=just expelled
                        gas, 0.1=collapsingCOPYRIGHT/LICENSESee LICENSE
Package: amusement
# amusementamusement is a Python package and CLI (command-line interface) to get the current wait times and show times of attractions at many popular theme parks. We currently support:* All Disney parks in USA, plus Paris* All Universal parks worldwide (with the exception of Singapore)* All Seaworld parks* Hersheypark## Example### CLIGet wait times right from your terminal```amusement islands-adventure --rides```### Library```from amusement.parks.universal.IslandsOfAdventure import IslandsOfAdventureioa = IslandsOfAdventure()print ioa.rides()# or print ioa.shows() if you want show times instead```A full list of the rides and shows in the park will be displayed!## Getting Started```pip install amusement```That's it!## Parksamusement supports a lot of parks. Here's a breakdown of which parks are supported and which features have been implemented.| Park Name                     | Rides       | Shows       || ------------------------------|-------------|-------------|| Magic Kingdom                 |x            |             || Epcot                         |x            |             || Hollywood Studios             |x            |             || Animal Kingdom                |x            |             || Disneyland                    |x            |             || Disney's California Adventure |x            |             || Universal Studios Florida     |x<sup>1</sup>|x<sup>1</sup>|| Islands of Adventure          |x<sup>1</sup>|x<sup>1</sup>|| Universal Studios Hollywood   |x<sup>2</sup>|x<sup>2</sup>|| Universal Studios Japan       |x<sup>3</sup>|x<sup>3</sup>|| Hersheypark                   |x            |             || Seaworld Orlando              |x            |x            || Seaworld San Diego            |x            |x            || Seaworld San Antonio          |x            |x            || Busch Gardens Williamsburg    |x            |x            || Busch Gardens Tampa           |x            |x            |<sup>1</sup> USF/IOA currently only show a subset of attractions in the park. We are looking to address this in a future release.<sup>2</sup> USH uses the official times based off of the USH website. Because this is a website that does not consistently present times in a predictable format, this may fail from time to time.<sup>3</sup> If the park is closed, nothing will appear. We hope to address this in a future release.## ContributorsI welcome any and all contributions! Please view CONTRIBUTING.md for more information.I'm more than happy to help first-timers and anybody else, so don't be shy and respond on the issues if you're interested in helping out.## Tests```nosetests```Run this from the root directory to run tests.## LicenseMIT
Package: amusing
aMusing v0.1.1InstallationIntroductionScoreMuminExample CodeScoreMunimInspirationExamplesInstallationpip install amusingIntroductionprogrammatic animation of sheet musicnotes appearing consecutivelyusesMuseScoreas notation softwareScoregenerates full resolution frames of the videonotsynchronized to audioMunimspectogram.pySTFTlinear spectrumMorlet (DWT)logarithmic spectrumoscilloscope.py2D OscilloscopeExample CodeScoreGet the individual frames of the score into output directoryoutdir:fromamusing.score.animateimportAmusing,Noteif__name__=='__main__':WIDTH_IN_PIXELS:int=1820NUMBER_OF_THREADS:int=8MUSESCORE_FILEPATH:str='score.mscx'amusing=Amusing(width=WIDTH_IN_PIXELS,outdir='frames',threads=NUMBER_OF_THREADS)amusing.read_score(MUSESCORE_FILEPATH)amusing.add_job(measures=1,subdivision=Note(16))amusing.add_job(measures=[2,3],subdivision=Note(4).triplet())amusing.add_job(measures=range(4,7),subdivision=Note(8).n_tuplet(5,4))amusing.generate_frames()Delete all jobs:amusing.delete_jobs()MunimMusic AnimationRender video of the frequency spectrum usingMorlet waveletfromamusing.munim.spectogramimportMorletAUDIO_FILEPATH:str='example.mp3'TO_VIDEO_FILEPATH:str='example.mp4'morlet=Morlet(fps,width,height)morlet.read_audio(AUDIO_FILEPATH)morlet.transform()morlet.render_video(TO_VIDEO_FILEPATH)UsingShort-time Fourier Transform(STFT)fromamusing.munim.spectogramimportSTFTmorlet=STFT(fps,width,height)morlet.read_audio(AUDIO_FILEPATH)morlet.transform()morlet.render_video(TO_VIDEO_FILEPATH)2d-Oscilloscope:fromamusing.munim.oscilloscopeimportOscilloscopeoscilloscope=Oscilloscope(fps,width)oscilloscope.read_audio(AUDIO_FILEPATH)oscilloscope.render_video(TO_VIDEO_FILEPATH)InspirationExamples
Package: amvernoncal
This Python package is great for taking Arthur Murray Vernon’s Google
Calendar events and arrange them in a calendar structure in an Excel
file. That can then be copy-and-pasted into Microsoft Office Publisher
to create a printable PDF calendar.For those who want to go from the printable PDF calendars to a digital
one, you’re in luck! I use machine learning to parse through printable
PDF calendars and create JSONs out of them, where each event has a
title, dance_style and time (if applicable), ripe for creating Google
Calendar events from them.While this project is geared towards use at Arthur Murray Dance Studios,
feel free to take a look at the source code and modify it for your own
calendar’s needs.Have fun!Setup from source code (GitHub)Clone the repo.git clonehttps://github.com/vincentchov/amvernon-cal.gitInstallPython 3.xwith pip.Install Java 8.Create and activate a virtual environment.Install the corporapython-mtextblob.download_corpora.Install dependencies:pip install-rrequirements.txt.Profit!Setup from from PyPI (Pip)Follow steps 2-5 from above.Install amvernoncal from PyPI.pip install amvernoncalHow to go from Google Calendar to an Excel fileActivate the Google Calendar API for your account and obtain yourclient_secret.jsonfile.Activate your virtual environment.Import the module that will use your client secret:from amvernoncal.gcal_to_xlsx import gcal_events_to_xlsx.Give the gcal_events_to_xlsx() function a month and year to search, and the name of the Google
Calendar you’re converting from, making sure to surround each of the two arguments by quotes.
Example:gcal_events_to_xlsx('September2017', 'Classes')That will then create 3 folders: JSONs, PDFs, and Output. Your Excel
file will be in the Output folder.Alternatively, you can invoke gcal_events_to_xlsx() directly in the Terminal usingamvernon_gcal_to_xlsx,
which comes with a help screen, thanks to Docopt.How to go from a printable PDF calendar to a JSONFollow steps 1 and from above.Import the function that will parse your calendar:from amvernoncal.pdfproc.pdf_to_json import parse_calendarGive the parse_calendar() function a path to your calendar, named
based on the month and year, as well as tell it if you want to save
to a JSON file or just return the JSON.
Example:parse_calendar('september_2017.pdf',to_file=True)
Package: amxfirmware
amxfirmwareuse amxtelnet results to check master and device firmware against versions provided. asyncio: n/aMasterFirmware(firmware_dir):firmware_dir: Directory to store firmware lists that will be created.set_systems(systems):List of dicts, where each dict is an AMX system (or at least an AMX master controller).Required keys in each dict:full_name: string. Name that will end up being imported into your Netlinx address book.ip_address: string. Formatted like '192.168.1.1'master_model: string. Formatted like 'NI-700'master_serial: string. AMX serial number.set_versions(ni_700_current,ni_x100_current,nx_current):ni_700_current: string in this format: '1.23.456'. Length of segments does not matter. No letters.ni_x100_current: string in this format: '1.23.456'. Length of segments does not matter. No letters.nx_current: string in this format: '1.23.456'. Length of segments does not matter. No letters.run():Begins parsing information from the files located in input_path, then creates .csv files of each version that has updates. Masters that are already up to date will be put in a list named 'master fw up to date.csv'. Masters that didn't have all of the required keys will be put into 'master fw skipped.csv'. New k:v pairs named 'master_update_list' and 'master_update_info' will also be added to each system which is then bundled with the rest and returned in a list.DeviceFirmware(firmware_dir):firmware_dir: Directory to store firmware lists that will be created.set_systems(systems):List of dicts, where each dict is an AMX system (or at least an AMX master controller).Required keys in each dict:full_name: string. Name that will end up being imported into your Netlinx address book.ip_address: string. Formatted like '192.168.1.1'master_model: string. Formatted like 'NI-700'master_serial: string. AMX serial number.set_versions(ni_700_current,nx_current):ni_current: string in this format: '1.23.456'. Length of segments does not matter. No letters.nx_current: string in this format: '1.23.456'. Length of segments does not matter. No letters.run():Begins parsing information from the files located in input_path, then creates .csv files of each version that has updates. Controllers that are already up to date will be put in a list named 'device fw up to date.csv'. Masters that didn't have all of the required keys will be put into 'device fw skipped.csv'. New k:v pairs named 'device_update_list' and 'device_update_info' will also be added to each system which is then bundled with the rest and returned in a list.
Package: amxlogs
amxlogsfinds, extracts, and clears logs from AMX devices using ftpLogSniffer():returns:logs are written to file and/or logged.set_systems():list of dicts where each dict is an AMX system.minimum key requirements:'full_name' (string)'master_ip' (string)config():user_name: user name used to login to AMXpassword: password used to login to AMXlog_type: default 'error_log', case insensitive.Also try 'camera_log'. Additional types depend on what you name them when you create them in the AMX program. So if you had AMX create logs called late_night_usage.txt, log_type would be 'late_night_usage'.output_dir: path to dir used to store received files.File name is created using 'full_name'amx logfile nameclear_logs: default False.Use True to delete the log files after they are downloaded.debug_ftp: default 0.Set to 1 to view ftplib's builtin debugger on stdout.timeout: default 10. Seconds to timeout socket connection.run():Begin connecting to systems in set_systems(), download logs that match log_type, using settings from config()
Package: amxmaintenance
amxmaintenancepulls together telnet info, log checking, firmware checks, etc.
run() returns the full object for inspection, but what you'll most likely end up working with is instance.campus, which is a list of AMX system dicts.FullScan():telnet_output_dir: (default: amx telnet responses/)error_log_dir: (default: error log/)camera_log_dir: (default: camera log/)master_fw_dir: (default: firmware lists/)device_fw_dir: (default: firmware lists/)set_systems(systems):list of dicts where each dict is an AMX systemminimum key requirements:'full_name' (string)'master_ip' (string)config_excel():uses the amxtoexcel and exceltoamx packagessource_xlsx_path: default 'campus_rooms.xlsx'. This is the excel file that everything else depends on. Each AMX system row will be turned into a dictionary, and then they'll all be put into a list.bare minimum requirements for each system:'full_name''master_ip''master_model' in the format NI-700, NX-2200, etc.export_xlsx: default True. Do you want to export the results to an excel file?xlsx_output_path: default 'campus_complete.xlsx'. If export_xlsx is true, the results are written to this location.config_telnet():Uses the amxtelnet pkg. To send specific commands, use the amxtelnet pkg directly. Also checkout the amxbroadcast pkg (coming soon) if replies don't matter.telnet_user_name: user name for logging into AMX masters.telnet_password: password to use with telnet_user_name.telnet_alt_username: default: 'administrator',telnet_alt_password: default: 'password',scan_telnet: default: True.export_telnet_txt: default: True.def config_logs():Uses the amxlogs pkg. To check for other types of log files, use the amxlogs pkg directly.check_error_log: default: True.clear_error_logs: default: False.error_log_type: default: 'error_log'.check_camera_log: default: True.clear_camera_logs: default: False.camera_log_type: default: 'camera_log'.def config_firmware():ni_700_current: default: '4.1.419'.ni_x100_current: default: '4.1.419'.nx_current: default: '1.6.179'.run():Performs telnet scan of systems defined in set_systems, checks their firmware against the versions provided in config_firmware, checks for logs defined in config_logs, and exports the results to excel.Returns everything to the instance for inspection, but the part you will be working with is instance.campus, which is a list of dicts, with each dict being an AMX master controller.
Package: amxtelnet
amxtelnetamx telnet functionsTelnet():Handles the actual telnet connection and communication with the AMX devices. This class is very universal, but if you run into issues using it on a non-AMX device, it may be caused by the modifications I had to make for AMX:Using the default telnetlib.py with AMX was causing an infinite handshake loop._write() lines 269, 270 disabled IAC (telnet negotiation) doubling.process_rawq() lines 373, 374 changed when raw chars go to buf when IAC.AMXConnect():returns:commands are send to AMX masters. If desired, replies are written to file as .txt and/or logged.set_systems():list of dicts where each dict is an AMX system.minimum key requirements:'full_name' (string)'master_ip' (string)'master_model' (string) (NX-1200, NI-700, etc.)config():user_name: user name to login to AMXpassword: password to login to AMXalt_username: user name to use if user_name failsalt_password: password to use with alt_user_namewrite_results: True or False; write replies to individual .txt files per system.output_path: file path to use if write_results is True. This path should also be used for the path in ParseAMXResponse().set_requests(): list of strings to send to the AMX master. $0D is automaticallyv appended.run(): Begin connecting to systems in set_systems(), sending requests from set_requests(), using settings from config()ParseAMXResponse():Use this class to parse the information gathered from AMXConnect().This class is less universal in that it expects the .txt files to contain responses to the following commands in the following order:'show device','get ip','program info','list'You can append additional commands as needed. The output of ParseAMXResponse().read_telnet_text() is a list of amx system dicts. Current uses of this list:export to excel using amxtoexcel.py to archive campus system statuscode creation using code_creator_django.py or code_creator_usm.pyAMXConnect.path and ParseAMXResponse.path will normally refer to the same location. If you use the default locations in each class, they'll work together using systems/telnet responses/.If there's already .txt files in 'path' you can skip AMXConnect() and go straight to ParseAMXResponse() if using potentially outdated information is acceptable.
Package: amy
AMY PluginAmy AssistantJust import amy to write your plugin.fromamyimportPlugin,Instance,MessageclassMessenger(FacebookClient,Instance):defonCreate(self,username):self.username=usernamedefonAuth(self,token):FacebookClient.__init__(self,self.username,token)defonStart(self):FacebookClient.listen()defonStop(self):FacebookClient.stopListening()defmyNewMessageFunc(message)unifiedMessage=Message().setPlatform('messanger')#   .setUser(message['user'])#   ...Plugin.publishMessange(unifiedMessage.toDict())defmain():Messenger=Plugin('messenger',Messenger)if__name__=="__main__":main()
Package: amy-py
amy_py - Custom Python Syntax Extensionamy_py is a powerful Python package that introduces a unique and expressive custom syntax extension for Python developers. With amy_py, you can leverage an innovative set of keywords and constructs that enhance your coding experience and productivity.FeaturesCustom Syntax: amy_py extends Python's capabilities with custom keywords likeVAR,IF, and more, allowing you to write code in a more intuitive and concise manner.Improved Readability: Our custom syntax enhances code readability, making it easier to understand and maintain complex logic.Boosted Productivity: amy_py streamlines common programming tasks, reducing boilerplate code and saving you time.Seamless Integration: You can seamlessly integrate amy_py into your existing Python projects without disrupting your workflow.InstallationTo get started with amy_py, simply install it usingpip:pipinstallamy_py
Usage
amy_pyisstraightforwardtouse.Importthepackageandbeginwritingcodewiththecustomsyntax:

python
Copycode
importamy_py# Use custom syntaxamy_py.VAR('a',42)amy_py.IF(a==42,"Hello, amy_py!")# Your code continues hereDocumentation
Fordetailedinformationonhowtouseamy_pyandacompletelistofavailablekeywordsandfeatures,pleaserefertoourofficialdocumentation.

Examples
Explorepracticalexamplesandusecasesintheexamplesdirectoryofthisrepository.

Support
Ifyouencounteranyissuesorhavequestions,feelfreetoreachouttousonourGitHubIssuespage.

Contributing
Wewelcomecontributions!Ifyou'dliketoenhanceamy_pyorreportissues,pleasecheckourContributingGuidelines.

License
ThisprojectislicensedundertheMITLicense-seetheLICENSEfilefordetails.

Acknowledgments
WewouldliketothankthePythoncommunityforitscontinuoussupportandinspiration.

Enjoycodingwithamy_pyandunlockanewworldofpossibilitiesinPythondevelopment!
Package: amzn-micro-coral
amzn-micro-coralA minimalistic implementation of a Coral client, used mainly for
people who are working in contexts where they may not be able to
import Coral clients directly.UsageService calls are entirely unopinionated, so you better be good at
reading Coral client configs. A regular instantiation of the service
would be:from amzn_micro_coral import CoralService, CoralAuth

my_service = CoralService(
    url="https://my-service.amazon.com",
    auth=CoralAuth.midway(sentry=False),
)

r = my_service.post("MyService.MyOperation", data={"param1": "value1"})
result = r.json()The client does do a basic level of error checking in case the Coral
service returns the standard error message in the form{"__type": "<message>"}.SamplesThis module also provides some very basic classes for interacting with
generic services:from amzn_micro_coral import crux

r = crux.post(<...>)Some may provide more features than others but have no guarantee of
always working into the future.
Package: amz-ppc-optimizer
Amazon PPC OptimizerThis project is a Python script that optimizes Amazon PPC campaigns by analyzing search term reports and adjusting campaign keywords and bids to improve advertising performance.RequirementsBefore running the script, make sure you have the following prerequisites installed:Python 3.xRequired Python packages (specified inrequirements.txt)You can install the required packages by running:pipinstallamz-ppc-optimizerUsageData PreparationBulk sheet report containing campaign dataSearch term report for sponsored productsSample usagesheet_handler=AmzSheetHandler()sheet_handler.read_bulk_sheet_report(filename="amz-ppc-bulk-file-name.xlsx")keyword_optimizer=ApexOptimizer(sheet_handler.sponsored_prod_camp,desired_acos=0.3,min_bid=0.734)keyword_optimizer.optimize_spa_keywords(exclude_dynamic_bids=False)datagram=keyword_optimizer.datasheetsearch_termed=""ifoptimize_search_termsisTrue:sheet_handler.read_search_terms_report(filename="Sponsored Products Search term report.xlsx")search_terms_optimizer=SearchTermOptimizer(sheet_handler.sponsored_product_search_terms)# Get profitable and unprofitable search terms based on ACOS valueprofitable_st=search_terms_optimizer.filter_profitable_search_terms(desired_acos=0.3)unprofitable_st=search_terms_optimizer.filter_unprofitable_search_terms(desired_acos=0.3)# Add profitable search terms to exact campaignsdatagram=search_terms_optimizer.add_search_terms(datagram,profitable_st,1)datagram=search_terms_optimizer.add_search_terms(datagram,unprofitable_st,0.6)search_termed="ST_"filename="Sponsored_Products_Campaigns_"+search_termed+str(datetime.datetime.utcnow().date())+".xlsx"sheet_handler.write_data_file(filename,datagram,"Sponsored Products Campaigns")Optimization ProcessThe script reads the campaign data from data.xlsx and optimizes keywords in sponsored product campaigns.
It also reads the search term report from Sponsored Products Search term report.xlsx.
Profitable and unprofitable search terms are determined based on the specified ACOS (Advertising Cost of Sales) threshold.
Profitable search terms are added to exact match campaigns, and bids are adjusted.
Unprofitable search terms are added with reduced bids to maintain visibility but control costs.ConfigurationYou can configure the optimization settings in the script:Adjust the desired_acos value to set your desired ACOS threshold for filtering profitable and unprofitable search terms.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.