semvec/pypi-packages huggingface dataset:
universal-utils 0.0.1
python utils

# python-utils

python utils


### ScreenShot

```python3
browser = get_browser('https://tushare.pro/document/2?doc_id=33')

# 移除悬浮
browser.execute_script("""
var toTop = document.querySelector('.scroll-to-top');
if(toTop){
toTop.remove();
}
""")

# 隐藏滚动条
browser.execute_script("""
var style = document.createElement('style');
style.innerHTML='body::-webkit-scrollbar{display:none;}';
document.querySelector('head').append(style);
""")
screen_shot = ScreenShot()
screen_shot.save_full_page_screen_shot('ts.jpg', browser=browser)
browser.quit()
```
ptt2json 0.1.1
A simple python library to extract pages and posts information from https://www.ptt.cc/bbs/ to json format
Requires Python: >=3.6,<4.0
Keywords: ptt

# Ptt2Json

A simple python library to extract pages and posts information from https://www.ptt.cc/bbs/ to json format

```python
>>> from ptt2json import *
>>> ptt = PttPage(boardname="Gossiping")
>>> print(ptt.posts)

[{'url': '/bbs/Gossiping/M.1560591164.A.B9C.html',
  'post_id': 'M.1560591164.A.B9C',
  'timestamp': '1560591164',
  'title': '[新聞] 暴動！財經女神訪歐曬日光浴 白皙長腿惹',
  'nrec': '',
  'author': 'cycling',
  'mark': ''},
 {'url': '/bbs/Gossiping/M.1560591174.A.B05.html',
  'post_id': 'M.1560591174.A.B05',
  'timestamp': '1560591174',
  'title': '[新聞] 韓國瑜造勢到底多少人? 椅子精算師四叉貓算給你',
  'nrec': '',
  'author': 'sweat992001',
  'mark': ''},
 {'url': '/bbs/Gossiping/M.1560591182.A.50D.html',
  'post_id': 'M.1560591182.A.50D',
  'timestamp': '1560591182',
  'title': 'Re: [新聞] 大烏龍！攝影師砸30萬修MacBook 最後發現',
  'nrec': '',
  'author': 'YHOTV4096',
  'mark': ''},
  ...]
```

## PttPage

```
[
	{
		"url": str,
		"post_id": str,
		"timestamp": str,  # unix time
		"title": str,      
		"nrec": str,       # 推噓文相加總和
		"author": str,
		"mark":            # 標記
	},
	...
]
```

## PttPost

```
{
	"article_id": str,
    "article_title": str,
    "author": str,
    "board": str,
    "content": str,
    "timestamp": int,
    "ip": str,           # ipv4 address 
    "ip_country": str,   # ip <-> country mapping
    "message_count": {
         "all": str,     # 推、噓、箭頭總數
         "boo": str,     # 噓文
         "count": str,   # 推 - 噓文
         "neutral": str, # 箭頭
         "push": str,    # 推文
    },
    "messages": [
    	{
    		"push_tag": str, # 評論符號
    		"push_userid": str,
    		"push_content": str,
    		"push_ipdatetime # ip 與時間（無日期）
    	}
    ],
    "url": str,
    "is_404": 是否刪文,
}

```
SwanOS 0.1.5
A Very Simple Python OS

# Purpose

This Project doesn't really have a purpose It's Just a Very Simple OS.

# Config

Open os.py and change the users/passwords and you can add apps via admin.py and user.py

# Liscence
MIT License

Copyright (c) 2019 UNREGISTERED COMPANY Codezings

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
pyplotsmaps 0.0.2
A python package for iot projects to plot and locate
Keywords: iot,iot-plots,maps,maps-iot,plots

PY-PLOTS-MAPS
===============

This is a python library for your iot projects to plot your sensor data and get your location
 Wesbite (https://react-iotmine.firebaseapp.com/)

Functions:
----------
* Plot your sensors data using different types of plots

Installation :
--------------

Python3
-------

::

    pip3 install pyplotsmaps --user

or

Python
------

::

    pip install pyplotsmaps --user


**Map Example :**
~~~~~~~~~~~~~~~~~~

::

    from plots_maps import PLOTSMAPS

    API = 'Your API'

    if __name__ == '__main__':
        ob = PLOTSMAPS(API)
        print(ob.updateMap(mapname='Your Map Name', latitude=48.8584, longitude=2.2945)) #Eiffel Tower


**Plot Example :**
~~~~~~~~~~~~~~~~~~

::

    from plots_maps import PLOTSMAPS

    API = 'Your Api'

    if __name__ == '__main__':
        ob = PLOTSMAPS(API)
        print(ob.updatePlot(plotname='Your Plot Name', ydata=80))


**Switch Example :**
~~~~~~~~~~~~~~~~~~~~

::

    from plots_maps import PLOTSMAPS

    API = 'Your API Key'

    if __name__ == '__main__':

        ob = PLOTSMAPS(API)

        f= ob.getSwitchState('Bulb')

        print(f)  #Returns "true" or "false"