semvec/pypi-packages huggingface dataset:
pysysbot 0.3.0
Python based system jabber bot
License: BSD
Keywords: Jabber

pysysbot 
========
A simple python jabber bot for getting system information.

This Python jabber (XMPP) bot is based on the `slimxmpp framework`_. The bot
is capable to display details about the system it is running on. If you don't
want or can stay connected through SSH all the time this is an easy way to get
information about the remote system.

This bot contains a lot of parts used in a German tutorial about the the
jabberbot framework on `Swissjabber`_.
 
.. _slimxmpp framework: https://slixmpp.readthedocs.io
.. _Swissjabber: http://www.swissjabber.org

Goals
----- 
- Show some information about the system
- No need for a permanent SSH connection to the remote system
- Can serve for many users
 
Requirements
------------
 
- `slimxmpp`_
- `psutil`_

All dependencies are available in the Fedora Package Collection.::

    sudo dnf -y install python3-slimxmpp python3-psutil

.. _slimxmpp: https://slixmpp.readthedocs.io
.. _psutil: https://psutil.readthedocs.io

Installation
------------

The package is available in the Fedora Package collection. Then::

    sudo dnf -y install pysysbot

Till then, clone the git repository to use it.::

    git clone https://github.com/fabaff/pysysbot

Usage
-----

Create a configuration file: ``/etc/pysysbot/pysysbot.conf`` with the following
content or edit the file if you are running a release which is included in
your distribution::

    [pysysbot]
    username = Your JID
    password = Your XMPP/Jabber password

You can run ``pysysbot`` from the command-line or as service with systemd.::

    sudo systemctl start pysysbot.service

Resources
---------

- `Website`_
- `git repository`_
- `Download`_

.. _Website: http://affolter-engineering.ch/pysysbot/
.. _git repository: https://github.com/fabaff/pysysbot
.. _Download: https://github.com/fabaff/pysysbot/releases

``pysysbot`` is licensed under BSD, for more details check COPYING.
sqlalchemy_seed 0.3.0
sqlalchemy_seed is simple data seeder using SQLAlchmy.
License: BSD

sqlalchemy_seed
----------------

.. image:: https://travis-ci.org/heavenshell/py-sqlalchemy_seed.svg?branch=master
    :target: https://travis-ci.org/heavenshell/py-sqlalchemy_seed
.. image:: https://pyup.io/repos/github/heavenshell/py-sqlalchemy_seed/python-3-shield.svg
     :target: https://pyup.io/repos/github/heavenshell/py-sqlalchemy_seed/
     :alt: Python 3
.. image:: https://pyup.io/repos/github/heavenshell/py-sqlalchemy_seed/shield.svg
     :target: https://pyup.io/repos/github/heavenshell/py-sqlalchemy_seed/
     :alt: Updates

`sqlalchemy_seed` is a seed library which provides initial data to database using SQLAlchemy.

`sqlalchemy_seed` is similar to `Django fixtures <https://docs.djangoproject.com/ja/1.10/howto/initial-data/>`_.

Installation
============

.. code::

  pip install sqlalchemy_seed

Adding seed
===========

.. code::

  /myapp
    __init__.py
    models.py
    /fixtures
      accounts.yaml

Model file.

.. code:: python

  # -*- coding: utf-8 -*-

  from sqlalchemy import create_engine
  from sqlalchemy.exc import OperationalError
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import scoped_session, sessionmaker, relationship
  engine = create_engine('sqlite://', convert_unicode=True)

  Base = declarative_base()
  Base.metadata.bind = engine
  Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
  session = scoped_session(Session)

  class Account(Base):
      __tablename__ = 'accounts'

      id = Column(Integer, primary_key=True)
      first_name = Column(String(100), nullable=False)
      last_name = Column(String(100), nullable=False)
      age = Column(Integer(), nullable=True)


Seed code.

.. code:: python

  # -*- coding: utf-8 -*-

  from sqlalchemy_seed import (
      create_table,
      drop_table,
      load_fixtures,
      load_fixture_files,
  )
  from myapp.models import Base, session


  def main():
      path = '/path/to/fixtures'
      fixtures = load_fixture_files(path, ['accounts.yaml'])
      load_fixtures(session, fixtures)


  if __name__ == '__main__':
      main()

Seed file.

.. code::

  - model: myapp.models.Account
    id: 1
    fields:
      first_name: John
      last_name: Lennon
      age: 20

  - model: myapp.models.Account
    id: 2
    fields:
      first_name: Paul
      last_name: McCartney
      age: 21

LICENSE
=======
NEW BSD LICENSE.