Saravanan666/pypi-org huggingface dataset:
Package: anpl
Anchor Programming LanguageBuilding and InstallingAnchor requires Python 3.9 or laterPyPI [Recommended]Install the latest release fromThe Python Package Index (PyPI):pip install anplBuild and install locallyRun the following commands in order:python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m build
pip install ./dist/anpl-<version>.tar.gz --force-reinstallRunningRun the Anchor compiler:an [option] [file]an --helpfor more informationGetting StartedThis is an example of the Anchor code to printHello, World!:print("Hello, World!");This is an example of the Anchor code to define a class:class[public] MyClass
begin
    property[public, get, set] x: Integer;

    method[public, factory] MyClass() -> MyClass
    begin
        this.x = 0;
        this.printSomething();
        return this;
    end

    method[public, factory] MyClass(x: Integer) -> MyClass
    begin
        this.x = x;
        return this;
    end

    method[private] printSomething() -> Null
    begin
        print("this is a private method");
    end
endThis is an example of the legacy function definition to return a string:function myFunc() -> String
begin
    return "a legacy function";
endContributingI am excited to work alongside you to build and enhance Anchor Programming Language!BEFORE you start work on a feature/fix, please read and follow theContributor's Guideto help avoid any wasted or duplicate effort.Code of ConductThis project has adopted theContributor Covenant Code of Conduct. For more information contactluo@jiahai.cowith any additional questions or comments.
Package: a-n-plus-b
ANPlusBThis tiny package provides a handy parser
for parsing the CSS<An+B>microsyntax.InstallationThis package is availableon PyPI:$pipinstalla-n-plus-bUsageThis package only ever parsesthe<An+B>microsyntax.
It does not supporttheof <selector>syntax.Examples>>>froma_n_plus_bimportANPlusB>>>ANPlusB(2,1)ANPlusB(2n+1)>>>str(_)'2n+1'>>>ANPlusB(4)ANPlusB(4)>>>ANPlusB(4,0)ANPlusB(4n)>>>{ANPlusB(1,0),ANPlusB(True,False)}{ANPlusB(n)}>>>fromitertoolsimportislice>>>ANPlusB(3,2)ANPlusB(3n+2)>>>values=_.values()>>>values_InfiniteRange(start = 2, step = 3)>>>list(islice(values,10))[2, 5, 8, 11, 14, 17, 20, 23, 26, 29]>>>6405429723686292014invaluesTrue>>>instance=ANPlusB(4,-7)>>>list(instance.indices(40))[1, 5, 9, 13, 17, 21, 25, 29, 33, 37]>>>list(instance.indices(40,from_last=True))[40, 36, 32, 28, 24, 20, 16, 12, 8, 4]>>>list(instance.indices(40,order='descending'))[37, 33, 29, 25, 21, 17, 13, 9, 5, 1]>>>list(instance.indices(40,from_last=True,order='ascending'))[4, 8, 12, 16, 20, 24, 28, 32, 36, 40]>>>ANPlusB.parse('odd')ANPlusB(2n+1)>>>ANPlusB.parse('even')ANPlusB(2n)>>>ANPlusB.parse('4')ANPlusB(4)>>>ANPlusB.parse('-1n')ANPlusB(-n)>>>ANPlusB.parse('+0n-8')ANPlusB(-8)>>>ANPlusB.parse('0n+0124')ANPlusB(124)>>>ANPlusB.from_complex(5j-2)ANPlusB(5n-2)ContributingPlease seeContributingfor more information.
Package: anpu
Anpu (暗譜) - memorize or play a song from memory.A small library to search Spotify music.python -m pip install anpuFeaturesCleans up Spotify Links into API calls (tracks, albums and playlists only).Query search.Both of these are handled by a single function.RequirementsrequestsConfigAnpu requires the use of a config file to store the Access Token. The config file can also be used to store your App's credentials.It is automatically created in these directories respectively:GNU/Linux:HOME/.config/anpu/config.jsonmacOS:HOME/Library/Preferences/anpu/config.jsonWindows:%APPDATA%/anpu/config.jsonExampleimportanpuclient=anpu.client()# alternativelyclient=anpu.client(id="app_id",secret="app_secret")# search queryprint(client.send_request({"q":"very intresting query","type":"track","limit":5}))# get by linkprint(client.send_request("https://open.spotify.com/track/veryrealtrackid"))
Package: anpylar
A client-side Python framework for creating web applications.It eases development by providing a modular approach with integrated support
for components, supercharged DOM Nodes, scoped styling, a routing engine and
reactive programming and promises (Python promises)SitesWebsite:https://www.anpylar.comDocumentation:https://docs.anpylar.comCommunity:https://community.anpylar.comRepositoriesTheAnPyLarproject is broken down into different repositories:This repo contains the command line interface to manage projectsOther repositories:Framework:https://github.com/anpylar/anpylarDocumentation:https://github.com/anpylar/anpylar-docsTutorial and Samples:https://github.com/anpylar/anpylar-tutorialInstallationViapip:pip install anpylarAnd yes … now you have to read the docs.
Package: anrg.saga
SagaSaga:SchedulingAlgorithmsGathered.IntroductionThis repository contains a collection of scheduling algorithms.
The algorithms are implemented in python using a common interface.
Scripts for validating the schedules produced by the algorithms are also provided.
Scripts for comparing the performance of the algorithms are also provided.AlgorithmsThe following algorithms are implemented:Common:HEFT: Heteregeneous Earliest Finish TimeCPoP: Critical Path on ProcessorFastestNode: Schedule all tasks on the fastest nodeStochastic: (stochastic task cost, data size, compute speed, and communication strength)SHEFTImproved SHEFTStochastic HEFTMean HEFTUsageInstallationClone the repository and install the requirements:pipinstallanrg.sagaRunning the algorithmsThe algorithms are implemented as python modules.
The following example shows how to run the HEFT algorithm on a workflow:fromsaga.common.heftimportHeftSchedulerscheduler=HeftScheduler()network:nx.Graph=...task_graph:nx.DiGraph=...scheduler.schedule(network,task_graph)
Package: anritsu-lightning
anritsu_lightningPython interface to the Anritsu Lightning 37xxxD VNAInstallation> pip install anritsu_lightningUsage>>>fromanritsu_lightningimportCommChannel>>>withCommChannel(address=6)asvna:...vna.ch3.parameter="S21"...s21=vna.read(channel=3,data_status="corrected")>>>It is also possible to read the S-parameters inTouchstoneSnP format.>>>fromanritsu_lightningimportCommChannel>>>withCommChannel(address=6)asvna:...vna.measurement_setup.start=40e6# Hz...vna.measurement_setup.stop=20e9# Hz...vna.measurement_setup.data_points=401...vna.ch1.parameter="S11"...vna.ch1.graph_type="log magnitude"...vna.ch1.graph_scale=20.0# dB/div...vna.ch2.parameter="S12"...vna.ch3.parameter="S21"...vna.ch3.graph_type="log magnitude"...vna.ch3.graph_scale=2.0# dB/div...vna.ch4.parameter="S22"...vna.display_mode="dual channels 1 & 3"...withopen(<file>,"wt")asf:...f.write(vna.get_s2p(previous=False))>>>It is also possible to use the markers to find the -3 dB point of a filter. In this
example, the VNA measured the -3 dB bandwidth of a Mini-Circuits VLF-1000+ low pass
filter with nominal specification of 1.3 GHz. The VNA was already setup to measure
S21 on channel 3 between 40 MHz and 5 GHz.In[1]:fromanritsu_lightningimportCommChannelIn[2]:cc=CommChannel(address=6)In[3]:vna=cc.get_instrument()In[4]:vna.markers.mode="normal"In[5]:vna.markers.enable([1,2])In[6]:vna.markers.set_active(1)In[7]:vna.markers.set_xaxis_location(1,"40 MHz")In[8]:vna.markers.delta_reference=1In[9]:vna.markers.set_active(2)In[10]:bw=vna.markers.search("-3 dB",reference="delta reference",timeout=5000)In[11]:print(f"{bw/1e9:.2f}GHz")1.26GHzSupported features:Measurement setup: frequency sweep, data points, etc.Channel setup: parameter (S11, S12, ...), graph type, etc.Graph setup: scale, reference, offsetData transfer: channel data, screen bitmap, S2P fileMarkers
Package: anritsu-pwrmtr
anritsu_pwrmtrPython interface to the Anritsu power metersInstallation>pip install anritsu_pwrmtrUsageFor ML243xA models that use GPIB:>>>fromanritsu_pwrmtrimportCommChannel>>>withCommChannel(13)aspm:...pm.ch1.read()...-10.1For MA243x0A models that use USB:>>>fromanritsu_pwrmtrimportCommChannel>>>withCommChannel('<USB0::0x...::RAW>')aspm:...pm.read()...-10.1Supported models:ML243xAMA243x0ASupported features:Channel configuration for Readout modeSensor calibration and zeroingMeasuring power in Readout mode
Package: ans
ANS: Ambient Noise Seismologyans is a python wrapper for ambient noise seismology tasks and it has a GUI for easier configuration of ambient-noise seismology projects. In its backend, this package depends on Perl interpreter, GMT (Generic Mapping Tools), and SAC (Seismic Analysis Code) as well as python modules including ObsPy etc. ans is successfully tested on Python 3.6.* and 3.8.* versions.Version 0.0.1This version include all the necessary commands and tools required for generating Rayleigh wave (ZZ and RR cross-correlations) and Love wave (TT cross-correlation component) Empirical Green's Functions (EGFs). A brief description of most useful CLI commands is given below:- $> ans init <maindir>
  Description: initialize ans project at project main directory i.e. <maindir>

- $> ans config
  $> ans config --maindir <maindir>
  Description: open the program GUI to configure the ans project
  Note: default <maindir> is current working directory

- $> ans download stations
  Description: download list of available stations at the given 
  region boundary and dates that was previously set using the GUI.
  Datacenters, desired station components etc should also be set using '$> ans config'.

- $> ans download metadata
  Description: download station metadata files (xml file format) that will be used for
  instrument response removal and updating sac headers.

- $> ans download mseeds
  Description: main data acquisition module; download seismograms in mseed format

- $> ans mseed2sac <mseeds_dir> <sacs_dir>
  Description: convert mseed to sac files while applying the listed processing steps
  in project configuration mseed2sac tab (i.e., '$> ans config').
  <mseeds_dir>: input mseed dataset directory
  <sacs_dir>: output sac files dataset directory

- $> ans sac2ncf <sacs_dir> <ncfs_dir>
  Description: process the input sacfiles in <sacs_dir> and output NCFs (noise cross-correlation functions)
  while applying the list of sac2ncf processes defined in project configuration file.
  Note: At this step it is necessary that all sac headers are updated and this can be done by either
  performing instrument response removal or adding "write headers" process to the list of processes.

- $> ans ncf2egf <ncfs> <egfs_dir>
  <ncfs>: either path to the <ncfs_dir> (full stack EGFs) or an ASCII datalist containing a one-column data format
  list of paths to event directories (seasonal EGFs; e.g., "14001000000" i.e. 2014/01/01)
  <egfs_dir>: path to output stacked EGF
Package: ansaittua
ansaittuaEarned Value Management (Finnish: ansaittua arvonhallintaa) when coding swiftly.License: MITDocumentationUser and developerdocumentation of ansaittua.Bug TrackerFeature requests and bug reports are bested entered in thetodos of ansaittua.Primary Source repositoryThe primary source repository ofansaittua is at sourcehuta collection of tools useful for software development.StatusExperimental.Note: The default branch isdefault.
Package: ansaotuvi
Mã nguồn mở chương trình an sao Tử vi ansaotuvi[x] Fork code từ reponsity của doannguyen/lasotuvi
[x] Cập nhật version mới của các thư viện
[x] Deploy ansaotuvi và ansaotuvi-website lên pypi
[x] Chạy thử dự án tích hợp ansaotuvi-website
[x] Điều chỉnh vị trí miếu hãm và ngũ hành của sao
[-] Chuẩn hóa vị trí sao và logic an sao
Package: ansaotuvi-website
Mã nguồn mở chương trình an sao Tử vi ansaotuviThis is a wrapper of ansaotuvi into django application.Create virtual environment and activate itpip install virtualenvvirtualenv .envIf you are *nix userssource .env/bin/activateif you are Window users, just type.env/Scripts/activate.batand make sure you are working on command prompt (cmd.exe) not PowerShellNow you are working on the virtual environmentIf you do not have Django project, go and install django and ansaotuvi applicationspip install django ansaotuvi_websiteIf you have django project already, just install the ansaotuvi_website applicationpip install ansaotuvi_websiteAdd theansaotuvi_websiteapplication to your INSTALLED_APPS
by adding# settings.py
INSTALLED_APPS = [
    # Your others applications 
    'ansaotuvi_website',
]Add router to theurls.py# urls.py
from django.urls import path, include

urlpatterns = [
    # ....
    path('ansaotuvi/', include('ansaotuvi_website.urls'))
]Here is a tutorial to show you how to add ansaotuvi app into a django project.Hope this help!
Package: ansar-connect
ansar-connectTheansar-connectlibrary implements sophisticated asynchronous network messaging. It builds
on the features of theansar-encode <https://pypi.org/project/ansar-encode>_
andansar-create <https://pypi.org/project/ansar-create>_ libraries to integrate network
messaging into the asynchronous model of execution. The result of this approach is that sending
a message across a network is no different to sending a message between any two async objects.
There is also complete "portability" of messages - an application data object read from the disk
usingansar.encodecan immediately be sent across a network, with zero additional effort.This essential messaging capability is combined with the multi-process capabilities
ofansar.create, to deliver practical, distributed computing. Designs for software
solutions can now consider;multi-process compositions that run on a host,compositions of processes distributed across a LAN,and compositions where processes may be anywhere on the Internet.Smaller projects will use this library to deliver multi-process solutions on a single host.
The library will arrange for all the network messaging that binds the processes together,
into a single operational unit.The most ambitious projects will involve processes spread across the Internet, e.g. between
desktop PCs at different branches of an organization, or between head-office servers and mobile
personnel on laptops, or between those same servers and SBCs operating as weather stations. As
long as there is a reasonably up-to-date Python runtime (>=3.10) and Internet connectivity, this
library will arrange for full, asynchronous messaging between any 2 members of a composition.FeaturesImplements full-duplex, network messaging over asynchronous sockets.Inherits the complete type-sophistication ofansar.encode.Seamlessly extends the async model of operation to span local and wide-area networks.
Package: ansar-create
ansar-createTheansar-createlibrary uses multi-threading and multi-processing to solve difficult
software challenges such as concurrency, interruption and cancellation. It wraps those
platform facilities in a standard runtime model, giving developers the ability to express
that type of software in a clear and consistent manner.This type of software is often referred to as asynchronous, event-driven or reactive
software. It acknowledges the fundamental fact that significant events can occur at
any time, and that software must be able to respond to those events in a reliable
and timely manner.FeaturesBased on a standard model for complex software operations (SDL)Uniform management of threads, processes and state machinesBuilt-in runtime facilities such as timers and logging.Persistent application configuration.Process orchestration.Development automation.
Package: ansar-encode
ansar-encodeTheansar-encodelibrary provides for the convenient storage and recovery of
application data using system files. Files are created using standard encodings - the
default is JSON - and are human readable. Complex application data can be stored
including containers, instances of classes and object graphs.FeaturesBroad suite of primitive types, e.g. integers, floats, strings, times and enumerations.Structured data, e.g. an 8-by-8 table of user-defined class instances.Recovered data is fully-typed, e.g. reading aclass Userproduces aUserinstance.Graphs and graphs that include cycles, e.g. circular lists, syntax trees and state diagrams.Polymorphism, e.g. read an object of unknown type.Type-checking.Plain text files.Managed folders of files.Object versioning.
Package: anscenter
backend-moduleMain backend module, which is used for developing web-app logic and deploying AI model.InstallationRun the following to install:pipinstallanscenterUsagefromanscester.predictimportMachineLearningModel# Generate modelmodel=MachineLearningModel()# Using Exampledata_input=[1.0,2.0,3.0,4.0]result=model.predict(data_input)print(result)Developing HelloGTo install helloG, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstallanscenter[dev]
Package: ansciier
AnsciierMimic video or image to your terminalOverviewHow to use itFirst you needpython 3, I reccomend the latest version but I think it would run on older version too.Install the package with$ pip install ansciierorpip3if pip is point to python 2 version.Run it with$ ansciier /path/to/image-or-video.mp4.Type$ ansciier -hfor help.Example usage$ ansciier ~/Videos/rickroll.mp4 --aspect-ratio 20:9 --fps 24Command above will draw frame from rickroll.mp4 in Videos folder with aspect ratio of 20:9 and max fps at 24$ ansciier ~/Video/frame{0}.png --ascii --char @ --dim 200x50 --start-frame 59This command will draw image with@character, 200x50 square block dimension from frame59.png, frame60.png, until it reaches the highest frame number. It'll automatically find the last frame when--last-frameis not specified, it'll still continue if a frame is missing.$ ansciier camerawill use your cameraNote : Support only truecolor terminal (Because majority of terminals nowadays are truecolor I think you already have one).Should work on Windows and Linux
Package: ansel
Codecs for reading/writing documents in the ANSEL character set.Free software: MIT licenseDocumentation:https://python-ansel.readthedocs.io.FeaturesAdds support for character set encodingsANSEL(ANSI/NISO Z39.47) andGEDCOM.Re-orders combining characters for consistency with the ANSEL specification.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: anserializer
anserializerA module for serializing and deserializing complex data structures to/from json. It allows the user to (de)serialize a complex dictionary/list structure in one go by defining serializers/deserializers for arbitrary sets of classes.Tested with python3.Serializer can be utilized either as instantiated or non-instantiated.Installpip3 install anserializerExamplesInstantiated examplefrom anserializer import Serializer, DatetimeSerializer, ObjectSerializer

class MyObjectClass(object):
  pass

# instantiate the serializer
s  = s = Serializer([ DatetimeSerializer(), ObjectSerializer(MyObjectClass) ])

# create object
o = MyObjectClass()
print(o)

# serialize object
x = s.get_serialized(o)
print(x)

# deserialize object
o = s.get_deserialized(x)
print(o)Non-instantiated examplefrom anserializer import Serializer, DatetimeSerializer, ObjectSerializer

class MyObjectClass(object):
  pass

# put our list of serializer classes available for use into a variable
serializers = [ DatetimeSerializer(), ObjectSerializer(MyObjectClass) ]

# create object
o = MyObjectClass()
print(o)

# serialize object
x = Serializer.serialize(o, serializers)
print(x)

# deserialize object
o = Serializer.deserialize(x, serializers)
print(o)Allow children to be serialized by a serializer defined for their ancestorfrom anserializer import Serializer, DatetimeSerializer, ObjectSerializer

class MyObjectClass(object):
  pass

# instantiate the serializer
s  = s = Serializer([ DatetimeSerializer(), ObjectSerializer(object) ], serialize_children=True)

# create object
o = MyObjectClass()
print(o)

# serialize object
x = s.get_serialized(o)
print(x)Use your own serializerfrom anserializer import Serializer, DatetimeSerializer, ObjectSerializer, BaseSerializer

class MyObjectClass(object):
  pass

# create your serializer
class MySerializer(BaseSerializer):
  def __init__(self):
    super().__init__([MyObjectClass], '^!MyObjectClass\(\)$')

  def serialize(self, obj):
    # do the magic and return a serialized element 
    return { '!MyObjectClass()': { 
         # insert object data here
      }
    }

  def deserialize(self, serialized_obj):
    # do the magic and return an object with the data given in serialized format
    kwargs = {}
    return MyObjectClass(**kwargs)

# instantiate the serializer
s = Serializer([ DatetimeSerializer(), MySerializer(), ObjectSerializer(object) ])

# create object
o = MyObjectClass()
print(o)

# serialize object
x = s.get_serialized(o)
print(x)
Package: ansh997
SpreadGSpreadG is a small wrapper around the Google Sheets API (v4) and gspread 3.6.0 to provide more convenient access to Google Sheets from Python scripts and plot graphs with the help of Matplotlib.Turn on the API, download an OAuth client ID as JSON file, and start working.Installation# pip install -r requirement.txtpipinstallspreadgThis will also install google-api-python-client and its dependencies, notably httplib2 and oauth2client, as required dependencies.Quickstartfromspreadgimport*data=dataloader('credentials.json',"Sheetname")df=to_df(data)fig=plotter(df,X,y)fig.savefig("something.png")author: Himanshu Palmailto: palhimanshu997[at]gmail[.]com
Package: ansi
ANSIVarious ANSI escape codes, used in moving the cursor in a text console or
rendering coloured text.ExamplePrint something in bold yellow on a red background:>>> from ansi.colour import fg, bg
>>> from ansi.colour.fx import reset
>>> msg = (bg.red, fg.yellow, 'Hello world!', reset)
>>> print(''.join(map(str, msg)))
...If you like syntactic sugar, you may also do:>>> from ansi.colour import fg, bg
>>> print(bg.red(fg.yellow('Hello world!')))
...Also, 256 RGB colours are supported:>>> from ansi.colour.rgb import rgb256
>>> from ansi.colour.fx import reset
>>> msg = (rgb256(0xff, 0x80, 0x00), 'hello world', reset)
>>> print(''.join(map(str, msg)))
...If you prefer to use American English instead:>>> from ansi.color import ...Referenceshttps://www.ecma-international.org/publications-and-standards/standards/ecma-48/RequirementsAnsi requires python 3.6 and supports typing.
Package: ansi256colors
ansi256-colorsA tool to print and demo ansi color codes for a 256 color terminal.InstallInstall using pip:pip install ansi256colorsThis will installansi256to your python bin. You can then call the script so
long as that is in your path.Usage> ansi256 -h
usage: ansi256 [-h] {print-table,test,write} ...

a tool for printing, testing, and exporting ansi color escapes

positional arguments:
  {print-table,test,write}
    print-table         print a table of the ansi color codes
    test                test color codes on a string
    write               write a zsh-rc style file that exports all color codes

options:
  -h, --help            show this help message and exitPrinting Tables> ansi256 print-table --help
usage: ansi256 print-table [-h] [-f [0-255]] [-b [0-255]] {fg,bg,both}

positional arguments:
  {fg,bg,both}          specify whether to print foreground, background, or both color code tables

options:
  -h, --help            show this help message and exit
  -f [0-255], --foreground [0-255]
                        specify a foreground color to be on top of the background table
  -b [0-255], --background [0-255]
                        specify a background color to be the background of the foreground tableFor example:ansi256 print-table bothansi256 print-table -b 218 fgPrinting Tests> ansi256 test -h         
usage: ansi256 test [-h] [-f [0-255]] [-b [0-255]] TEXT

positional arguments:
  TEXT                  text to test

options:
  -h, --help            show this help message and exit
  -f [0-255], --foreground [0-255]
                        specify the foreground color code (0-255)
  -b [0-255], --background [0-255]
                        specify the background color code (0-255)For example:ansi256 test -b 218 -f 196 "This is a test of red on pink"Writing RC files> ansi256 write -h
usage: ansi256 write [-h] FILE

positional arguments:
  FILE        file to write the exports to

options:
  -h, --help  show this help message and exit> ansi256 write testrc
> head -5 testrc
export COLOR0_FG=$'%{\e[38;5;0m%}'
export COLOR0_BG=$'%{\e[48;5;0m%}'
export COLOR1_FG=$'%{\e[38;5;1m%}'
export COLOR1_BG=$'%{\e[48;5;1m%}'
export COLOR2_FG=$'%{\e[38;5;2m%}'