Example #1
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'ips',
         'IP',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[
             Attributes.System.IPAddress, Attributes.System.IPAndPort
         ],
         description='IPv4 addresses or IPv4 addresses, e.g.:\n192.168.1.1')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
Example #2
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'addresses',
         'Namecoin addresses',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[
             NamecoinAddress.namecoint_address,
             NamecoinAddress.namecoint_address_short
         ],
         description='Namecoin Address, e.g.:\nMzHtiNhz - (min. 8 symbols)')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'blocks',
         'Netblocks',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[Netblock.Netblock],
         description='netblock in CIDR notation\nexample: 91.243.80.0/24')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param('domains',
                             'Namecoin domain',
                             ValueType.String,
                             is_array=True,
                             required=True,
                             value_sources=[Attributes.System.Domain],
                             description='Namecoin name, e.g.:\nd/example'
                             '\nexample.bit')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
Example #5
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'txids',
         'Namecoin txid',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[NamecoinTXid.txid, NamecoinTXid.txid_short],
         description='Namecoin identificators, e.g.:\nid transaction')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
Example #6
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'txids',
         'Namecoin txid',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[NamecoinTXid.txid],
         description='Namecoin Transaction, e.g.:\n94a3ab7df4753a'
         '\n32f8cc90 - (min. 8 symbols)')
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
Example #7
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param('ips',
                             'IP',
                             ValueType.String,
                             is_array=True,
                             value_sources=[Attributes.System.IPAddress],
                             description='IPs, networks')
     return ep_coll
    def get_enter_params(self):
        ep_coll = EnterParamCollection()
        ep_coll.add_enter_param('ips', 'IP', ValueType.String, is_array=True,
                                value_sources=[Attributes.System.IPAddress, Attributes.System.IPAndPort, Attributes.Netblock],
                                description="""IPs, networks, e.g.:\n1. 192.168.1.1\n2. 192.168.1.0/24""")
        ep_coll.add_enter_param('unpack_network', 'Unpack network record', ValueType.Boolean, default_value=False,
                                description = """unpack network:\n192.168.1.0/24 -> 192.168.1.0, 192.168.1.1, 192.168.1.2 .. 192.168.1.255""")
        ep_coll.add_enter_param('timeout', 'timeout', ValueType.Integer, is_array=False,
                                predefined_values=[3, 7, 10, 15], default_value=7,
                                description='timeout, int. value')
        ep_coll.add_enter_param('max_threads', 'Max. threads', ValueType.Integer, predefined_values= [8, 16, 32],
                                default_value=8, required=True)

        return ep_coll
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param('texts', 'Search places', ValueType.String, is_array=True,
                             required=True)
     ep_coll.add_enter_param('language', 'Language', ValueType.String, is_array=False,
                             required=True, default_value='ru', predefined_values=['ru', 'en'])
     ep_coll.add_enter_param('length_geo', 'geohash', ValueType.Integer, required=True, default_value=6)
     return ep_coll
Example #10
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param('pages',
                             'urls',
                             ValueType.String,
                             is_array=True,
                             required=True,
                             description='http:\\example.com\\example_page')
     ep_coll.add_enter_param('c_threads',
                             'threads',
                             ValueType.Integer,
                             is_array=False,
                             required=True,
                             predefined_values=[128, 256, 1024],
                             default_value=1024)
     return ep_coll
Example #11
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param('domains',
                             'Domain',
                             ValueType.String,
                             is_array=True,
                             required=True,
                             description='example.com')
     ep_coll.add_enter_param('c_threads',
                             'threads',
                             ValueType.Integer,
                             is_array=False,
                             required=True,
                             predefined_values=[4, 8, 16, 32],
                             default_value=32)
     return ep_coll
Example #12
0
 def get_enter_params(self):
     ep_coll = EnterParamCollection()
     ep_coll.add_enter_param(
         'domains',
         'Namecoin domain(like)',
         ValueType.String,
         is_array=True,
         required=True,
         value_sources=[Attributes.System.Domain],
         description=
         'Namecoin name, e.g.:\nd/mail-ru-stat-counter\nexample\nstat-counter'
     )
     ep_coll.add_enter_param('check_ip',
                             'Only with IP-addresses',
                             ValueType.Boolean,
                             required=True,
                             default_value=False)
     ep_coll.add_enter_param('limit',
                             'Limit',
                             ValueType.Integer,
                             is_array=False,
                             required=True,
                             default_value=10000)
     ep_coll.add_enter_param('server',
                             'Host with MongoDB',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="68.183.0.119:27017")
     ep_coll.add_enter_param('usermongodb',
                             'user',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     ep_coll.add_enter_param('passwordmongodb',
                             'password',
                             ValueType.String,
                             is_array=False,
                             required=True,
                             default_value="anonymous")
     return ep_coll
Example #13
0
    def get_enter_params(self):
        ep_coll = EnterParamCollection()
        ep_coll.add_enter_param('domains',
                                'Namecoin domain',
                                ValueType.String,
                                is_array=True,
                                required=True,
                                value_sources=[Attributes.System.Domain],
                                description='Namecoin domain, e.g.:\nd/example'
                                '\nexample.bit')
        ep_coll.add_enter_param('server',
                                'host with Namecoind(RPC-JSON)',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                predefined_values=["http://68.183.0.119:8336"],
                                default_value="http://68.183.0.119:8336")
        ep_coll.add_enter_param('userRPC',
                                'username for RPC',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                default_value="user")
        ep_coll.add_enter_param('passwordRPC',
                                'password for RPC',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                default_value="moscow")
        ep_coll.add_enter_param('threads',
                                'Max threads',
                                ValueType.Integer,
                                is_array=False,
                                required=True,
                                predefined_values=[4, 8],
                                default_value=4)

        return ep_coll
Example #14
0
    def get_enter_params(self):

        # today = datetime.datetime.now()
        # today = "2019-01-01"

        ep_coll = EnterParamCollection()

        ep_coll.add_enter_param('start_date',
                                'From date',
                                ValueType.Datetime,
                                default_value=RelativeDate(
                                    ReferencePoint.Today,
                                    timedelta(weeks=-12)))
        ep_coll.add_enter_param('stop_date',
                                'To date',
                                ValueType.Datetime,
                                default_value=RelativeDate(
                                    ReferencePoint.Now, timedelta(0)))

        ep_coll.add_enter_param('check_ip',
                                'Only with IP-addresses',
                                ValueType.Boolean,
                                required=True,
                                default_value=False)

        ep_coll.add_enter_param('server',
                                'host with MongoDB',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                default_value="68.183.0.119:27017")
        ep_coll.add_enter_param('usermongodb',
                                'user',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                default_value="anonymous")
        ep_coll.add_enter_param('passwordmongodb',
                                'password',
                                ValueType.String,
                                is_array=False,
                                required=True,
                                default_value="anonymous")

        return ep_coll