Saravanan666/pypi-org huggingface dataset:
Package: pyobjc-framework-LatentSemanticMapping
Wrappers for the framework “LatentSemanticMapping” on macOS 10.5 or later.The Latent Semantic Mapping framework supports the classification of text and
other token-based content into developer-defined categories.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks.NOTE: Apple’s documentation for this framework is very minimal at the moment,
making it very hard to actually use the framework.Project linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-LocalAuthenticationEmbeddedUI
Wrappers for the “LocalAuthenticationEmbeddedUI” framework on macOS.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-Message
Wrappers for the “Message” framework on macOS. This framework contains a
number of utilities for sending e-mail.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-MetalPerformanceShadersGraph
Wrappers for the “MetalPerformanceShadersGraph” framework on macOS.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-OpenDirectory
Wrappers for the ‘OpenDirectory’ and ‘CFOpenDirectory’ frameworks on
macOS 10.6 and later.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-PencilKit
Wrappers for the “PencilKit” framework on macOS 10.15 and later.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-PreferencePanes
Wrappers for the “PreferencePanes” framework on macOS. This framework allows
you to write Preference Panes for the “System Preferences” application.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-PubSub
Wrappers for the “PubSub” framework on macOS 10.5 or later.  This framework
offers developers a way to subscribe to web feeds (RSS, Atom) from their
applications.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksNote that this framework is deprecated in OSX 10.9Project linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-QTKit
Wrappers for the “QTKit” framework on macOS.  QTKit is an modern,
object-oriented framework for working with QuickTime media in Cocoa
applications, and is a replacement for the older Carbon-based Quicktime
framework.These wrappers don’t include documentation, please check Apple’s documention
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksNote that this framework is deprecated in OSX 10.9Project linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-Quartz
Wrappers for the “Quartz” related frameworks on macOS. These frameworks
provide a number of graphics related API’s.The frameworks wrapped by this package are:CoreGraphics - 2D Graphics, based on the PDF modelImageIO - Reading and writing imagesQuartzComposer - Working with “Quartz Composer” compositionsQuartzCore  - Image processing and video image manipulationQuarzFilters - Image effectsImageKit - iPhoto-like viewsPDFKit - Working with PDF filesCoreVideo - Managing digital videoAll frameworks can be accessed by importing the ‘Quartz’ module.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksNOTE: The actual wrappers are subpackages ofQuartz, they are not toplevel
packages to avoid name clashes with Apple provided wrappers for CoreGraphics.WARNING: Running the unittests will change your display settings during the
testrun, which will probably mess up your window layout.NEWS2.4Add wrapper forCGBitmapContextCreateWithDataProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-QuickLookThumbnailing
Wrappers for the “QuickLookThumbnailing” framework on macOS.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-ScreenSaver
Wrappers for the “ScreenSaver” framework on macOS. This frameworks allows
you to write custom screensaver modules.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-ScriptingBridge
Wrappers for the “ScriptingBrige” framework on macOS 10.5 or later. This
framework provides an easy way to use the scripting functionality of
applications (“AppleScript”) from Cocoa applications.The functionality of this framework is comparable to that off “appscript”,
although the latter is better tuned for use in Python applications and is
available on macOS 10.4 as well.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-ServerNotification
Wrappers for framework ‘ServerNotification’ on macOS 10.6. This framework
contains the class NSServerNotificationCenter which provides distributed
notifications over the Extensible Messaging and Presence Protocol (XMPP).These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-ServiceManagement
Wrappers for framework ‘ServiceManagement’ on macOS 10.6. This framework
provides an interface to the system services subsystem, which basically means
a this provides a secure and object-oriented interface from launchd.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-SpriteKit
Wrappers for the “SpriteKit” framework on macOS introduced in macOS 10.9.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-SyncServices
Wrappers for the “SyncServices” framework on macOS.Sync Services is a framework containing all the components you need
to sync your applications and devices. If your application uses
Sync Services, user data can be synced with other applications and
devices on the same computer, or other computers over the network via
MobileMe.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-WebKit
Wrappers for the “WebKit” and “JavaScriptCore” frameworks on macOS. The
WebKit framework contains the views and support classes for creating a
browser. The JavaScriptCore framework implements a JavaScript interpreter.These wrappers don’t include documentation, please check Apple’s documentation
for information on how to use these frameworks and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjc-framework-XgridFoundation
Wrappers for the “XgridFoundation” framework on macOS. This framework
supports the development of applications that monitor or control jobs
processed by Xgrid clusters.These wrappers don’t include documentation, please check Apple’s documention
for information on how to use this framework and PyObjC’s documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworksProject linksDocumentationIssue TrackerRepository
Package: pyobjconfig
pyobjconfigpyobjconfigis a module suite designed with Machine Learning (ML) experiments in mind, but should work for a broad range of hierarchical configurations.Example usagePyobjconfig supports configuring nested objects, such that each object has control over its own configuration:importargparseimportpyobjconfigaspoc# Any class which plugs into pyobjconfig should derive from `ConfigurableObject`classChild(poc.ConfigurableObject):# To register configuration options for this class, add a `config` member# which derives from a pydantic model.classconfig(poc.PydanticBaseModel):# Pydantic handles basic type validation and allows default values to be# setinner:str='hello'classBase(poc.ConfigurableObject):classconfig(poc.PydanticBaseModel):hello:str='hi'# Assigning a class deriving from `ConfigurableObject` as a member of a# class definition results in a nested object, which will be instantiated# using parameters from the command line.child=Childap=argparse.ArgumentParser()Base.argparse_setup(ap)args=ap.parse_args(['--child-inner','beep']).__dict__obj=Base.argparse_create(args)print(obj.config.hello)# Prints 'hi'print(obj.child.config.inner)# Prints 'beep'ap.print_help()# usage: ipython [-h] [--hello HELLO] [--child-inner CHILD-INNER]## optional arguments:#   -h, --help            show this help message and exit#   --hello HELLO         Default: hi#   --child-inner CHILD-INNER#                         Default: helloSwitches are also supported, such that the class (or value) of a child member may be changed at initialization time. Additionally, the--helpfor theargparseparser will change to reflect the choice of child:importpyobjconfigaspocclassA(poc.ConfigurableObject):passclassB(poc.ConfigurableObject):passclassBase(poc.ConfigurableObject):child=poc.ConfigurableSwitch({'a':A,'b':B,'none':None,},default='none')Experimentally, environment variables are supported. Not yet well tested, but callingargparse_create(args, env='PREFIX')will allow e.g.PREFIX_CHILD=ato be specified in the environment. Arguments on the command line take precedence.importargparseimportpyobjconfigaspocUsage with pytorchPytorch overrides__setattr__in a way that is incompatible with theConfigurableObjectclass provided bypyobjconfig. To work around this, use thepyobjconfig.torch.ConfigurableModuleas a drop-in replacement fortorch.nn.Module.Changelog2023-04-21 - v0.1.4.argparse.ArgumentParserhastypespecified for each argument now, so local equality comparisons against previousargparse_hparams()before object instantiation will work.2023-04-18 - v0.1.3. DisallowNoneas parameter values because it serializes poorly, and disallow abbreviated parameter matches to avoid confusion.2021-01-14 - v0.1.2. Support lists on the command line.
Package: pyobject
pyobject - 一个提供操作Python底层对象工具的Python包, 包含一些子模块。A tool of operating internal python object with some various submodules.所包含模块 Included modules:__init__ - 打印出Python对象的各个属性pyobject.browser - 以图形方式浏览Python对象pyobject.code_ - Python bytecode的操作工具pyobject.search - 搜索python对象pyobject.newtypes - 定义一些新的类型pyobj_extension(新增) - 操作Python底层对象引用, 以及对象指针的模块, 使用C语言编写包含的函数 Functions:describe(obj, level=0, maxlevel=1, tab=4, verbose=False, file=sys.stdout, mode=’w’ encoding=’utf-8’):"描述"一个对象,即打印出对象的各个属性。
参数说明:
maxlevel:打印对象属性的层数。
tab:缩进的空格数,默认为4。
verbose:一个布尔值,是否打印出对象的特殊方法(如__init__)。
file:一个类似文件的对象。browse(object, verbose=False, name=’obj’):以图形方式浏览一个Python对象。
verbose:与describe相同,是否打印出对象的特殊方法(如__init__)objectname(obj):objectname(obj) - 返回一个对象的名称,形如xxmodule.xxclass。
如:objectname(int) -> 'builtins.int'bases(obj, level=0, tab=4):bases(obj) - 打印出该对象的基类
tab:缩进的空格数,默认为4。新增函数 New Functions:make_list(start_obj, recursions=2, all=False):创建一个对象的列表, 列表中无重复的对象。
start:开始搜索的对象
recursion:递归次数
all:是否将对象的特殊属性(如__init__)加入列表make_iter(start_obj, recursions=2, all=False):功能、参数与make_list相同, 但创建迭代器, 且迭代器中可能有重复的对象。search(obj, start, recursions=3):从一个起点开始搜索对象
obj:待搜索的对象
start:起点对象
recursion:递归次数新增类:pyobject.newtypes.Code用法: (下面的示例是从doctest中摘取的):>>> def f():print("Hello")
>>> c=Code.fromfunc(f)
>>> c.co_consts
(None, 'Hello')
>>> c.co_consts=(None, 'Hello World!')
>>> c.exec()
Hello World!
>>>
>>> import os,pickle
>>> temp=os.getenv('temp')
>>> with open(os.path.join(temp,"temp.pkl"),'wb') as f:
...     pickle.dump(c,f)
...
>>> f=open(os.path.join(temp,"temp.pkl"),'rb')
>>> pickle.load(f).to_func()()
Hello World!
>>>
>>> c.to_pycfile(os.path.join(temp,"temppyc.pyc"))
>>> sys.path.append(temp)
>>> import temppyc
Hello World!
>>> Code.from_pycfile(os.path.join(temp,"temppyc.pyc")).exec()
Hello World!新增模块:pyobj_extension本模块使用了C语言编写。可直接使用import pyobj_extension, 导入该独立模块。其中包含的函数如下:convptr(pointer):将整数指针转换为Python对象，与id()相反。
    Convert a integer pointer to a Python object,as a reverse of id().py_decref(object,n):将对象的引用计数减小n。Decrease the reference count of an object for n.py_incref(object,n):将对象的引用计数增加n。Increase the reference count of an object for n.警告: 不恰当地使用上述3个函数可能导致Python崩溃。Warning:improper using of three functions above may cause Python to crash.版本:1.2.2更新日志:2022-7-25(v1.2.2):增加了操作Python底层对象引用, 以及对象指针的C语言模块pyobj_extension。2022-2-2(v1.2.0):修复了一些bug,优化了search类的性能; pyobject.code_中增加了Code类,browser中增加编辑属性功能, 增加了Code类的测试。源码:见https://github.com/qfcy/Python/tree/main/pyobject作者 Author: 七分诚意 qq:3076711200作者CSDN主页:https://blog.csdn.net/qfcy_/
Package: pyobjectify
pyobjectifyBridge the gap across the different file formats and streamline the process to accessing ingested data via Python objectsOverviewOpen data is abound. For example, NYC Open Data has over 3,000 datasets spanning over 97 agencies in New York City. This data comes in many different formats, including CSV, JSON, XML, XLS/XLSX, KML, KMZ, Shapefile, GeoJSON, JSON, and more.In order to import and analyze the data in Python involves sending a request to download the raw data, then converting it into a Python object so that methods can be used to parse its contents. However, this process varies across the many different data types.This project aims to streamline this process and bridge the gap across the different file formats to allow the end user to get started on data analytics more quickly with a quick function call.Install from pippip install pyobjectifyQuick startimportpyobjectifyimportpandasaspdjson_dict=pyobjectify.from_url("https://bit.ly/42KCUSv")# URL holds JSON data, returns data in dictjson_df=pyobjectify.from_url("https://bit.ly/42KCUSv",pd.DataFrame)# User-specified output data typeSupported typesConnectivity tyesLocal files (e.g../relative/example.json,/absolute/path/example.json)Online, static (e.g.https://some.website/example.json,http://bit.ly/some-json-endpoint)For example, at the moment, a data stream from the Internet is not supported.Resource (input) data typesJSONCSVTSVXMLXLSXSupported conversionsJSON →dict,list,pandas.DataFrameCSV →listTSV →listXML →dictXLSX →dict
Package: py-object-pool
ObjectPoolExplore the docs »Source Code »Report Bug »Request Feature »Table of contentsObject PoolCode ExampleObject PoolObject pool library creates a pool of resource class instance and use them in your project. Pool is implemented using python built in libraryQueue.Let’s say for example, you need multiple firefox browser object in headless mode to be available for client request to process or some testing or scraping.Each time creating a new browser instance is time consuming task which will make client to wait.If you have one browser instance and manage with browser tab, it will become cumbersome to maintain and debug in case of any issue arises.Object Pool will help you to manage in that situation as it creates resource pool and provides to each client when it requests. Thus separating the process from one another without waiting or creating new instance on the spot.How to installpip install py-object-poolSourceFind the latest version onGitHub - ObjectPool.Feel free to fork and contribute!RequirementsPython 3.6 and aboveCode ExampleBelow example will help you to understand how to create resource class for ObjectPool and use them in your project.In the below example,Browseris a resource class andff_browser_poolis a pool of Browser.Please refer the user guide for more details.Sample resource classfromselenium.webdriverimportFirefox,FirefoxProfilefromselenium.webdriver.firefox.optionsimportOptionsclassFirefoxBrowser:"""
    This is browser resource class for ObjectPool. This class demonstrate how to create resource class
    and implement methods described in the user guide section.
    """def__init__(self):self.browser=FirefoxBrowser.create_ff_browser()self.page_title=None@classmethoddefcreate_ff_browser(cls):"""Returns headless firefox browser object"""profile=FirefoxProfile().set_preference("intl.accept_languages","es")opts=Options()opts.headless=Truebrowser=Firefox(options=opts,firefox_profile=profile)returnbrowserdefget_page_title(self,url):"""Returns page title of the url"""browser=self.browserbrowser.get(url)self.page_title=browser.titlereturnself.page_titledefclean_up(self,**stats):"""quits browser and sets None, when this method is called"""self.browser.quit()self.browser=Nonedefcheck_invalid(self,**stats):"""Returns invalid=True if the browser accessed google web page, otherwise False"""ifself.page_title=='Google':returnTruereturnFalseSample client blockfromobject_poolimportObjectPoolff_browser_pool=ObjectPool(FirefoxBrowser,min_init=2)withff_browser_pool.get()as(browser,browser_stats):title=browser.get_page_title('https://www.google.co.in/')AuthorsDurai Pandian-Initial work-dduraipandianLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: pyobjict
Turn a dict into an Object or objict!Based on uberdict(https://github.com/eukaryote/uberdict)Installationpip install pyobjictSome Differences:Support for to/from JSONSupport for to/from XMLSupport for to/from ZIP compression (base64)Support to/from fileWhen an attribute is not found it returns None instead of raising an ErrorSupport for .get("a.b.c")Support for delta between to objicts (obj.changes())Will automatically handle key conversion from "a.b.c" to "a -> b -> c" creationSimple to use!>>>fromobjictimportobjict>>>d1=objict(name="John",age=24)>>>d1{'name':'John','age':24}>>>d1.name'John'>>>d1.age24>>>d1.gender="male">>>d1{'name':'John','age':24,'gender':'male'}>>>d1.gender'male'>>>importdatetime>>>d1.dob=datetime.datetime(1985,5,2)>>>d1.dobdatetime.datetime(1985,5,2,0,0)>>>d1.toJSON(){'name':'John','age':24,'gender':'male','dob':483865200.0}>>>d1.save("test1.json")>>>d2=objict.fromFile("test1.json")>>>d2{'name':'John','age':24,'gender':'male','dob':483865200.0}>>>d2.toXML()'<name>John</name><age>24</age><gender>male</gender><dob>483865200.0</dob>'>>>d3=objict(user1=d2)>>>d3.user2=objict(name="Jenny",age=27)>>>d3{'user1':{'name':'John','age':24,'gender':'male','dob':483865200.0},'user2':{'name':'Jenny','age':27}}>>>d3.toXML()'<user1><name>John</name><age>24</age><gender>male</gender><dob>483865200.0</dob></user1><user2><name>Jenny</name><age>27</age></user2>'>>>d3.toJSON(True)'{\n"user1": {\n"name": "John",\n"age": 24,\n"gender": "male",\n"dob": 483865200.0\n},\n"user2": {\n"name": "Jenny",\n"age": 27\n}\n}'>>>print(d3.toJSON(True)){"user1":{"name":"John","age":24,"gender":"male","dob":483865200.0},"user2":{"name":"Jenny","age":27}}>>>d3.toZIP()b'x\x9c\xab\xe6R\x00\x02\xa5\xd2\xe2\xd4"C%+\x85j0\x17,\x94\x97\x98\x9b\n\x14Q\xf2\xca\xcf\xc8S\xd2A\x88\'\xa6\x83\x84\x8dL\x90\x84\xd2S\xf3RR\x8b@\x8as\x13sR\x91\x15\xa7\xe4\'\x01\x85M,\x8c-\xccL\x8d\x0c\x0c\xf4\x0c\xc0R\xb5:\x08[\x8dp\xd8\x9a\x9a\x97W\x89\xc5Zs\x88\x01\\\xb5\x00^\x1c\'I'>>>dz=d3.toZIP()>>>d4=objict.fromZIP(dz)>>>d4{'user1':{'name':'John','age':24,'gender':'male','dob':483865200.0},'user2':{'name':'Jenny','age':27}}>>>d5=d4.copy()>>>d5.user1.name'John'>>>d5.user1.name="Jim">>>d5{'user1':{'name':'Jim','age':24,'gender':'male','dob':483865200.0},'user2':{'name':'Jenny','age':27}}>>>d5.changes(d4){'user1':{'name':'John'}}