Saravanan666/pypi-org huggingface dataset:
Package: factorygame-dave22153
FactoryGamePython game engine to have a 2d movable "graph".OverviewDesignFactorygame is a game engine meant for simple, minimalist games. It supports
a large array of graphical features such as shapes, colors and lines. The
framework is developed with the idea to enable rapid game development and
prototyping, with a robust and extendable toolset.FlexibilityThe use of the Python scripting language throughout makes this engine highly
flexible. It has an open source policy to support understanding and extending
any part of the engine with ease. By letting users choose their workflow, it
empowers them to use their existing techniques to speed up build times.Development OperationsThis game engine can cater to many experience levels. Python is already
vastly popular and the number of users is growing. Nothing in the framework
is preventing users from building a game as it's designed to be a streamlined
hassle-free time. Previous users of Godot's scripting language will feel at
home.InstallationJust download it and start working straight away. It is recommended to have
some Python knowledge, although this is optional. First take a look at the
included samples by executingrun_test.py. This will showcase all the current
included features.UsageYou are free to use this engine as you wish. We would love to know if you have
made a game with it.
Package: factory-man
FactoryManFactoryMan provides Django specific extensions forFactory Boy.Installationpip install factory-manUsageFactoryMan provides you with a factory functioncreate_populated_modelfactory, which accepts the model class and automatically creates a factory class based on the model's fields. If you want to override some fields, you can pass them as keyword arguments to the__init__method.fromfactorymanimportcreate_populated_modelfactoryfrom.modelsimportProjectProjectFactory=create_populated_modelfactory(Project)ExpiredProjectFactory=create_populated_modelfactory(Project,deadline='1999-04-04')To override the factory's_createmethod, usecreate_overridekeyword argument. This is useful to create many-to-many connections as described in the Factory Boy documentation.Check outthis articlefor a more detailed user guide.Low-level FeaturesModelFieldSequenceextendsfactory.Sequenceto provide a little more DRY syntax. It accepts a Django model class as parameter and uses the class name togeteher with the field name to which it is bound to for creating an unique value.Alternatively, it can accept astringparameter, which will be used directly instead of a name derived from the class and field.Example:fromfactory.djangoimportDjangoModelFactoryasModelFactoryfromfactorymanimportModelFieldSequenceclassCharityFactory(ModelFactory):classMeta:model=Charityname=ModelFieldSequence(Charity)# Will be `Charity__name-n`, where n is the object countemail=ModelFieldSequence(string='hello@charity.ee')# Will be `hello@charity.ee-n`, where n is the object count
Package: factorymind
This is the documentation for the Python packagefactorymindwhich makes it easier to interact with the data
on the FactoryMind platform.InstallationFrom PyPi:pipinstallfactorymindFrom source:<TODO:Document>UseTo interact with your data on the FactoryMind platform,
run>>>fromfactorymind.data_loaderimportFactoryDB>>>mydb=FactoryDB(apikey=YOUR-API-KEY)>>>mydb.list_data_sources()['example_data.energy_demand','example_data.sensors','sensor_data.sensors','sensor_data.sensors_metadata']See theofficial docsfor more information and examples.
Package: factory_pandas
factory_pandasFactory Pandas is an alternative to pandas(DataFrame, Series) testing fixtures.importpandasaspdimportfactory_pandasasfp# Define Pandas's DataFrame structureclassSampleDataFrameFactory(fp.DataFrameFactory):row_num=5column_num=2label1=fp.IntegerColumnFactory('label1',min_value=0,max_value=10)label2=fp.FloatColumnFactory('label2',min_value=0,max_value=10)# returns DataFrame Objectsample_data_frame=SampleDataFrameFactory.create()CHANGES0.0.0 (2015-05-17)Create this project.
Package: factorytest-pinephone
Current testsMPU-6050, kernel interface check, built-in self-test runLIS3MDL, kernel interface check, built-in self-test runSTK3335, kernel interface checkRTL8723CS, wifi scan checkEG25-G, check booting and sim connectivityOV5640, takes test pictureGC2145, takes test picturetouchscreen testEarpiece testSpeaker testHeadphone testModem status pageIncoming call statusRGB notification led testVibration motor testFlashlight and torch testAfter the tests are successfull a bundled OS image can be flashed, it supports compressed images and bmap files.
Package: factory-trytond
Factory-trytondFactory-trytond is afactory_boyextension developed to work withTryton ERP.
We can create our own ERP's model factories to do some testing or to populate our databases with some sample data.How does it work?Steps to use Factory-trytond:Inherit the base factory class.Define the meta model the factory will construct.Define the default declarations of the factory.Note that the meta model can be atrytond pool model name.Here's a factory example with Tryton's modelUser:importfactoryimportfactory_trytondclassUserFactory(factory_trytond.TrytonFactory):classMeta:model='res.user'name=factory.Faker('name')login=factory.Faker('user_name')user=UserFactory.build()user.save()# it is a standard Tryton object as would be returned by Tryton's object pool
Package: factotum
# A Factotum for Headless Factorio!
A python manager to deploy and run headless factorio servers.
By: Brian Ballsun-Stanton, Andrew Ardill, and James ZhaoReleased under the GPL v3 License, 2016.
No warranty of any kind, folks.## Installation:### On ubuntu 14.04/16.04:`sudo apt update && sudo apt installpython3-pip-y&& echo /opt/factorio >$HOME/.factorioPath&& sudo pip3 install factotum && factotum fulldeploy && source$HOME/.bashrc`### On other systems:`sudo pip3 install factotum`## Usage:factotum –helpThis provides all Factory Factotum commands.factotum COMMAND –helpThis provides help for each Factory Factotum command.factotum fulldeployRuns install, authenticate, newmap, setup.factotum installInstalls factorio (default /opt/factorio, override with a new path in ~/.factorioPath)factotum authenticate –username <Username>Gets your authentication token from factorio servers so your password isn’t stored in plaintext.factotum newmapGenerates a new map from a config file in FACTORIOHOME/config/mapsettings.jsonfactotum setup –servername “Server Name Here” –description “Server Description Here” –tag “Tag 1” –tag “Tag n”Configures the settings.json file including setting a password of 4 diceware words.factotum factorio startThis starts the factorio headless server in daemon mode with latest save.factotum factorio stopThis asks the headless server to stop. Politely. It will take some time and will likely report failed.factotum factorio statusThis reports on the status of the server.factotum rcon /helpThis sends commands into an already running server started by factotum.
Package: factryengine
📅 factryenginefactryengineis a high-speed Python package for effortless and efficient task scheduling, specifically tailored for production scheduling. Built withnumpy, it ensures tasks are executed in the correct order while considering their priorities, resources, and dependencies.🛠 InstallationInstallfactryenginewith a simple pip command:pipinstallfactryengine🌟 Features⚡Fast Performance: Built withnumpyfor high-speed task scheduling.🏭Production Scheduling: Specifically designed for seamless production scheduling.📝Simple Task Creation: Easily define tasks with attributes like duration, priority, and resources.🛠️Resource Management: Assign resources with availability windows to tasks.🔄Task Dependencies: Ensure tasks that depend on others are scheduled in the correct order.📅Efficient Scheduling: Automatically schedule tasks while considering their priorities and dependencies.🚀 Quick StartGet started withfactryenginewith this basic example:fromfactryengineimportTask,Resource,Scheduler# Creating a Resource objectresource=Resource(id=1,available_windows=[(0,10)])# Creating Task objectstask1=Task(id=1,duration=3,priority=2,constraints=[resource])task2=Task(id=2,duration=5,priority=1,constraints=[resource],predecessor_ids=[1])# Creating a Scheduler object and scheduling the tasksscheduler=Scheduler(tasks=[task1,task2],resources=[resource])scheduler_result=scheduler.schedule()In this example,task1is scheduled beforetask2astask2depends ontask1, despite its lower priority.📖 DocumentationFor more detailed information, check out thedocumentation.🤝 ContributingContributions, issues, and feature requests are welcome!📝 LicenseThis project isMITlicensed.
Package: facts
Returns facts of local machine.Installationpip install factsCLI UsageGet all facts:facts allGet one fact:fact read fooGet the human readable memory usage:fact read memory --humanSet one custom fact:fact write foo 'It is nice'When value is a mapping, then you can choose between 2 merging strategies:fact write foo '{is: bar}' --format yaml --replace
fact write foo '{not: baz}' --format yaml --mergeDelete a custom fact:fact delete fooTargetingBy convention key facts can’t have colon marks.
Because facts can be nested, and it’s possible to target these sub data.
Each parts must be seperated by a colon. For example if:fact read fooreturns:is: bar
not: bazThen:fact read foo:isreturns:barBut:fact read foo:wrong:keywill return nothing.MatchingIt is also possible to check if a certain fact turns out true:fact match foo:is:barGraftingFacts allow you to extends with ‘grafts’. There is 2 ways1. by modulesYou can extend with your own facts. Any python modules under~/.facts/graftswill be loaded. For example:# ~/.facts/grafts/my_grafts.py

from facts import graft, mark

@graft
def hello_world():
    return {
        'hello': 'world',
        'size': mark(1234567890, 'bytes')
    }Will append the facthellowith the valueworld, and the factsizewith one of these values (depending the –human switch)1234567890or1.1G.2. with setuptoolsYou also write python libraries that will contribute to facts with using setuptools. Add the following to the setup.py function:entry_points={
    'facts.graft': [
        'plugin-1 = mylib:plugin_1',
        'plugin-2 = mylib:plugin_2'
    ]
}
Package: facts-generator
use Execute_Read_Only_Mode function to read the output and generate factsmandatory command output requires : 


# Cisco 
'sh run'
'sh lldp nei'
'sh int status'

# Juniper 
'show configuration | no-more'
'show lldp neighbors | no-more'
'show interfaces descriptions | no-more'=============================================- USAGE GUIDELINES -=============================================
from facts_generator import FactsGenOPTION 1 # single file with all outputsdatapath = "c:/Users/xxxx/Desktop/Data/"		# path
capture_file = datapath + "switch_op.log"OPTION 2 # output distributed in mutliple filesconf = datapath + 'conf.log'intf = datapath + "interfaces.log"lldp = datapath + "lldp.log"capture_file = {'config': conf, 'interfaces': intf, 'neighbour': lldp }fg = FactsGen()
fg.parse(capture_file)custom processes on fg.facts to add/modify facts  ## OPTIONALfg.process(
# map_sheet=custom_map_excelsheet,                  # optional
# customer_var=additional_customer_variables_dict,  # optional
)
fg.to_file(datapath)
Package: fact-sphere
fact-spherefact-sphereis a library for Portal 2 Fact Sphere facts
born from an off-handed comment during a conversation on IRC:<%Ashmandias> then slap up a random fact from Portal 2's Fact Sphere.Credit toPortal Wikifor the reference material.Installationpip install -U fact-sphereUsageFor the release version, see thestable docs.For the development version, see thelatest docs.AppreciationShowing appreciation is always welcome.ThankGet your own thanks inbox atSayThanks.io.ContributeContributeby submitting bug reports, feature requests, or code.Help Others/Stay InformedDiscourse forumReferrals/Donations
Package: fact-sphere-cli
fact-sphere-clifact-sphere-cliis a CLI for Portal 2 Fact Sphere facts using thefact-spherelibrary.Installationpip install -U fact-sphere-cliUsageUsage: fact-sphere [OPTIONS] COMMAND

  A CLI for Portal 2 Fact Sphere facts.

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  text*  Get the text for a random fact.
  audio  Get the filepath or file content for a random fact.
  fact   Get the text, filepath, and type for a random fact.A plainfact-spherecall defaults to running thetextcommand.The only option is for theaudiocommand. Use--readoption
to output the binary file content of the audio for piping.AppreciationShowing appreciation is always welcome.ThankGet your own thanks inbox atSayThanks.io.ContributeContributeby submitting bug reports, feature requests, or code.Help Others/Stay InformedDiscourse forumReferrals/Donations
Package: factum
FactumWhat if every function remembered its own output, and knew when and where to acquire its own inputs?Factum is a simple agent-inspired framework for computational DAG composition and execution.TheoryObject Oriented Programming (OOP) was originally conceived, at least in part, as an abstraction of the actor model of distributed functional programming in a serial computing environment.Factum represents a simple return to that vision. It's a functional paradigm facilitated by an object oriented implementation.Core to the idea is theFactobject: a class that definesinputs, afunctionand anoutput. The inputs can change, but they're not meant to. Thus the Factum represents the function in a particular context: a fact - it always represents the same information.It's basically a function that is responsible for gathering its own inputs and caching its output (so other function objects can efficiently gather their own inputs).TheseFactobjects, taken together are wired up to require inputs from each other and generally form a directed acyclic graph, though there is no mechanism to enforce a DAG structure.Usefrom factum import Fact

def a_node():
    print('A running!')
    return 1

def b_node():
    print('B running!')
    return 2

def c_node(*args):
    print('C running!')
    return args[0] + args[1]

def d_node(self, **kwargs):
    return self._transformation(**kwargs)

def _transformation(self, cthing):
    print('D running!')
    return cthing + 1

# Fact(function, inputs, name)

a = Fact(a_node)
b = Fact(b_node, None, 'Beta')
c = Fact(c_node)
a > c
b > c
d = Fact(d_node, {'cthing': c})
d.add_method(_transformation)

d.run()
>>> A running!
>>> B running!
>>> C running!
>>> D running!
>>> 4

# cached
d.run()  
>>> 4

b.run(-1)
>>> B running!
>>> 2

# re-runs downstream of change
d.run()
>>> C running!
>>> D running!
>>> 4

d.visualize()
Package: facturae
# Facturae libraryThis repo is a fork from [totaler/facturae](https://github.com/totaler/facturae) desired to add XML signature support and some improvements.Originally it allows you to build Facturae xml format based on v3.2.1It depends on [libComXML](https://github.com/gisce/libComXML)## Install` $ pip install facturae `
Package: facturapdf
Create PDF invoice according to Spanish regulations.UsageCheck tests/tests_functional.py and facturapdf/strategies files.GeneratorsTo ease the creation of pdf flowables you can use the generators functions.Element generatorCreates a flowable based on a given string. Check the element function
to see the available elements. Arguments are given inside brackets separated by pipelines (|).# Generates a Image flowable with 25 mm of widthgenerators.element('image[logo.jpg|25]')# Generates a FrameBreak flowablegenerators.element('framebreak')Chapter generatorCreates a list of flowables passing any number of string arguments.generators.chapter('Paragraph[Cat in the hat]','image[hat.jpg|25]')# Passing a string that is not a valid flowable keyword or anything that is not a string will do nothing# So you can mix chapter generator with another one at oncegenerators.chapter('hello',[1,2,3])# will return ['hello', [1, 2, 3]]Testing$python-munittestdiscoverCheck for output files attests/outputfolder.Changelog0.0.4 (2015-02-03)Upgrade reportlab version to 3.1.44 to fix a issue with pillowFix Python 3Several improvements on testing infrastructure: add tox andTravis-CILicenseBSD 3-Clause License. See LICENSE file.Building statusMasterDevelop
Package: facturapi
FacturAPI – Python Client LibraryEspañolThis is a Python library forFacturAPI⚠️Warning: This is still an unofficial library and it is still under development. This is not a final product.⚠️FacturAPI makes it easy for developers to generate valid Invoices in Mexico (known as Factura Electrónica or CFDI).This library is based oncuenca-python💙.💻 InstallationJust usepipto install de library:pipinstallfacturapi🚀 Getting startedAuthenticate with your API KeyBe sure to create a free account onFacturAPIand have access to your test or live API keys.There are two ways to configure your API Key to use the library:Environment variable:Just set an environment variable and the library will automatically use it:exportFACTURAPI_KEY=YOUR_API_KEYUsing theconfiguremethod:If you want to set it in the code, you can import and use theconfiguremethod:fromfacturapiimportconfigureconfigure(api_key='YOUR_API_KEY')Create a customerAfter configuring the API Key, you can use the client to perform many actions on the resources, for example to create
a Customer:importfacturapifromfacturapi.resources.customersimportCustomerRequest,CustomerUpdateRequestcustomer=facturapi.Customer.create(data=CustomerRequest(legal_name='Frida Kahlo',tax_id='ABCD111111CBA',email='frida_kahlo@test.com',))For more details on the data used to create a Customer and other resources, be sure to check out thedocs.More examples can be found on theexamplesdirectory.📚 DocumentationYou can checkout Facturapi'sdocsfor more info on the API and its resources.Or checkout the library'sdocsfor usage and more technical details.💡 ContributeFound a bug?Please create an issue addressing the bug and how to replicate it.Want to contribute?Be sure to fork the repo and send your PR! Any and all help is appreciated.
Also don't forget to keep the coverage above 98%, we love tested code!Contacts:Facturapi:contacto@facturapi.ioCuenca:dev@cuenca.comDeveloped and maintained with 💙 byCuenca
Package: facturapi-2.0
FacturAPI – Python Client LibraryEspañolThis is a Python library forFacturAPI⚠️Warning: This is still an unofficial library and it is still under development. This is not a final product.⚠️FacturAPI makes it easy for developers to generate valid Invoices in Mexico (known as Factura Electrónica or CFDI).This library is based onfacturapi-python.💻 InstallationJust usepipto install de library:pipinstallfacturapi-2.0🚀 Getting startedAuthenticate with your API KeyBe sure to create a free account onFacturAPIand have access to your test or live API keys.There are two ways to configure your API Key to use the library:Environment variable:Just set an environment variable and the library will automatically use it:exportFACTURAPI_KEY=YOUR_API_KEYUsing theconfiguremethod:If you want to set it in the code, you can import and use theconfiguremethod:fromfacturapiimportconfigureconfigure(api_key='YOUR_API_KEY')Create a customerAfter configuring the API Key, you can use the client to perform many actions on the resources, for example to create
a Customer:importfacturapifromfacturapi.resources.customersimportCustomerRequest,CustomerUpdateRequestcustomer=facturapi.Customer.create(data=CustomerRequest(legal_name='Frida Kahlo',tax_id='ABCD111111CBA',email='frida_kahlo@test.com',))For more details on the data used to create a Customer and other resources, be sure to check out thedocs.More examples can be found on theexamplesdirectory.📚 DocumentationYou can checkout Facturapi'sdocsfor more info on the API and its resources.Or checkout the library'sdocsfor usage and more technical details.💡 ContributeFound a bug?Please create an issue addressing the bug and how to replicate it.Want to contribute?Be sure to fork the repo and send your PR! Any and all help is appreciated.
Also don't forget to keep the coverage above 98%, we love tested code!Contacts:Facturapi:contacto@facturapi.ioCuenca:dev@cuenca.comKea:hola@fixat.com
Package: facturapi-python
FacturAPI Unofficial Python clientThis is an unofficial Python wrapper forFacturAPIFacturAPI makes it easy for developers to generate valid Invoices in Mexico (known as Factura Electrónica or CFDI).If you've ever usedStripeorConekta, you'll find FacturAPI very straightforward to understand and integrate in your server app.Installpipinstallfacturapi-pythonGetting startedCreate a customerfromfacturapiimportFacturapiapi=facturapi("FACTURAPI_SECRET_KEY")new_customer=api.customers.create({"legal_name":"Dunder Mifflin","tax_id":"ABC101010111","tax_system":"601","email":"email@example.com","phone":6474010101,"address":{"street":"Blvd. Atardecer","exterior":142,"interior":4,"neighborhood":"Centro","city":"Huatabampo","municipality":"Huatabampo","zip":86500,"state":"Sonora","country":"MEX"}})Create a productfromfacturapiimportFacturapiapi=facturapi("FACTURAPI_SECRET_KEY")new_product=api.products.create({"description":"Ukelele","product_key":60131324,"price":345.6,"tax_included":true,"taxability":"01","taxes":[{"type":"IVA","rate":0.16}],"local_taxes":[],"unit_key":"H87","unit_name":"Elemento","sku":"string"})Create an invoicefromfacturapiimportFacturapiapi=facturapi("FACTURAPI_SECRET_KEY")new_invoice=api.invoices.create({"customer":"YOUR_CUSTOMER_ID",# You can also use a customer object instead"payment_form":api.catalogs.payment_forms.TRANSFERENCIA_ELECTRONICA,"items":[{"quantity":1,"product":'YOUR_PRODUCT_ID'# You can also use a product object instead}]})Download your invoicefromfacturapiimportFacturapiapi=facturapi("FACTURAPI_SECRET_KEY")withopen("invoice.zip","wb")asbinary_file:invoice=api.invoices.download_zip("INVOICE_ID")binary_file.write(invoice)Send your invoice by emailfromfacturapiimportFacturapiapi=facturapi("FACTURAPI_SECRET_KEY")message=api.invoices.send_by_email("INVOICE_ID","customer@email.com")DocumentationYou can find more on what to do on theofficial documentationHelp:warning: This is an unofficial project, the maintainers does not have any affiliation with FacturAPI or their developers. Any error with the service itself should be reported to the official support channelsFound a bug?If you find a bug for this API client, please create an issue on theproject's github pageContributeAll PRs are welcome!