Coder Social home page Coder Social logo

bubble3's People

Contributors

dependabot[bot] avatar e7dal avatar realopenit avatar

Watchers

 avatar

bubble3's Issues

bubble status

new sub command, that will show the current status/last status/current processing

dockerize

create dockerfile
and docker compose for "demos"

github found potential security vulnerabilities in dependencies

We found potential security vulnerabilities in your dependencies.

Some of the dependencies defined in optional_requirements.txt, requirements_plus_dataset.txt, and travis_requirements.txt have known security vulnerabilities and should be updated.


Dependencies defined in requirements_plus_dataset.txt 16
An exploitable vulnerability exists in the Databook loading functionality of Tablib 0.11.4. A yaml loaded Databook ca...
requirements_plus_dataset.txt update suggested:
tablib ~> 0.11.5

https://nvd.nist.gov/vuln/detail/CVE-2017-2810

split dev

split bubble3 into:
bubble3(basic package) and bubble3-dev(testing and extras)

listen

create an api that can be run with "bubble listen"

api should mostly reflect the cli
-apitest
-bottle / hug

flatten a "list" does not work for time.struct_time

in this example from: https://github.com/e7dal/bubble3_clients/tree/master/knmi_warnings

published_parsed should become
published_parsed.1
published_parsed.2
published_parsed.3
etc

introspection of pulled data looks like this:
In [10]: d['published_parsed']
Out[10]: time.struct_time(tm_year=2018, tm_mon=9, tm_mday=4, tm_hour=7, tm_min=6, tm_sec=0, tm_wday=1, tm_yday=247, tm_isdst=0)

jq . remember/pulled_DEV.jsonl
{
"title": "Code geel: Vanmiddag in het midden en zuiden van het land onweersbuien",
"title_detail.type": "text/plain",
"title_detail.language": null,
"title_detail.base": "http://projects.knmi.nl/RSSread/rss_KNMIwaarschuwingen.php",
"title_detail.value": "Code geel: Vanmiddag in het midden en zuiden van het land onweersbuien",
"summary": "

Vanaf halverwege de middag is er in het midden en zuiden van het land kans op onweersbuien met daarbij lokaal veel neerslag in korte tijd.


Uitgifte: 04/09/2018 09:06 uur LT\n

<img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_0_new.gif\" width=300> <img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_1_new.gif\" width=300> <img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_2_new.gif\" width=300>

",
"summary_detail.type": "text/html",
"summary_detail.language": null,
"summary_detail.base": "http://projects.knmi.nl/RSSread/rss_KNMIwaarschuwingen.php",
"summary_detail.value": "

Vanaf halverwege de middag is er in het midden en zuiden van het land kans op onweersbuien met daarbij lokaal veel neerslag in korte tijd.


Uitgifte: 04/09/2018 09:06 uur LT\n

<img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_0_new.gif\" width=300> <img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_1_new.gif\" width=300> <img src="https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_2_new.gif\" width=300>

",
"links.__bts_list": true,
"links.__bts_listlen": 2,
"links.1.type": "image/gif",
"links.1.length": "16907",
"links.1.href": "https://cdn.knmi.nl/knmi/map/current/weather/warning/waarschuwing_land_48_new.gif",
"links.1.rel": "enclosure",
"links.2.rel": "alternate",
"links.2.type": "text/html",
"links.2.href": "https://www.knmi.nl/waarschuwingen",
"link": "https://www.knmi.nl/waarschuwingen",
"id": "https://www.knmi.nl/waarschuwingen?Warnings_Tue%2004%20Sep%202018%2009:06:00%20+0200",
"guidislink": false,
"published": "Tue, 04 Sep 2018 09:06:00 +0200",
"published_parsed": [
2018,
9,
4,
7,
6,
0,
1,
247,
0
],
"tags.__bts_list": true,
"tags.__bts_listlen": 2,
"tags.1.term": "Weather",
"tags.1.scheme": "https://www.knmi.nl",
"tags.1.label": null,
"tags.2.term": "Weer",
"tags.2.scheme": "https://www.knmi.nl",
"tags.2.label": null,
"authors.__bts_list": true,
"authors.__bts_listlen": 1,
"authors.1.name": "Webmaster KNMI",
"authors.1.email": "[email protected]",
"author": "[email protected] (Webmaster KNMI)",
"author_detail.name": "Webmaster KNMI",
"author_detail.email": "[email protected]",
"__bts_flat": true,
"__bts_storetimestamp": "2018-09-04T07:14:47.325507+00:00",
"__bts_fulldata": true
}

verbose does not work

root@1c5bc8d0c787:/opt/bubble_test/ndw# bubble -v 10000 -b 10 pull
BubbleCli:here!
BubbleCli:config
stuff:
{'bubble_lib_dir': '/usr/local/lib/python3.6/site-packages/bubble3',
'logfile': '',
'parent': None,
'verbose': 10000,
'verbose_bar': 10}
Hi there,
i'm a inside a Bubble,
my name is BubbleCli.

a.k.a: API in the middle

Helps you where two of your "complex" services don't play well with each other.
And where you need get some information from A to B,
while transforming or filtering the information, simply put:

A:pull>>>bubble:transform>>>B:push>>>
consider me your "small information" manager in between your big data and ESB(s),ETL(s).

Create a bubble, make the information flow and start bubbling .o.O.o.

Traceback (most recent call last):
File "/usr/local/bin/bubble", line 11, in
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1063, in invoke
Command.invoke(self, ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/bubble3/cli.py", line 350, in cli
verbose_bar=barverbose)
File "/usr/local/lib/python3.6/site-packages/bubble3/cli.py", line 102, in init
verbosity=2)
File "/usr/local/lib/python3.6/site-packages/bubble3/init.py", line 272, in say
self._msg(msg=msg, stuff=stuff, verb='SAY', verbosity=verbosity)
File "/usr/local/lib/python3.6/site-packages/bubble3/init.py", line 255, in _msg
blog.info(**tl_item)
File "/usr/local/lib/python3.6/site-packages/structlog/_base.py", line 176, in _proxy_to_logger
args, kw = self._process_event(method_name, event, event_kw)
File "/usr/local/lib/python3.6/site-packages/structlog/_base.py", line 136, in _process_event
event_dict = proc(self._logger, method_name, event_dict)
File "/usr/local/lib/python3.6/site-packages/structlog/dev.py", line 179, in call
event = event_dict.pop("event")
KeyError: 'event'
exit
stuff:
{'config_yaml': 'config/config.yaml',
'dot_bubble': '.bubble',
'gbc': <bubble3.Bubble object at 0x7f3795709e10>,
'profiling': False,
'stages': ['PROD', 'ACC', 'TEST', 'DEV', 'MOCK'],
'start_arrow': <Arrow [2018-06-04T06:50:18.741817+00:00]>,
'steps': ['pulled',
'uniq_pull',
'uniq_push',
'push',
'pushed',
'store',
'stats'],
'storage_types': ['json', 'jsonl']}

use pandas.io for storage and export

use https://pandas.pydata.org/pandas-docs/stable/io.html for export

Format Type Data Description Reader Writer
text CSV read_csv to_csv
text JSON read_json to_json
text HTML read_html to_html
text Local clipboard read_clipboard to_clipboard
binary MS Excel read_excel to_excel
binary HDF5 Format read_hdf to_hdf
binary Feather Format read_feather to_feather
binary Parquet Format read_parquet to_parquet
binary Msgpack read_msgpack to_msgpack
binary Stata read_stata to_stata
binary SAS read_sas  
binary Python Pickle Format read_pickle to_pickle
SQL SQL read_sql to_sql
SQL Google Big Query read_gbq to_gbq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.