Coder Social home page Coder Social logo

pysec's People

Contributors

blacksburg98 avatar lukerosiak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pysec's Issues

Using RSS Feed

Looks like an interesting project. As I am new to python/git, please excuse any ignorance on my part.

It seems like the current logic is to get the XBRL zip file as well as other files from the Full Index, which points the the complete filing in TXT. Would it be better to use the RSS feed (see ftp://ftp.sec.gov/edgar/monthly/) to get information on the XBRL filing, considering pysec is only for XBRL? The RSS feed gives the zip file explicitly in most cases (some older filings under the voluntary program will not have a zip).

If you are interested in the difference between the HTML, TXT, and XML (XBRL) files, let me know and I will elaborate.

Is this project actively maintained?

Hi, I have 3 Qs:

a) is this project actively maintained? I had to modify the examples to make them work, the py file that generates a CSV file crashes after 40 companies , etc.
b) I am at a stage right now where I am able to retrieve financial information for a particular cik. I love it that pysec autopopulates its DB (I am using sqlite3) so next time access is faster. When I see the data that print x.fields prints (from example.py) its a handful of information - is it complete? For example, how do I print market cap of a filing?

c) Last question: using pysec, is it possible to print say, ",list of all companies with market cap > $1B in a particular industry" ?

Structure as formal Python package

This project looks interesting. However, it would be easier to incorporate into projects if it were structured as a proper setuptools-based Python package, versioned, and registered on pypi.python.org.

Missing LICENSE?

Thank you for sharing your code with the community :)

Though at the bottom of your README you state the project is released under the GNU, it may be helpful to prospective contributors/users to know which flavor of the GNU (GPL?) you are releasing under.

Again, thank you for sharing your work, and I hope this helps drive more folks to your project.

10Q's

Library does not work with quarterly reports (10Q's). Using .xml file download directly. GetBaseInformation in xbrl.py fails.
Any plans to look at this issue?

xbrl / xml documents embedded in .txt submission

In Models.xbrl, xbrl_localpath() assumes the xbrl filename has an .xml extension. But in some cases the xml/xbrl documents appear to have been included in a larger text submission. For example, see here: http://www.sec.gov/Archives/edgar/data/320193/0001193125-12-023398.txt (there are several distinct xbrl files included there). It looks like the text file also includes a binary zip file within a block. All inside a .txt file. Which is, uh, odd.

I came across this while looking into handling 10-Q filings--perhaps this isn't an issue for 10-K's. What do you think is the best way to handle this? Should parsing xml from within the .txt file be part of the download() step? Or is there another file location that these should be pulled from?

checking reliability

anyone notice any reliability issues? can we feel comfortable using this tool without saying anything patently wrong about a company as a result?

PySEC with Django & Sqlite3

I'm having issues implementing this with Django and Sqlite3. Your Read Me stipulates change the DATA_DIR in the settings.py module but there is no DATA_DIR to change unless copy and pasted into settings. Is this what we're supposed to do? I also didn't understand the "Put this Django app under manage.py". What exactly do you mean?

Ultimately I'm trying to get the sec_import_index and sec_xbrl_to_csv to work. Maybe a step by step to getting those to work with Django & Sqlite3 will help others. Thanks in advance for any help.

Segmentation fault

I've tried both Mysql and Postgresql but receive a segmentation fault after a few minutes of it hanging at.ftp://ftp.sec.gov/edgar/full-index/2013/QTR1/company.zip and the company.zip is downloaded but not extracted.

My settings.py looks like:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'pysec1',                      # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': 'blah',
        'PASSWORD': 'blahblah',
        'HOST': '127.0.0.1',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '',                      # Set to empty string for default.
    }
}

The database appears to get setup with no issues but this is as far as the program gets with both databases that I've tried.

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.