Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

beu

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beu - npm Package Compare versions

Comparing version
0.1.30
to
0.1.31
+2
-2
beu/__init__.py

@@ -15,7 +15,7 @@ import redis_helper as rh

try:
import moc
import mocp_cli
import vlc_helper as vh
except ImportError:
pass
import moc
import mocp_cli
import chloop

@@ -22,0 +22,0 @@ from sql_helper import SQL

@@ -5,12 +5,20 @@ import click

@click.command()
def main():
"""Start ipython with `beu` imported"""
from IPython import embed
from traitlets.config import Config
@click.option(
'--no-vi', 'no_vi', is_flag=True, default=False,
help='Do not use vi editing mode'
)
@click.option(
'--no-colors', 'no_colors', is_flag=True, default=False,
help='Do not use colors / syntax highlighting'
)
def main(**kwargs):
"""Start ipython with `beu` and `pprint` imported"""
import beu
from pprint import pprint
c = Config()
c.InteractiveShellEmbed.colors = "Linux"
c.InteractiveShellEmbed.editing_mode = "vi"
embed(config=c)
beu.ih.start_ipython(
colors=not kwargs['no_colors'],
vi=not kwargs['no_vi'],
beu=beu,
pprint=pprint
)

@@ -17,0 +25,0 @@

[console_scripts]
beu-ipython = beu.scripts.shell:main
beu-related-to = beu.scripts.related_to:main
beu-trending = beu.scripts.trending:main
+54
-47
Metadata-Version: 2.1
Name: beu
Version: 0.1.30
Version: 0.1.31
Summary: Beginner Express .:. Back End .:. Big Example .:. Brainstorm Effectively

@@ -9,3 +9,3 @@ Home-page: https://github.com/kenjyco/beu

License: MIT
Download-URL: https://github.com/kenjyco/beu/tarball/v0.1.30
Download-URL: https://github.com/kenjyco/beu/tarball/v0.1.31
Platform: UNKNOWN

@@ -21,3 +21,2 @@ Classifier: Development Status :: 3 - Alpha

Requires-Dist: input-helper
Requires-Dist: mocp
Requires-Dist: chloop

@@ -27,3 +26,2 @@ Requires-Dist: yt-helper

Requires-Dist: bg-helper
Requires-Dist: mocp-cli
Requires-Dist: fs-helper

@@ -63,2 +61,3 @@ Requires-Dist: settings-helper

- https://github.com/kenjyco/bg-helper/blob/master/README.md#usage
- https://github.com/kenjyco/settings-helper/blob/master/README.md
- https://github.com/kenjyco/redis-helper/blob/master/README.md#intro

@@ -68,5 +67,2 @@ - https://github.com/kenjyco/chloop/blob/master/README.md#usage

- https://github.com/kenjyco/yt-helper/blob/master/README.md#usage
- https://github.com/kenjyco/mocp/blob/master/README.md#usage
- https://github.com/kenjyco/mocp-cli/blob/master/README.md#usage
- https://github.com/kenjyco/settings-helper/blob/master/README.md
- https://github.com/kenjyco/dt-helper/blob/master/README.md

@@ -77,3 +73,5 @@ - https://github.com/kenjyco/fs-helper/blob/master/README.md

- https://github.com/kenjyco/sql-helper#usage
- https://github.com/kenjyco/vlc-helper/blob/master/README.md
- https://github.com/kenjyco/mocp/blob/master/README.md#usage
- https://github.com/kenjyco/mocp-cli/blob/master/README.md#usage
- https://github.com/kenjyco/vlc-helper/blob/master/README.md#usage

@@ -97,2 +95,15 @@ Install

Mac Note
^^^^^^^^
VLC related things (vlc-helper package, system dbus, etc) are not
installed since VLC cannot be controlled with dbus on mac
Linux Cloud Note
^^^^^^^^^^^^^^^^
VLC related things (vlc-helper package, system dbus, etc) and MOC
related things (mocp & mocp-cli packages, system moc) are not installed
since you can’t watch videos or listen to audio.
Usage

@@ -109,6 +120,8 @@ -----

Start ipython with `beu` imported
Start ipython with `beu` and `pprint` imported
Options:
--help Show this message and exit.
--no-vi Do not use vi editing mode
--no-colors Do not use colors / syntax highlighting
--help Show this message and exit.

@@ -118,59 +131,58 @@ ::

% b
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
Python 3.6.8 (default, Jan 14 2019, 17:05:23)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
IPython 7.6.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: beu.ih
Out[1]: <module 'input_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/input_helper/__init__.py'>
Out[1]: <module 'input_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/input_helper/__init__.py'>
In [2]: beu.bh
Out[2]: <module 'bg_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/bg_helper/__init__.py'>
Out[2]: <module 'bg_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/bg_helper/__init__.py'>
In [3]: beu.rh
Out[3]: <module 'redis_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/redis_helper/__init__.py'>
Out[3]: <module 'redis_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/redis_helper/__init__.py'>
In [4]: beu.chloop
Out[4]: <module 'chloop' from '/tmp/stuff/venv/lib/python3.5/site-packages/chloop/__init__.py'>
Out[4]: <module 'chloop' from '/tmp/stuff/venv/lib/python3.6/site-packages/chloop/__init__.py'>
In [5]: beu.ph
Out[5]: <module 'parse_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/parse_helper/__init__.py'>
Out[5]: <module 'parse_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/parse_helper/__init__.py'>
In [6]: beu.yh
Out[6]: <module 'yt_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/yt_helper/__init__.py'>
Out[6]: <module 'yt_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/yt_helper/__init__.py'>
In [7]: beu.moc
Out[7]: <module 'moc' from '/tmp/stuff/venv/lib/python3.5/site-packages/moc/__init__.py'>
In [7]: beu.fh
Out[7]: <module 'fs_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/fs_helper/__init__.py'>
In [8]: beu.mocp_cli
Out[8]: <module 'mocp_cli' from '/tmp/stuff/venv/lib/python3.5/site-packages/mocp_cli/__init__.py'>
In [8]: beu.dh
Out[8]: <module 'dt_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/dt_helper/__init__.py'>
In [9]: beu.fh
Out[9]: <module 'fs_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/fs_helper/__init__.py'>
In [9]: beu.sh
Out[9]: <module 'settings_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/settings_helper/__init__.py'>
In [10]: beu.dh
Out[10]: <module 'dt_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/dt_helper/__init__.py'>
In [10]: beu.ah
Out[10]: <module 'aws_info_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/aws_info_helper/__init__.py'>
In [11]: beu.sh
Out[11]: <module 'settings_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/settings_helper/__init__.py'>
In [11]: beu.jh
Out[11]: <module 'jira_helper' from '/tmp/stuff/venv/lib/python3.6//site-packages/jira_helper/__init__.py'>
In [12]: beu.ah
Out[12]: <module 'aws_info_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/aws_info_helper/__init__.py'>
In [12]: beu.ewm
Out[12]: <module 'easy_workflow_manager' from '/tmp/stuff/venv/lib/python3.6/site-packages/easy_workflow_manager/__init__.py'>
In [13]: beu.jh
Out[13]: <module 'jira_helper' from '/tmp/stuff/venv/lib/python3.5//site-packages/jira_helper/__init__.py'>
In [13]: beu.mh
Out[13]: <module 'mongo_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/mongo_helper/__init__.py'>
In [14]: beu.ewm
Out[14]: <module 'easy_workflow_manager' from '/tmp/stuff/venv/lib/python3.5/site-packages/easy_workflow_manager/__init__.py'>
In [14]: beu.SQL
Out[14]: sql_helper.SQL
In [2]: beu.mh
Out[2]: <module 'mongo_helper' from '/tmp/stuff/venv/lib/python3.5/site-packages/mongo_helper/__init__.py'>
In [15]: beu.moc
Out[15]: <module 'moc' from '/tmp/stuff/venv/lib/python3.6/site-packages/moc/__init__.py'>
In [3]: beu.SQL
Out[3]: sql_helper.SQL
In [16]: beu.mocp_cli
Out[16]: <module 'mocp_cli' from '/tmp/stuff/venv/lib/python3.6/site-packages/mocp_cli/__init__.py'>
In [17]: beu.vh
Out[17]: <module 'vlc_helper' from '/tmp/stuff/venv/lib/python3.6/site-packages/vlc_helper/__init__.py'>
Updating

@@ -191,9 +203,4 @@ --------

- Use ``a`` (``yt-search --audio-only``) to search for and download
audio files
- Use ``v`` (``yt-search``) to search for and download video files
- Use ``m`` (``mocplayer``) to start the REPL to control audio playback
and making annotations
- Use ``pdfsearch`` (``ph-goo --filetype pdf``) to search for and
download PDF files
- Use ``rh-shell`` to explore Collection objects

@@ -200,0 +207,0 @@

+8
-10

@@ -1,11 +0,9 @@

beu/__init__.py,sha256=Qqk9qPdqJv8hDeVsTz7eDW_3ORzbj6J-QcULkksgS38,481
beu/__init__.py,sha256=sktSG_RLElInDIj93KXMcASM3_F5rbxvgf1afB_3gxM,489
beu/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
beu/scripts/related_to.py,sha256=Oi3jNYVUrcngwyI5D-eDrFuPFgyernsE8DKmJLIoaVE,935
beu/scripts/shell.py,sha256=Krnk-HRN339JMRqwz8GJFcvaFNVzAz559inHSUhL3i4,373
beu/scripts/trending.py,sha256=cNvBb8Vj32mZuizXYBjeaC2y3rxNuYS6ITuw6T9ZLuo,369
beu-0.1.30.dist-info/LICENSE.txt,sha256=qkd6gO3_mhiG9TiDq5tJieC-1f64xFSpep3GBsIfNr0,608
beu-0.1.30.dist-info/METADATA,sha256=TTfxb-ChLeRogYwcSpiSk2pNaI1R-6nxQj1UH6IRHp4,6525
beu-0.1.30.dist-info/WHEEL,sha256=MYFsq5fFBwF_oyJgrOoFmYYB1K6Sw7MxY-0897ZLbdM,92
beu-0.1.30.dist-info/entry_points.txt,sha256=_J5yLgA_sTrHhZed3BaLGJbjSqwJgXCcKGLP2ksuMoQ,142
beu-0.1.30.dist-info/top_level.txt,sha256=fH14NNX0gm9_PaSFIQnqgZMo9NURTpNpwS0VoUFifF4,4
beu-0.1.30.dist-info/RECORD,,
beu/scripts/shell.py,sha256=NyNSR6B3q3jO24xRZVCUqjF6ijQt47kDTfPehDSkrgE,574
beu-0.1.31.dist-info/LICENSE.txt,sha256=qkd6gO3_mhiG9TiDq5tJieC-1f64xFSpep3GBsIfNr0,608
beu-0.1.31.dist-info/METADATA,sha256=4NC0oPrn2UywsWkm76viqay4wqJul5v1qQUWDobxNi8,6673
beu-0.1.31.dist-info/WHEEL,sha256=p46_5Uhzqz6AzeSosiOnxK-zmFja1i22CrQCjmYe8ec,92
beu-0.1.31.dist-info/entry_points.txt,sha256=hfBYQHPCeaCPWVw0VjFQcsL9ZsjVJLG6z1bJZBMzG7g,56
beu-0.1.31.dist-info/top_level.txt,sha256=fH14NNX0gm9_PaSFIQnqgZMo9NURTpNpwS0VoUFifF4,4
beu-0.1.31.dist-info/RECORD,,
+1
-1
Wheel-Version: 1.0
Generator: bdist_wheel (0.32.2)
Generator: bdist_wheel (0.33.6)
Root-Is-Purelib: true
Tag: py3-none-any
import click
import beu
@click.command()
@click.option(
'--mp3', '-m', 'mp3', is_flag=True, default=False,
help='Convert downloaded to MP3 file'
)
@click.argument('url', nargs=1, default='')
def main(url, **kwargs):
"""Find and download vids related to vid url"""
url = url or beu.ih.user_input('vid url')
if not url:
return
selected = beu.ih.make_selections(
beu.ph.youtube_related_to(url),
wrap=False,
item_format='{duration} .::. {title} .::. {user}',
)
if selected:
av_from_url_kwargs = {'playlist': True}
if kwargs and kwargs.get('mp3') is True:
av_from_url_kwargs.update({
'audio_only': True,
'mp3': True,
})
results = [
beu.yh.av_from_url(
x['link'],
**av_from_url_kwargs
) for x in selected
]
return results
import click
import beu
@click.command()
def main():
"""Select trending vids"""
selected = beu.ih.make_selections(
beu.ph.youtube_trending(),
wrap=False,
item_format='{duration} .::. {title} .::. {user} .::. {uploaded}',
)
if selected:
results = [beu.yh.av_from_url(x['link']) for x in selected]
return results