Saravanan666/pypi-org huggingface dataset:
Package: alphabetic-simple
Django Template tag for building alphabetical indexLink to repository:https://github.com/Arpaso/alphabetic-simpleBuilds alpabetic index to navigate through collection sorted by firstletter.
Supportsenglishandrussiangroups of alphabets.Usageview.py:from django.views.generic.list_detail import object_list
from alphabetic.utils import alphabetic_setup
from .models import MyModel

    def myview(request):
        ...
        queryset = MyModel.objects.all()
        return object_list(request, alphabetic_setup(request, queryset, 'last_name'), template_name=template)template.html:{% show_alphabetic_filter %}alphabetic_setup(request, queryset, ‘last_name’)- returns sorted queryset in alphabetical order by firstletter of
the attribute name, e.g.last_nameor whatever attribute of the model you specified.show_alphabetic_filter- template tag shows clickable alphabet in the template.Clicking on the letter will produce GET request to the current url with a tail?firstletter=X,
whereXis the clicked letter.Written by the development team of Arpaso company:http://arpaso.com
Package: alphabetic-timestamp
Alphabetic TimestampThis is small Python package which encode standard timestamp to shorted form by using alphabetic symbols.Installationpipinstallalphabetic-timestampDescriptionUser can use two base for coding. It other words two different lists of symbols for encoding.Base36Base62Example of codingThis example show coding of datetime 2020-01-01 20:20:20.002000. It means timestamp 1577906420.002.Time UnitsBase36Base62secondsq3g0dw1IMJxydeciseconds78yg3uwhdRlpucentiseconds20hkh2kw2MeBs6Qmillisecondsk4voqpsyrMm2x6qSymbols of Base 36importalphabetic_timestampasatsprint(ats.base36.symbols)>>>0123456789abcdefghijklmnopqrstuvwxyzSymbols of Base 62importalphabetic_timestampasatsprint(ats.base62.symbols)>>>0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZInterfaceThe example shows interface of base36. The interface is same for base62.importdatetimeimportalphabetic_timestampasatsdt=datetime.datetime.now()ts=dt.timestamp()ats.base36.now(time_unit=ats.TimeUnit.seconds)ats.base36.from_datetime(dt,time_unit=ats.TimeUnit.seconds)ats.base36.from_timestamp(ts,time_unit=ats.TimeUnit.seconds)ats.base36.to_datetime("q67vhw",time_unit=ats.TimeUnit.seconds,time_zone=None)ats.base36.to_timestamp("q67vhw",time_unit=ats.TimeUnit.seconds)Note: The string "q67vhw" is only example of encoded timestamp.ExamplesThis package is compatible with Python2.7 and Python3.4+. However these examples are written in Python3.6.Encode & Printimportalphabetic_timestampasatsprint(ats.base36.now())# Current DT: 2020-02-24 18:34:44.349162>>>q67vhwEncoded & Decodeimportdatetimeimportalphabetic_timestampasats# DATETIME -> ALPHABETIC_TIMESTAMP -> DATETIMEdt=datetime.datetime.now()alphabetic_ts_36=ats.base36.from_datetime(dt)decoded_ts_36=ats.base36.to_datetime(alphabetic_ts_36)alphabetic_ts_62=ats.base62.from_datetime(dt)decoded_ts_62=ats.base62.to_datetime(alphabetic_ts_62)# TIMESTAMP -> ALPHABETIC_TIMESTAMP -> TIMESTAMPts=dt.timestamp()alphabetic_ts_36=ats.base36.from_timestamp(ts)decoded_ts_36=ats.base36.to_timestamp(alphabetic_ts_36)alphabetic_ts_62=ats.base62.from_timestamp(ts)decoded_ts_62=ats.base62.to_timestamp(alphabetic_ts_62)Time unitsimportdatetimeimportalphabetic_timestampasatsdt=datetime.datetime.now()# Set time unit for current timestampnow36_ts=ats.base36.now()# default: ats.TimeUnit.secondsnow36_ts=ats.base36.now(time_unit=ats.TimeUnit.seconds)# Set time unit for specific datetime and timestampalphabetic_ts_36=ats.base36.from_datetime(dt,time_unit=ats.TimeUnit.seconds)alphabetic_ts_36=ats.base36.from_timestamp(dt.timestamp(),time_unit=ats.TimeUnit.seconds)# Examples of available time unitsnow36_ts=ats.base36.now(time_unit=ats.TimeUnit.seconds)now36_ts=ats.base36.now(time_unit=ats.TimeUnit.deciseconds)now36_ts=ats.base36.now(time_unit=ats.TimeUnit.centiseconds)now36_ts=ats.base36.now(time_unit=ats.TimeUnit.milliseconds)Possible IssueThere is a possible issue caused bybug in standard datetime module.
Package: alphabetsoup
al·pha·bet soup
/ˈalfəˌbet so͞op/Submit
noun INFORMAL
incomprehensible or confusing language, typically containing many abbreviations or symbols.alphabetsoup fixes problems with protein FASTA files:
+————————–+————————+
| Problem                  | Fix                    |
+————————–+————————+
| Unknown character        | Replaces with ‘X’      |
+————————–+————————+
| Stop/ambigous at ends    | Trims                  |
+————————–+————————+
| Stop/ambiguous in middle | Optionally fragments   |
+————————–+————————+
| Too short                | Deletes record         |
+————————–+————————+Latest ReleaseGitHubLicenseDocumentationTravis BuildCoveragePythonicityCode GradeDependenciesIssuesKanban
Package: alphabet-soup-lambert
Alphabet SoupYou have been contracted from a newspaper tasked with the job of providing an answer key to their word search for the
Sunday print. The newspaper's word search is a traditional game consisting of a grid of characters in which a selection
of words have been hidden. You are provided with the list of words that have been hidden and must find the words within
the grid of characters.RequirementsLoad a character grid with scrambled words embedded within it and a words list of the words to find.  The following
conditions apply:Within the grid of characters, the words may appear vertical, horizontal or diagonal.Within the grid of characters, the words may appear forwards or backwards.Words that have spaces in them will not include spaces when hidden in the grid of characters.ExecutionWhen approaching this problem, I first made a list of what I needed- a way to read and store the words and the grid from
the given file. I also needed to write functions that could search through the grid as well as a way to pass the
retrieved locations around. I decided a dictionary would be best for this so that when printing the output to the
console, a for-loop could just run through it. I also created a list to store the words and a 2D list to store the
grid.Analyze is where the file is read and parsed. Word_find is the function that is used to create the dictionary and to
call each of the search functions. When running through the searches, I wanted to create a separate function for each
direction so that the code would be cleaner and easier to test. Vertical and horizontal are the two most straightforward
functions- based on row and column. The diagonal searches were mostly trial and error using print statements to see
which parts of the grid were being accessed. Using join on the list seemed the easiest way to search for a word. The
locations list of tuples in each diagonal method made it easier to track the locations of the elements based on where
they were located in the current string.When testing, I created analyze as a separate function so that tests could be run without requesting the
input file. I did do some research and attempted to make it work with a mock input file. That is something that I am
going to continue to work with so that I can learn it. As a workaround, I created an output text file that analyze can
write to for comparison with the answer files while running the tests. There is a test for each direction that tests
words going forward and backward within the grid. There is also a test that has words going in every direction to
ensure that all the functions work together.Sample DataThe following was used as one of the sample input and output datasets.Input10x10
H A S S T A S T U I
S E Y B S P L E A T
B K R N A E J A U E
I V G D F K T S B N
G O O D E Y I S K L
W N O E L D N I I T
M M S L T R K X Q L
Q U E E N J W K S A
S A D T I V I T C A
P I R X T O V I P Q
TINT
HERDED
GOOD
LIST
LEAP
SPA
QUEEN
TEAS
GOOSE
KNIT
SEEK
TEASOutputTINT 9:4 6:4
TEAS 0:7 3:7
SEEK 6:2 3:5
QUEEN 7:0 7:4
LIST 6:9 3:6
HERDED 0:0 5:5
GOOSE 3:2 7:2
LEAP 6:3 9:0
GOOD 4:0 4:3
SPA 0:6 2:4
KNIT 6:6 3:6
Package: alphabet-thief
alphabet-thief"Hi, I am an alphabet thief. I steal every Latin alphabet from A to Z."RequirementsPython >= 3.7Installationpip install alphabet_thiefUsageimportalphabet_thieftext='Hello, how are you?'result=alphabet_thief.steal(text)print(f'"{}"')"     ,            ?"text='Hello, how are you?'result=alphabet_thief.replace(text,'a')print(f'"{}"')"aaaaa, aaa aaa aaa?"text='Trời mưa thì phải ở nhà.'result=alphabet_thief.steal(text)print(f'"{}"')"   ̛̀    ̛     ̀    ̉   ̛̉    ̀."text='Trời mưa thì phải ở nhà.'result=alphabet_thief.replace(text,'a')print(f'"{}"')"aaà̛a aa̛a aaà aaảa ả̛ aaà."
Package: alphabot
Open source python bot to chat with Slack and, eventually, other platforms.Inspired byHubot. Alphabot is written in Tornado combining the power of Python with the speed of coroutines.Installationvirtualenv.venvmakebuildRunning the botUntil this is packaged as a pip this is the way to start the bot:exportPYTHONPATH=$(pwd)exportSLACK_TOKEN=xoxb-YourTokenpythonalphabot/app.py
Package: alpha-bpc
Alpha_BPCPython package for the Alpha version of Binary Patch Convolution frameworkCurrently only supports MNIST and F-MNIST using GPUs for convolutionCall help(BPC) for more information about the class and its inputsTake a look atmnist_bpc.pyandfmnist_bpc.pyin the Github repository for examples of how to use the frameworkGithub:https://github.com/amirarfan/alpha_bpc/History0.1.2 - First release for Thesis
Package: alpha-build-git-bash-utils
Bash Utils for Git Bash on WindowsDescriptionUtils that don't come with Git Bash by default, likeGNU Make,rsync, `zstdInstructionsGet the code in a temporary location as a one off:cd<your-repo-root>
pipinstallalpha-build-git-bash-utils--targettmp/Unpack the code:tar-xvftmp/alpha_build_git_bash_utils.tar.gzThis will put the code in<repo-root>/build-support/git-bash-integration/.Remove the temporary download location:rm-rftmp/Run Git Bash as administrator and install the relevant utils.# from repo root./build-support/git-bash-integration/install_<utility>.sh
Package: alphaclops-core
alphaclops is a Python library for writing, manipulating, and optimizing quantum
circuits and running them against quantum computers and simulators.This module isalphaclops-core, which contains everything you’d need to write quantum algorithms for NISQ devices and run them on the built-in alphaclops simulators.
In order to run algorithms on a given quantum hardware platform, you’ll have to install the right alphaclops module as well.InstallationTo install the stable version of onlyalphaclops-core, usepip install alphaclops-core.
To install the pre-release version of onlyalphaclops-core, usepip install alphaclops-core –pre.To get all the optional modules installed as well, you’ll have to usepip install alphaclopsorpip install alphaclops –prefor the pre-release version.
Package: alphaclopsv1
alphaclops is a Python library for writing, manipulating, and optimizing quantum
circuits and running them against quantum computers and simulators.This module isalphaclops-core, which contains everything you’d need to write quantum algorithms for NISQ devices and run them on the built-in alphaclops simulators.
In order to run algorithms on a given quantum hardware platform, you’ll have to install the right alphaclops module as well.InstallationTo install the stable version of onlyalphaclops-core, usepip install alphaclops-core.
To install the pre-release version of onlyalphaclops-core, usepip install alphaclops-core –pre.To get all the optional modules installed as well, you’ll have to usepip install alphaclopsorpip install alphaclops –prefor the pre-release version.
Package: alphaconfig
AlphaConfigIntroductionAlphaConfig is easy to read and easy to use, which is designed for configuration.InstallationYou can install AlphaConfig by pip.pip install AlphaConfigAPIsinit(src_dict: dict=None, path2yaml: os.PathLike=None, path2json: os.PathLike=None, read_only: bool=False, **kwargs)Info:
    Initialize a AlphaConfig instance.
Args:
    src_dict (dict): Create an AlphaConfig instance from python builtin's dict, default is None.
    path2yaml (os.PathLike): Create an AlphaConfig instance from a yaml file, default is None.
    path2json (os.PathLike): Create an AlphaConfig instance from a json file, default is None.
    read_only (bool): Set the state of AlphaConfig instance, modification is allowed only if its value is False.
    kwargs (key-value pairs): Create attribute-value pairs from key-value pairs.ExamplefromalphaconfigimportAlphaConfigtest_dict={"attr_1":1,"attr_2":{"attr_2_1":[2,3],"attr_2_2":"this is attr_2_2",}}configs=AlphaConfig(test_dict,attr_3="value_3")print(configs)# * ATTRIBUTES *# - attr_1: 1# - attr_2:#         - attr_2_1: [2, 3]#         - attr_2_2: this is attr_2_2# - attr_3: value_3is_read_only()Info:
    Allow user to check whether an instance is read only or not.
Returns:
    (bool): True if it is read only else False.cvt2dict()Info:
    Convert an AlphaConfig instance to a python builtin's dict.
Returns:
    (dict)Examplestest_dict={"attr_1":1,"attr_2":{"attr_2_1":[2,3],"attr_2_2":"this is attr_2_2",}}configs=AlphaConfig(test_dict,attr_3="value_3")print(configs.cvt2dict())# {'attr_1': 1, 'attr_2': {'attr_2_1': [2, 3], 'attr_2_2': 'this is attr_2_2'}, 'attr_3': 'value_3'}cvt_state(read_only: bool=None)Info:
    Convert the readable state according to the given arg.
Args:
    read_only (bool): Set the readable state, if no value is given, revert the state.
Returns:
    (bool): The final readable state.keys()Info:
    Get all user-defined attributes. This method act like a python builtin's dict.
Returns:
    (dict_keys)values()Info:
    Get all user-defined values of corresponding keys. This method act like a python builtin's dict.
Returns:
    (dict_values)items()Info:
    Get all user-defined values of corresponding keys. This method act like a python builtin's dict.
Returns:
    (dict_items)iter()AlphaConfig supportsiter.Exampletest_dict={"attr_1":1,"attr_2":{"attr_2_1":[2,3],"attr_2_2":"this is attr_2_2",}}config=AlphaConfig(test_dict)foritinconfig:print(it)# ('attr_1', 1)# ('attr_2', {'attr_2_1': [2, 3], 'attr_2_2': 'this is attr_2_2'})copy and deepcopyAlphaConfig supports copy and deepcopy, just callcopymodule.
Package: alphacsc
This is a library to perform shift-invariantsparse dictionary learning, also known as
convolutional sparse coding (CSC), on time-series data.
It includes a number of different models:univariate CSCmultivariate CSCmultivariate CSC with a rank-1 constraint[1]univariate CSC with an alpha-stable distribution[2]A mathematical descriptions of these models is availablein the documentation.InstallationTo install this package, the easiest way is usingpip. It will install this
package and its dependencies. Thesetup.pydepends onnumpyandcythonfor the installation so it is advised to install them beforehand. To
install this package, please run one of the two commands:(Latest stable version)pip install alphacsc(Development version)pip install git+https://github.com/alphacsc/alphacsc.git#egg=alphacsc(Dicodile backend)pip install numpy cython
pip install alphacsc[dicodile]To use dicodile backend, do not forget to setMPI_HOSTFILEenvironment
variable.If you do not have admin privileges on the computer, use the--userflag
withpip. To upgrade, use the--upgradeflag provided bypip.To check if everything worked fine, you can run:python -c 'import alphacsc'and it should not give any error messages.QuickstartHere is an example to present briefly the API:importnumpyasnpimportmatplotlib.pyplotaspltfromalphacscimportBatchCDL# Define the different dimensions of the problemn_atoms=10n_times_atom=50n_channels=5n_trials=10n_times=1000# Generate a random set of signalsX=np.random.randn(n_trials,n_channels,n_times)# Learn a dictionary with batch algorithm and rank1 constraints.cdl=BatchCDL(n_atoms,n_times_atom,rank1=True)cdl.fit(X)# Display the learned atomsfig,axes=plt.subplots(n_atoms,2,num="Dictionary")forkinrange(n_atoms):axes[k,0].plot(cdl.u_hat_[k])axes[k,1].plot(cdl.v_hat_[k])axes[0,0].set_title("Spatial map")axes[0,1].set_title("Temporal map")foraxinaxes.ravel():ax.set_xticklabels([])ax.set_yticklabels([])plt.show()Dicodile backendAlphaCSC can use adicodile-based backend to perform sparse encoding in parallel.To install dicodile, runpip install alphacsc[dicodile].Known OpenMPI issuesWhen self-installing OpenMPI (for instance to rundicodileon a single machine, or for continuous integration), running thedicodilesolver might end up causing a deadlock (no output for a long time). It is often due to communication issue between the workers. This issue can often be solved by disabling Docker-related virtual NICs, for instance by runningexportOMPI_MCA_btl_tcp_if_exclude="docker0".Bug reportsUse thegithub issue trackerto report bugs.Cite our workIf you use this code in your project, please consider citing our work:[1]Dupré La Tour, T., Moreau, T., Jas, M., & Gramfort, A. (2018).Multivariate Convolutional Sparse Coding for Electromagnetic Brain Signals. Advances in Neural Information
Processing Systems (NIPS).[2]Jas, M., Dupré La Tour, T., Şimşekli, U., & Gramfort, A. (2017).Learning
the Morphology of Brain Signals Using Alpha-Stable Convolutional Sparse Coding.
Advances in Neural Information Processing Systems (NIPS), pages 1099–1108.
Package: alphad3m
AlphaD3M is an AutoML system that automatically searches for models and derives end-to-end pipelines that read,
pre-process the data, and train the model. AlphaD3M leverages recent advances in deep reinforcement learning and is
able to adapt to different application domains and problems through incremental learning.AlphaD3M provides data scientists and data engineers the flexibility to address complex problems by leveraging the
Python ecosystem, including open-source libraries and tools, support for collaboration, and infrastructure that enables
transparency and reproducibility.This repository is part of New York University's implementation of theData Driven Discovery project (D3M).Documentation is available here.
Package: alphad3m-containers
AlphaD3M is an AutoML system that automatically searches for models and derives end-to-end pipelines that read,
pre-process the data, and train the model. AlphaD3M leverages recent advances in deep reinforcement learning and is
able to adapt to different application domains and problems through incremental learning.AlphaD3M provides data scientists and data engineers the flexibility to address complex problems by leveraging the
Python ecosystem, including open-source libraries and tools, support for collaboration, and infrastructure that enables
transparency and reproducibility.This repository is part of New York University's implementation of theData Driven Discovery project (D3M).Documentation is available here.
Package: alpha-data-py
alpha-data-pyA client to fetch data from the alphaticks data baseInstallationYou can install alpha-data-py using the following command:pipinstallalpha-data-pyUsageIn order to use the library, you need an API key from alphaticks. Go toalphaticks.io,
Account -> Licenses -> AlphaData and click onAdd credentials.Now that you have your credentials ready, you can create a client, fetch a security, and fetch the data you need for
that security.importdatetimefromadataimportClient,FREQ_1Mc=Client(API_KEY,API_SECRET)secs=c.get_securities()forsinsecs:ifs.symbol=="BTCUSDT"ands.exchange=="fbinance":sec=sstart=datetime.datetime(2022,1,1)end=datetime.datetime(2022,1,5)it=c.get_historical_ohlcv(sec,FREQ_1M,start,end)whileit.next():print(it.o,it.h,it.l,it.c,it.v)
Package: alphadb
AlphaDBA toolset for MySQL database versioning.Still in alpha stageAlphaDB is currently inbetastage. Breaking changes should be expected.Table of ContentsDocumentationInstallationInstall using PIPUsageExceptionsLicenseDocumentationVisit theofficial documentationInstallationInstall usingPIPpip install alphadbNote thatpiprefers to the Python 3 package manager. In an environment where Python 2 is also present the correct command may bepip3.UsageImport AlphaDBfromalphadbimportAlphaDBConnect to a database.db=AlphaDB()db.connect(host="localhost",user="user",password="password",database="database")Make sure the database is empty, back it up if necessary. If the database is not empty, you can use thevacatemethod.
Note that this function will erase ALL data in the database and there is no way to get it back. For extra safety the argumentconfirm=Trueis required for the function to run.db.vacate(confirm=True)The database is now ready to be initialized. Theinitmethod will create theadb_conftable. This holds configuration data for the database.db.init()Now we update the database. For this we need to give it a structure. The database version information is a JSON structure formatted as such:database_version_source={"name":"mydb",## Database name, does not have to, but is advised to match the actual database name"version":[## List containing database versions{"_id":"0.1.0",## Database version"createtable":{## Object containing tables to be created,"customers":{## Object key will be used as table name"primary_key":"id","name":{## Object key will be used as column name"type":"VARCHAR",## Data type"length":100,## Date max length,},"id":{"type":"INT","a_i":True}},}},{"_id":"1.0.0","createtable":{"orders":{"primary_key":"id","id":{"type":"INT","a_i":True},"date":{"type":"DATETIME",},"note":{"type":"TEXT","null":True}}}}]}Then call theupdatemethod.db.update(version_source=database_version_source)ExceptionsNoConnectionTheNoConnectionexception is thrown when a method is called while no database connection is active.DBNotInitializedTheDBNotInitializedexception is thrown when the database is not yet initialized.Database.init()## Will initialize the database and thus resolve the errorDBTemplateNoMatchTheDBTemplateNoMatchexception is thrown when de database was previously updated using another version source.
On initialization, a tableadb_confis created. In this table the columntemplateis used to save the version source template name. Make sure it matches.LicenseGPL-3.0 LICENSE
Package: alpha-dbw
### Alpha_pyРепозиторий содержит API низкоуровневой системы управления автомобилем [Alpha](alpha.starline.ru), разрабатываемой в рамках проекта [OSCAR](https://gitlab.com/starline/oscar), для беспилотных транспортных средств.#### Установка с PyPI` pip3 install--useralpha_py `#### Установка из исходников` git clonehttps://gitlab.com/starline/alpha_py.git&& cd alpha_py pip3 install--user-e. `#### Использование` import alpha vehicle =alpha.Vehicle(“/dev/ttyACM0”)vehicle.drive() vehicle.steer(20) vehicle.move(10) vehicle.manual() vehicle.led_blink() vehicle.emergency_stop() vehicle.recover() vehicle.left_turn_signal() vehicle.right_turn_signal() vehicle.emergency_signals() vehicle.turn_off_signals() vehicle.get_vehicle_speed() `
Package: alpha-eigen
alpha-eigenUsing dynamic mode decomposition to calculate alpha-eigenvalues for time-dependent radiation transport problems.InstallThese codes are intended to continue work from the paper McClarren, R. G. (2019). Calculating Time Eigenvalues of the Neutron Transport Equation with Dynamic Mode Decomposition. Nuclear Science and Engineering, 193(8), 854–867.http://doi.org/10.1080/00295639.2018.1565014